Connects to Trunk's flaky test detection service and surfaces two main operations: getting root cause analysis with fix suggestions for flaky tests, and generating setup plans to start uploading test results to Trunk. Uses OAuth for authentication and runs as a hosted service at mcp.trunk.io. Reach for this when you're debugging test flakiness and want AI assistance that pulls from Trunk's analysis of your test history. Works with Cursor, Claude Code, GitHub Copilot, and Gemini CLI. The fix-flaky-test tool is the main draw here, giving you actionable suggestions based on patterns Trunk has identified in your test runs.
Leverage the power of Trunk Flaky Tests from your IDE, or the AI application of your choosing.
Trunk Flaky Tests comes with a Model Context Protocol (MCP) server. AI applications like Claude Code or Cursor can use MCP servers to connect to data sources, tools, and workflows — enabling them to access key information and perform tasks.
| Application | Supported | Guide | Plugin |
|---|---|---|---|
| Cursor | Yes | Setup guide | Cursor plugin |
| Claude Code | Yes | Setup guide | Claude Code plugin |
| GitHub Copilot | Yes | Setup guide | |
| Gemini CLI | Yes | Setup guide |
[!NOTE] Gemini Code Assist and Windsurf are not supported due to their limited support for MCP servers.
Add to .cursor/mcp.json:
{
"mcpServers": {
"trunk": {
"url": "https://mcp.trunk.io/mcp"
}
}
}
claude mcp add trunk --transport streamable-http https://mcp.trunk.io/mcp
Add to .vscode/mcp.json:
{
"servers": {
"trunk": {
"type": "http",
"url": "https://mcp.trunk.io/mcp"
}
}
}
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"trunk": {
"httpUrl": "https://mcp.trunk.io/mcp"
}
}
}
The MCP server is available at https://mcp.trunk.io/mcp and exposes the following tools:
| Tool | Description |
|---|---|
fix-flaky-test | Retrieve root cause analysis and fix suggestions for flaky tests |
setup-trunk-uploads | Generate a setup plan to upload test results to Trunk |
The Trunk MCP server supports the OAuth 2.0 + OpenID Connect standard for MCP authorization. When connecting from a supported client, you will be prompted to authenticate via your Trunk account.
Made with love by the Trunk.io team
io.github.mindstone/mcp-server-microsoft-teams
com.mintmcp/outlook-email
helbertparanhos/resend-email-mcp
marlinjai/email-mcp
io.github.mindstone/mcp-server-email-imap
io.github.osamahassouna/email-playbook-mcp