{
  "markdown": "# Trunk Flaky Tests — Claude Code Plugin\n\nFlaky test detection, root cause analysis, and fix suggestions for development teams.\n\n## What it does\n\nThis plugin connects Claude Code to the [Trunk Flaky Tests](https://trunk.io) MCP server, giving you AI-powered tools, slash commands, and built-in knowledge for debugging and fixing flaky tests.\n\n### MCP Tools\n\n| Tool                  | Description                                                      |\n| --------------------- | ---------------------------------------------------------------- |\n| `fix-flaky-test`      | Retrieve root cause analysis and fix suggestions for flaky tests |\n| `setup-trunk-uploads` | Generate a setup plan to upload test results to Trunk            |\n\n### Slash Commands\n\n| Command                | Description                                                  |\n| ---------------------- | ------------------------------------------------------------ |\n| `/trunk:fix-flaky`     | Get root cause analysis and apply a fix for a flaky test     |\n| `/trunk:why-flaky`     | Explain why a test is flaky without making changes           |\n| `/trunk:setup-uploads` | Set up test result uploads to Trunk for your repository      |\n\n### Skills\n\n| Skill                  | Description                                                                          |\n| ---------------------- | ------------------------------------------------------------------------------------ |\n| `flaky-test-patterns`  | Common flaky test patterns and fixes — activates when debugging or writing tests     |\n| `trunk-ci-setup`       | CI pipeline best practices for test uploads — activates when editing CI config files |\n\n## Install\n\nAdd the [community plugins marketplace](https://github.com/anthropics/claude-plugins-community) if you haven't already:\n\n```\nclaude plugin marketplace add anthropics/claude-plugins-community\n```\n\nThen install the Trunk plugin:\n\n```\nclaude plugin install trunk@claude-community\n```\n\n<details>\n<summary>Alternative: install directly from GitHub</summary>\n\n```\n/plugin install trunk@https://github.com/trunk-io/claude-code-plugin\n```\n\n</details>\n\nOr add manually to your MCP configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"trunk\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.trunk.io/mcp\"\n    }\n  }\n}\n```\n\n## Quick Start\n\n```\n# Fix a flaky test in one command\n/trunk:fix-flaky test_user_login\n\n# Understand why a test is flaky before deciding what to do\n/trunk:why-flaky test_payment_processing\n\n# Set up test uploads for your repo\n/trunk:setup-uploads\n```\n\n## Authorization\n\nThe Trunk MCP server uses **OAuth 2.0 + OpenID Connect**. When you first connect, you'll be prompted to authenticate via your Trunk account.\n\n## Documentation\n\n- [Trunk Flaky Tests docs](https://docs.trunk.io/flaky-tests)\n- [MCP server docs](https://docs.trunk.io/flaky-tests/use-mcp-server)\n- [Claude Code MCP setup](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/claude-code-cli)\n- [Claude Code Plugin setup](https://docs.trunk.io/flaky-tests/use-mcp-server/configuration/claude-code-plugin) (docs PR: [trunk-io/docs#515](https://github.com/trunk-io/docs/pull/515))\n\n## Also Available For\n\n- [Cursor](https://github.com/trunk-io/cursor-plugin)\n- [Any MCP client](https://github.com/trunk-io/mcp-server) (GitHub Copilot, Gemini CLI, and more)\n\n## License\n\nMIT\n",
  "bytes": 3340,
  "sha": "04e958d670693ed4a3c76de374050546a6ae42c0c2483ab1c14003977641b6ef",
  "repo_slug": "trunk-io/claude-code-plugin",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_trunk_io_claude_code_plugin_trunk_3848d60f/readme"
}