Trunk Flaky Tests includes 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.Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-sync-from-docs-1778014214.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Supported AI applications
The following applications are currently supported: Cursor, Claude Code, Gemini CLI, and GitHub Copilot.Gemini Code Assist and Windsurf are not supported due to their limited support for MCP servers
API
The Trunk MCP server is available athttps://mcp.trunk.io/mcp and exposes the following tools:
| Tool | Capability |
|---|---|
search-test | Experimental: Lookup the id of a test case |
fix-flaky-test | Experimental: Retrieve insights around a failing/flaky test |
investigate-ci-failure | Experimental: Retrieve failing test logs from a CI run |
setup-trunk-uploads | Create a setup plan to upload test results |