Skip to content
Back to Guides

How to add an MCP server to Claude Code for production bugs

The Anthropic logo labeled Claude Code joined to the Interfere logo by a line marked MCP
LG

Levi Gans

·

AI agents

Add Interfere’s MCP server to Claude Code with one command or the plugin, investigate a production bug from your terminal, then save the fix as a skill your team can reuse.

Claude Code reads your repository, runs your tests and edits files, but it can’t see production. It doesn’t know which error users started hitting after Tuesday’s deploy or whether last week’s fix stopped it. Interfere is an AI tool for production bugs. It groups errors into problems, works out the cause from stack traces and session replays, and tracks whether a fix held. Over MCP, Claude Code reads all of it with your Interfere permissions.

Before you start, have:

  • Claude Code, opened in the repository the bugs live in
  • An Interfere workspace receiving events from that app, with source maps uploaded (get started)
  • The repository connected to Interfere through GitHub, so investigations cite real files and commits
  • Claude Code able to open pull requests in that repository, for example with the GitHub CLI

What an MCP server adds to Claude Code

Without one, Claude Code only knows what you paste into the chat:

Claude Code wants to knowPasted into the chatRead through Interfere’s MCP server
Which error to fix firstWhatever you noticedProblems ranked by priority, with affected users
Where the code failsA minified stack traceStack frames mapped to source through your source maps
When it startedNobody knowsFirst seen, matched to the release that shipped it
What the user didOne customer’s account of itA replay of the session up to the error
Whether the fix heldSomeone checks by handIn recovery, then Resolved, or reopened as a regression

Add Interfere’s MCP server to Claude Code

Both options sign in through OAuth in your browser, so no API key ends up in a config file.

Install the Interfere plugin

Run these inside Claude Code, then open /mcp, sign in to Interfere and pick your workspace:

Plain Text
1/plugin marketplace add interfere-inc/plugins2/plugin install interfere@interfere-plugin-marketplace

The plugin also adds an investigation skill. It connects to https://mcp.interfere.com/mcp, which can change workspace data within your permissions.

Add the server with claude mcp add

Bash
1claude mcp add --transport http interfere https://mcp.interfere.com/mcp/readonly

Sign in with /mcp, or run claude mcp login interfere from your shell. Start with the read-only URL. Fixing code only takes reads, and /mcp/readonly rejects every change to workspace data, so an agent that misreads a prompt can’t resolve or dismiss a problem.

ScopeFlagWho gets the server
Local (default)NoneYou, in this project
Project--scope projectEveryone who clones the repo, through .mcp.json
User--scope userYou, in every project

Project scope suits a team. .mcp.json holds only the URL, and each engineer signs in with their own Interfere account. The MCP docs cover other clients.

Investigate a production bug from Claude Code

For the first run, pick a problem you already understand so you can judge the answer:

Plain Text
1Using Interfere, open this problem: <problem link>2Which release did it start in, how many users hit it, and which stack frame3fails? Show me the code at that frame in this repo before suggesting a change.

If the investigation already suggests a fix, the problem’s timeline shows Fix ready with a Copy prompt button. Paste that prompt into Claude Code instead.

Either way, check the diff against the evidence. The change should touch the failing code path, and a test should fail without it.

Write the fix down as a skill

Once a few manual fixes look like ones you’d merge, save the steps as a skill. Create .claude/skills/interfere-fix/SKILL.md:

Markdown
1---2name: interfere-fix3description: Fix an Interfere problem using the Interfere MCP, with a regression test and a draft pull request. Use when given an Interfere problem link.4---56Fix the Interfere problem I link using the Interfere MCP.781. If the Interfere MCP server is not connected yet, stop and ask me to sign9   in with `/mcp`.102. Look for an open pull request whose description contains this problem's11   Interfere link. If there is one, stop.123. Use the Interfere MCP to read the problem in the workspace from the link:13   its root cause, the evidence and the suggested fix. Search the MCP for14   these operation IDs: problems_get, problemEvidence, problemSource,15   problemRelated, problemImpact, findingOccurrences, traceLogs. Read at16   least two occurrences and their logs before you change code.174. If the cause is outside this repository, such as an expired key, a18   provider outage or an infrastructure setting, summarize it and stop.195. Write a test that reproduces the failure. It must fail before your change20   and pass after it.216. Apply the fix in this repository, adapting it if the code has moved22   since. Change only the code the fix needs, then run the full test suite.237. Open a draft pull request. Put the Interfere problem link on the first24   line of the description, then the cause in one sentence and the test25   command. A person merges it. You don't.268. Summarize what you changed and link the pull request.

Commit it, and run it with /interfere-fix and a problem link. The duplicate check looks at open pull requests, which every teammate can see, so a later run on the same problem stops instead of opening another one.

Check the fix in production

After the deploy, the problem moves to In recovery while Interfere looks for new occurrences, then to Resolved once they stop. If the error comes back, it reopens as a regression with its original first-seen date. Once a week, ask Claude Code:

Plain Text
1Find pull requests merged in the last 7 days that link an Interfere problem.2For each one, give the problem's current status and flag any that are still3Active or have reopened as a regression.

Review flagged pull requests first, since the bug they targeted is still happening. The MTTR guide shows where this saves time.

Troubleshooting

What happensWhat to do
/mcp lists interfere as needing authenticationSelect it and finish the sign-in in your browser, or run claude mcp login interfere.
Interfere refuses to change a problem’s statusYou’re on /mcp/readonly, which rejects writes. Use /mcp only for intended changes.
Two pull requests open for the same problemMake sure each description has the problem link. The duplicate check searches for it.

Does Claude Code support remote MCP servers?

Yes. claude mcp add --transport http registers a server by URL, and Claude Code handles the OAuth sign-in through /mcp. Nothing runs on your machine for a remote server like Interfere’s.

Claude Code vs Grok Bot for fixing production bugs

Claude Code runs when you start it, in your terminal, and its skills are files you commit, so the whole team runs the same steps. Grok Bot runs routines on a schedule, as often as every 5 minutes, as the Grok Bot guide shows. Both read the same Interfere investigation.

Set up Interfere, connect it to Claude Code, and try it on one problem you already understand.