Trunk Flaky Tests

io.trunkPublished by trunk.ioOfficial publisherv1.1.0Updated Oct 24, 2026

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

VerifiedStreamable HTTPWeb executableDeveloper ToolsData & Analytics

Overview

AI-generated overview

Trunk Flaky Tests MCP server that lets an assistant look up root causes and fix suggestions for flaky tests and plan test-result uploads to Trunk.

What you can do
  • Retrieve root cause analysis and fix suggestions for flaky tests
  • Generate a setup plan for uploading test results to Trunk
When to use it
Useful for development teams already using Trunk Flaky Tests who want flaky-test diagnosis and upload setup guidance inside an IDE or AI client such as Cursor, Claude Code, GitHub Copilot or Gemini CLI.
Requirements
Remote streamable HTTP endpoint at no local package. OAuth 2.0 + OpenID Connect authentication with a Trunk account, prompted by the client on connect. A supported MCP client is needed; Gemini Code Assist and Windsurf are stated as unsupported.
Before you install
Requires signing in with your Trunk account via OAuth, so the assistant's queries are tied to that account's data. The setup tool only generates a plan, but following it involves uploading test results to Trunk's service.

Installation

In SourceWeft

  1. Open Trunk Flaky Tests in the dashboard and add it to a workspace.
  2. Connect the required credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.trunk%2Fmcp-server/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.

{
  "mcpServers": {
    "trunk-flaky-tests": {
      "type": "http",
      "url": "https://mcp.trunk.io/mcp"
    }
  }
}

README

[Trunk.io] [docs] [vscode] [slack] [openssf]

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:

json
{  "mcpServers": {    "trunk": {      "url": "https://mcp.trunk.io/mcp"    }  }}

Claude Code

bash
claude mcp add trunk --transport streamable-http https://mcp.trunk.io/mcp

GitHub Copilot

Add to .vscode/mcp.json:

json
{  "servers": {    "trunk": {      "type": "http",      "url": "https://mcp.trunk.io/mcp"    }  }}

Gemini CLI

Add to ~/.gemini/settings.json:

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

Source: README.md at commit 8f93623

Tools

0
This server asks you to sign in, so SourceWeft could not read its tools without an account and has not indexed them. What a connected account sees can depend on that account and its permissions.

Version history

1
  1. v1.1.0LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.

Other Trunk integrations