MCP server for Gaffer test history - give your AI assistant memory of your tests
MCP server for Gaffer test history - give your AI assistant memory of your tests. The mcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 14 defined tools rather than through you.
This MCP server connects AI coding assistants like Claude Code and Cursor to your Gaffer test history and coverage data. It allows AI to:
Everything the assistant can do here goes through one of these:
list_projects — List all projects you have access toget_project_health — Get health metrics (pass rate, flaky count, trends)list_test_runs — List recent test runs with optional filteringget_test_run_details — Get parsed test results for a specific test runget_report — Get report file URLs for a test runget_report_browser_url — Get a browser-navigable URL for viewing reportsget_test_history — Get pass/fail history for a specific testget_flaky_tests — Get tests with high flip rates (pass↔fail)get_slowest_tests — Get slowest tests by P95 durationcompare_test_metrics — Compare test performance between commitsget_failure_clusters — Group failed tests by root cause (error similarity)get_upload_status — Check if CI results are uploaded and processedYou will need 2 environment variables: GAFFER_API_KEY, GAFFER_API_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
The server ships on npm as @gaffer-sh/mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP's toolset — list_projects, get_project_health, list_test_runs and 11 more — is a fair guide to whether it matches your workflow. It is maintained by gaffer-sh; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| list_projects | List all projects you have access to |
| get_project_health | Get health metrics (pass rate, flaky count, trends) |
| list_test_runs | List recent test runs with optional filtering |
| get_test_run_details | Get parsed test results for a specific test run |
| get_report | Get report file URLs for a test run |
| get_report_browser_url | Get a browser-navigable URL for viewing reports |
| get_test_history | Get pass/fail history for a specific test |
| get_flaky_tests | Get tests with high flip rates (pass↔fail) |
| get_slowest_tests | Get slowest tests by P95 duration |
| compare_test_metrics | Compare test performance between commits |
| get_failure_clusters | Group failed tests by root cause (error similarity) |
| get_upload_status | Check if CI results are uploaded and processed |
| get_coverage_summary | Get overall coverage metrics and trends |
| get_coverage_for_file | Get coverage for specific files or paths |
{
"mcpServers": {
"gaffer-sh": {
"command": "npx",
"args": ["-y", "@gaffer-sh/mcp"],
"env": {
"GAFFER_API_KEY": "your-value",
"GAFFER_API_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| GAFFER_API_KEY | Credential the server authenticates with. | Yes |
| GAFFER_API_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.