mcp-server
MCP serverDev toolsOnce this app is added, your AI can find flaky tests, figure out why they are failing, and suggest fixes. Development teams use it to keep their tests dependable and cut down time spent chasing failures that appear and disappear for no obvious reason.
Available today. Use it from your connected AI after setup.
No other account needed.
After adding it, ask your AI to review your tests for flakiness and explain what is causing any failures it finds.
Then ask your AI: use mcp-server
What your AI can do with it
- Spot tests that fail unpredictably
- Explain the likely root cause of a test failure
- Suggest fixes for failing tests
From the project's README
As published by trunk-io/mcp-server in README.md.
Trunk.io MCP Server
Leverage the power of Trunk Flaky Tests from your IDE, or the AI application of your choosing.
Use MCP Server
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.
Supported AI Applications
| 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.
Quick Start
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"trunk": {
"url": "https://mcp.trunk.io/mcp"
}
}
}
Claude Code
claude mcp add trunk --transport streamable-http https://mcp.trunk.io/mcp
GitHub Copilot
Add to .vscode/mcp.json:
{
"servers": {
"trunk": {
"type": "http",
"url": "https://mcp.trunk.io/mcp"
}
}
}
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"trunk": {
"httpUrl": "https://mcp.trunk.io/mcp"
}
}
}
API
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 |
Authorization
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
Signals
- Forks
- 1
- Last commit
- Mar 2026
Advanced
- Delivery
- mcp-server MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
- Catalog kind
- mcp-server
- Gateway key
io-trunk-mcp-server- Source
- github.com/trunk-io/mcp-server
- Hosted endpoint
https://mcp.trunk.io/mcp