flake-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FLAKE_LIVE | No | Set to 1 to enable live triage in the MCP tool. Live triage is off unless FLAKE_LIVE=1 and GITHUB_TOKEN are set. | 0 |
| GITHUB_TOKEN | No | GitHub token (read-only is enough). Live triage in the MCP tool is off unless FLAKE_LIVE=1 and GITHUB_TOKEN are set. | |
| FLAKE_LIVE_REPOS | No | Repositories allowed for live triage. Live triage accepts only exact job addresses of repositories listed here. | |
| FLAKE_LIVE_MAX_USD | No | Caps model spend per process for live triage. | 1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Answers whether a failed GitHub Actions job is worth re-running: 'retry', 'no_retry' or 'unsure', always with the log lines it rests on. 'unsure' means: follow the team's current policy (retry). Never re-run a job, comment or open an issue on the strength of these tools alone; show the evidence to a person. flaky_tests lists tests that failed and then passed on a re-run, with an issue draft.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| triage_jobB | Triage one failed job by its address: https://github.com/OWNER/REPO/actions/runs/RUN/job/JOB. |
| failureC | The decision for one collected failure, with its evidence and what happened when it was re-run. |
| flaky_testsC | Tests that failed and then passed on a re-run of the same commit at least |
| summaryC | Minutes saved, flakes kept and failed-again retries skipped, for 'holdout', 'dev' or 'all'. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
triage_job and failure both operate on failed CI jobs, and the 'failure' description ('The decision for one collected failure') does not make clear whether it lists failures, fetches one by id, or records a decision. flaky_tests and summary are clearly distinct from these and from each other. Descriptions help somewhat but the job/failure boundary remains ambiguous.
Only triage_job follows a verb_noun pattern; failure, flaky_tests, and summary are bare nouns, and the noun tools are inconsistently singular (failure) vs plural (flaky_tests). The set is still readable, but there is no predictable convention an agent can rely on.
Four tools is on the thin side, but for a narrowly scoped flaky-test triage server each tool covers a distinct capability (triage a job, inspect a failure, list flakes, aggregate savings). Nothing feels redundant or padded.
The surface covers triaging an individual job URL, inspecting a failure, listing flaky tests, and summarizing, but there is no evident way to enumerate the collected failures or runs to feed triage_job — the agent has to already know a job URL. That discovery gap is a notable missing operation rather than a minor one.