MCP server for coding agents
Your agent finds the root cause. RunFix verifies the patch.
When a build, test or command fails, your agent calls RunFix's triage_failure tool and gets the real cause plus a patch checked with git apply --check — before it ever reaches your working tree.
- triage_failure: root cause in one tool call
- Every patch pre-verified with git apply --check
- Works inside Claude Code, Codex, Cursor and Antigravity
How it works
The agent-to-RunFix handshake
The agent hits a failure
A build, test suite or command exits non-zero. The failure output — stderr, stack trace, exit code — stays local.
The agent calls triage_failure
RunFix receives the scrubbed output over MCP and analyses it: root cause, failure category, affected files.
RunFix verifies the patch
A candidate fix is synthesised as a unified diff and validated with git apply --check against your working tree.
The agent returns the verified fix
Root cause plus an applicable patch reach the agent's context. Nothing is written to your working tree without the agent deciding to.
Install
One command per agent
RunFix speaks plain MCP over stdio. Add it once and the triage_failure tool shows up in your agent's tool list. Full options live in the docs.
Claude Code
claude mcp add runfix -- npx -y runfix mcpProject or user scope; RunFix joins the agent's MCP tool list immediately.
Codex
# ~/.codex/config.toml
[mcp_servers.runfix]
command = "npx"
args = ["-y", "runfix", "mcp"]Add the server block, then restart Codex to load the triage_failure tool.
Cursor
# ~/.cursor/mcp.json
{
"mcpServers": {
"runfix": { "command": "npx", "args": ["-y", "runfix", "mcp"] }
}
}Paste into MCP settings and enable; Cursor detects it on the next session.
Antigravity
npx -y runfix mcpPoint the Antigravity MCP client at the runfix binary over stdio.
Product
Quiet, precise, verified
Root cause in one tool call
triage_failure takes the failing command and its output, then returns the real cause — not a paraphrase of the stack trace.
Every patch pre-verified
Patches are checked with git apply --check before they are returned. If it would not apply, you get the diagnosis, not a broken edit.
Secrets scrubbed by default
Tokens, keys and connection strings are stripped from everything that leaves your machine, ten categories covered.
Native MCP, zero glue
Runs over stdio inside Claude Code, Codex, Cursor and Antigravity. No proxy, no API key wiring, no browser round-trip.
Unified diffs, ready to apply
Output is a clean git-compatible patch you can review in the terminal or drop straight into a branch.
Built for real failures
Build errors, test failures, hydration mismatches, OOM kills, panics — triaged from the same telemetry the CLI already understands.
Web demo
No agent? Paste an error in the browser.
The original RunFix workbench is still live: paste a stack trace, get the scrubbed analysis and a unified diff in the browser. It is a taste of what your agent gets automatically — the real product is the MCP server above.
About RunFix
RunFix is built by RunFix on the idea that agents should not guess at failures. It started as a browser workbench that turned stack traces into verified git patches, and is now an MCP server that plugs the same engine directly into the tools where the failures happen. Everything that leaves your machine is scrubbed first, and nothing is returned unless it applies cleanly.