Flaky test detection, root cause analysis, and fix suggestions for development teams.
This plugin connects Claude Code to the Trunk Flaky Tests MCP server, giving you AI-powered tools, slash commands, and built-in knowledge for debugging and fixing flaky tests.
| Tool | Description |
|---|---|
fix-flaky-test |
Retrieve root cause analysis and fix suggestions for flaky tests |
setup-trunk-uploads |
Generate a setup plan to upload test results to Trunk |
| Command | Description |
|---|---|
/trunk:fix-flaky |
Get root cause analysis and apply a fix for a flaky test |
/trunk:why-flaky |
Explain why a test is flaky without making changes |
/trunk:setup-uploads |
Set up test result uploads to Trunk for your repository |
| Skill | Description |
|---|---|
flaky-test-patterns |
Common flaky test patterns and fixes — activates when debugging or writing tests |
trunk-ci-setup |
CI pipeline best practices for test uploads — activates when editing CI config files |
Install from the Claude Code plugin marketplace:
/plugin install trunk@claude-plugin-directory
Or add manually to your MCP configuration:
{
"mcpServers": {
"trunk": {
"type": "http",
"url": "https://mcp.trunk.io/mcp"
}
}
}# Fix a flaky test in one command
/trunk:fix-flaky test_user_login
# Understand why a test is flaky before deciding what to do
/trunk:why-flaky test_payment_processing
# Set up test uploads for your repo
/trunk:setup-uploads
The Trunk MCP server uses OAuth 2.0 + OpenID Connect. When you first connect, you'll be prompted to authenticate via your Trunk account.
- Cursor
- Any MCP client (GitHub Copilot, Gemini CLI, and more)
MIT