Gaffer hosts your test reports by link, and its MCP server lets Claude Code read them
Ask which tests are flaky or why a run failed. The assistant answers from the flip rates and grouped failures Gaffer keeps for every uploaded run.
No credit card on Free.
A failed run doesn't say if the test is flaky. 30 days of runs do.
Over MCP, the assistant can check a test's flip rate and recent errors before it changes any code.
get_flaky_tests returns this table.
get_flaky_tests returns this table.
get_failure_clusters returns these groups.
get_failure_clusters returns these groups.Add Gaffer to Claude Code or Cursor with one block in the MCP config
Put this block in ~/.claude.json for Claude Code or .cursor/mcp.json for Cursor, with an API key from Account Settings > API Keys. The second block is the kind of script the assistant writes to answer questions.
- MCP setup guide → Claude Code and Cursor config, API keys and all 17 functions.
- How agents use test history → Why test history helps an agent.
~/.claude.json
{
"mcpServers": {
"gaffer": {
"command": "npx",
"args": ["-y", "@gaffer-sh/mcp"],
"env": {
"GAFFER_API_KEY": "gaf_your_api_key_here"
}
}
}
} execute_code, written by the assistant
const health = await codemode.get_project_health({ projectId: "proj_abc" });
if (health.flakyTestCount > 0) {
const flaky = await codemode.get_flaky_tests({ projectId: "proj_abc" });
return { health, flaky };
}
return { health }; Upload your first test run, then add the MCP server to your editor
The demo project needs no sign-up.