How to connect Runheed to Claude Code

One command adds Runheed to Claude Code. After that, ask Claude what broke in production and it reads the errors itself.

Runheed is an error tracker with an MCP server: your app reports exceptions through a small SDK, and Claude Code reads them through the server below.

Steps

  1. Run the first command below in your project directory.
  2. Start Claude Code, run /mcp, pick runheed and choose Authenticate. Sign in to Runheed in the browser and click Allow.
  3. Prefer a key? Create an agent key in Runheed under Settings > Agent keys and use the local server command instead.

Where the config lives: Claude Code stores MCP servers per project by default; add --scope user to make Runheed available in every project.

terminal (remote, sign in)bash
claude mcp add --transport http runheed https://runheed.com/api/mcp

# every project:
claude mcp add --transport http --scope user runheed https://runheed.com/api/mcp
terminal (local server, agent key)bash
claude mcp add runheed --env RUNHEED_API_KEY=al_your_key -- npx -y https://runheed.com/dl/runheed-mcp-0.1.7.tgz

# check it is connected (look for "Connected")
claude mcp list

The npm and PyPI releases are not out yet, so these commands install the same package files straight from runheed.com. Nothing else changes when the registry versions ship.

On first connect a runheed.com sign-in page opens: sign in and click Allow. Settings > Agent keys > Connected apps lists it, with Disconnect.

The local server runs with npx, so it needs Node.js 18 or newer.

To try it first, point Claude Code at https://runheed.com/api/mcp/demo (sample errors, no sign-in). Demo server.

How Claude Code handles the server

claude mcp add saves to the local scope unless you pass --scope: local is this project and only you, project writes .mcp.json in the repo root for everyone who clones it, and user covers all your projects. If Runheed is defined in more than one scope, Claude Code uses the whole entry from the highest one (local, then project, then user) and does not merge fields.

To pause Runheed without losing its entry, toggle it off in the /mcp panel; it stays listed as disabled. claude mcp remove runheed deletes the entry and the OAuth tokens Claude Code stored, but does not revoke them on our side: click Disconnect under Connected apps in Runheed's Settings > Agent keys for that.

Check that it works

Ask: "Use runheed_get_recent and tell me what failed in production today."

If Claude Code doesn't connect

claude mcp list shows "! Needs authentication"
The URL entry is saved but not signed in. Run /mcp in a session, pick runheed and choose Authenticate.
"Pending approval (run claude to approve)"
A server that came from a checked-in .mcp.json waits for each person to approve it. Start claude in the repo and accept it.
The server times out while starting
Raise the startup timeout with the MCP_TIMEOUT environment variable, for example MCP_TIMEOUT=10000 claude for 10 seconds.
"Start a plan to connect" on the sign-in page
Connecting needs an active plan. Pick one on that page, pay in Stripe Checkout, then connect again from the app.
The app keeps asking you to sign in
The app was disconnected in Settings (its key was revoked). Sign in again and click Allow.

Questions

Can my whole team share the Runheed setup through the repo?
Yes, with --scope project. The URL entry in .mcp.json holds no key, and each person signs in to Runheed with their own account the first time.
Can Claude Code fix the bug it reads in Runheed?
It reads the stack trace, breadcrumbs and request, edits your code like any other task, then calls runheed_resolve_error with a note such as the commit hash. The group reopens on its own if the error comes back.
What can Claude Code change in Runheed?
Error status (resolve with a note such as the commit hash, ignore, unignore), grouping (merge duplicates into one error), new projects and a test event. Not billing or keys, and Runheed has no access to your code or servers.

Next: the find, fix and resolve loop, and what Claude Code can see.

SDK side: setup by framework, or tell Claude Code Read https://runheed.com/SETUP.txt and set up error tracking. Reference: Claude Code MCP docs.

7-day trial, then $29/moSee what Claude Code readsCancel any time from the billing portal

Other clients: claude.ai · ChatGPT · Cursor · Claude Desktop · VS Code · Windsurf · Codex CLI · Gemini CLI · Kiro · Lovable · Replit · Bolt · Antigravity · Zed · Cline