Skip to directory

About Trunk Flaky Tests MCP

A hosted MCP server for accessing Trunk Flaky Tests from supported AI clients, including flaky-test root-cause analysis and guidance for setting up test-result uploads.

What you can use it for

  • Retrieve root-cause analysis and fix suggestions for flaky tests
  • Get a setup plan for uploading test results to Trunk
Connection and setup
Hosting
Remote hosted
Transport
Streamable HTTP
Endpoint
https://mcp.trunk.io/mcp
Authentication
OAuth 2.0 with OpenID Connect through browser login and Trunk account consent.

Requirements

  • Trunk account and access to its Flaky Tests service
  • MCP client; Trunk lists Cursor, Claude Code, GitHub Copilot, and Gemini CLI
  • Flaky-test analysis requires relevant Trunk Flaky Tests/repository setup; plan requirements are not specified in reviewed MCP docs

Setup steps

  1. Add https://mcp.trunk.io/mcp as an HTTP MCP server in a supported client.
  2. Start or authorize the server and complete Trunk account login/consent in the browser.
  3. Return to the client and confirm tools are discovered.
  4. Use fix-flaky-test for an available flaky-test result or setup-trunk-uploads for a setup plan.
Tools 2

Trunk’s current official repository lists two hosted tools: one retrieves flaky-test root-cause analysis and suggestions, and one generates test-result upload setup instructions.

  • fix-flaky-test

    Retrieve root cause analysis and fix suggestions for flaky tests.

    01
  • setup-trunk-uploads

    Generate a setup plan to upload test results to Trunk.

    02
Limitations and notes
  • This server accesses Trunk Flaky Tests; it is not a general Trunk platform administration API.
  • Gemini Code Assist and Windsurf are explicitly unsupported in the repository README.
  • Claude Code setup guide was inaccessible behind a login redirect during this check; repository lists it as supported and provides a CLI command.
  • Reviewed MCP sources do not specify pricing/plan rules or tool schemas.
Original sources

Documentation checked 2026-10-28T14:06:33.000Z. Connection has not been runtime tested.