{
  "markdown": "<!-- markdownlint-disable first-line-heading -->\n<!-- mcp-name: io.github.trunk-io/mcp-server -->\n\n[![Trunk.io](https://github.com/user-attachments/assets/c98a90ee-439b-4a9c-bb9a-69dc0e7e2c7e)](https://trunk.io)\n[![docs](https://img.shields.io/badge/-docs-darkgreen?logo=readthedocs&logoColor=ffffff)][docs]\n[![vscode](https://img.shields.io/visual-studio-marketplace/i/trunk.io?color=0078d7&label=vscode&logo=visualstudiocode)][vscode]\n[![slack](https://img.shields.io/badge/-slack-611f69?logo=slack)][slack]\n[![openssf](https://api.securityscorecards.dev/projects/github.com/trunk-io/trunk-action/badge)](https://api.securityscorecards.dev/projects/github.com/trunk-io/trunk-action)\n\n# Trunk.io MCP Server\n\nLeverage the power of Trunk Flaky Tests from your IDE, or the AI application of your choosing.\n\n## Use MCP Server\n\nTrunk Flaky Tests comes with a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro) 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.\n\n### Supported AI Applications\n\n| Application                                                                                          | Supported | Guide                                                                                             | Plugin                                                          |\n| ---------------------------------------------------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |\n| [Cursor](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/cursor-ide)                 | Yes       | [Setup guide](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/cursor-ide)         | [Cursor plugin](https://github.com/trunk-io/cursor-plugin)      |\n| [Claude Code](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/claude-code-cli)       | Yes       | [Setup guide](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/claude-code-cli)    | [Claude Code plugin](https://github.com/trunk-io/claude-code-plugin) |\n| [GitHub Copilot](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/github-copilot-ide) | Yes       | [Setup guide](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/github-copilot-ide) |                                                                 |\n| [Gemini CLI](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/gemini-cli)             | Yes       | [Setup guide](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/gemini-cli)         |                                                                 |\n\n> [!NOTE]\n> Gemini Code Assist and Windsurf are not supported due to their limited support for MCP servers.\n\n## Quick Start\n\n### Cursor\n\nAdd to `.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"trunk\": {\n      \"url\": \"https://mcp.trunk.io/mcp\"\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add trunk --transport streamable-http https://mcp.trunk.io/mcp\n```\n\n### GitHub Copilot\n\nAdd to `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"trunk\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.trunk.io/mcp\"\n    }\n  }\n}\n```\n\n### Gemini CLI\n\nAdd to `~/.gemini/settings.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"trunk\": {\n      \"httpUrl\": \"https://mcp.trunk.io/mcp\"\n    }\n  }\n}\n```\n\n## API\n\nThe MCP server is available at `https://mcp.trunk.io/mcp` and exposes the following tools:\n\n| Tool                                                                                                              | Description                                                      |\n| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |\n| [`fix-flaky-test`](https://docs.trunk.io/flaky-tests/use-mcp-server/mcp-tool-reference/get-root-cause-analysis)  | Retrieve root cause analysis and fix suggestions for flaky tests |\n| [`setup-trunk-uploads`](https://docs.trunk.io/flaky-tests/use-mcp-server/mcp-tool-reference/set-up-test-uploads) | Generate a setup plan to upload test results to Trunk            |\n\n## Authorization\n\nThe 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.\n\n---\n\n**Made with love by the [Trunk.io](https://trunk.io) team**\n\n[slack]: https://slack.trunk.io\n[docs]: https://docs.trunk.io\n[vscode]: https://marketplace.visualstudio.com/items?itemName=Trunk.io\n",
  "bytes": 4802,
  "sha": "033dd0973f35fbc14fad63a246ae1c2f64de527a85504193c5f57d4c7148d483",
  "repo_slug": "trunk-io/mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_trunk_mcp_server_57352478/readme"
}