Trunk Flaky Tests

Official registry Other

Flaky test detection, root cause analysis, and fix suggestions for development teams.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

Remote (streamable-http)
Claude Code
claude mcp add --transport http trunk-flaky-tests 'https://mcp.trunk.io/mcp'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "trunk-flaky-tests": {
            "type": "http",
            "url": "https://mcp.trunk.io/mcp"
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Trunk.io MCP Server
  2. Use MCP Server
  3. Quick Start
  4. API
  5. Authorization

[][docs] [][vscode] [][slack]

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

[!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:

ToolDescription
fix-flaky-testRetrieve root cause analysis and fix suggestions for flaky tests
setup-trunk-uploadsGenerate 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

[slack]: https://slack.trunk.io [docs]: https://docs.trunk.io [vscode]: https://marketplace.visualstudio.com/items?itemName=Trunk.io

Frequently asked questions

What is Trunk Flaky Tests?

Flaky test detection, root cause analysis, and fix suggestions for development teams.

How do I install Trunk Flaky Tests?

It runs as a remote server. In Claude Code: claude mcp add --transport http trunk-flaky-tests 'https://mcp.trunk.io/mcp'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Trunk Flaky Tests need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Trunk Flaky Tests open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains Trunk Flaky Tests?

It is published by trunk-io. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.