MCP server for Claude Code

Add the Disbug MCP server to Claude Code

Paste one prompt and Claude Code installs the Disbug CLI, signs you in, and adds the Disbug MCP server and the using-disbug skill. Claude can then read your team’s bug reports, fix the code and mark each pin resolved.

A checkout page with two Disbug pins, on the $83.20 total and on the Place order button. A console warning, a TypeError and the POST /api/orders 422 response travel from the pins to a Claude Code terminal, which edits cart.js and marks both pins resolved.

Set it up in Claude Code

  1. 01

    Paste this prompt into Claude Code

    Prompt
    I want to set up Disbug. Read https://app.disbug.io/agent-setup/ and follow its instructions.

    Approve the steps it asks about. It’s done when Claude Code reports MCP OK, skill OK.

  2. 02

    Start a new session

    Claude Code loads MCP servers when a session starts.

›Prefer to run the commands yourself?

Install the CLI and connect Claude Code, or register the server at user scope or in a project .mcp.json:

Install and connect
brew install disbug-io/tap/disbug
disbug onboard --agent claude-code
User scope
claude mcp add --scope user disbug -- disbug mcp
.mcp.json
{
  "mcpServers": {
    "disbug": {
      "command": "disbug",
      "args": ["mcp"]
    }
  }
}

If Claude Code can’t find disbug, put the full path from which disbug in command. To repair the setup, run disbug configure --agent claude-code, then disbug doctor.

A Claude Code terminal fixing Disbug session 482. Claude calls get_session and get_pins, and the evidence lands in the transcript: the pin 1 screenshot, the console warning from cart.js:87 and the TypeError from checkout.js:214, and the POST /api/orders 422 total_mismatch response. Claude explains the cause, edits cart.js so applyCoupon recalculates the total, edits checkout.js, and calls set_pin_status: pin 1 and pin 2 resolved, with a note.
Claude Code pulls the evidence, fixes cart.js and resolves both pins

What Claude Code can do with Disbug

  • list_sessionssearch_sessions

    List open sessions in a project, or search them by text.

  • get_session

    Read one report: its title and every pin with its note and page URL.

  • get_pinget_pinssearch_pins

    Read or search pins with only the fields needed: screenshot, console, network, events, replay, voice_note or video.

  • download_attachment

    Open a file a reporter attached to a pin.

  • set_pin_statusset_session_status

    Mark a pin or session open, resolved or dismissed, with an optional note.

  • inspect_local_report

    Read a report JSON downloaded from the extension.

  • whoami

    Show which Disbug account and team the server uses.

How to give Claude Code a bug to fix

Give it what you’d give a developer, as text it can read. Ask it to find the cause first and name the evidence that points there, then to write a test that fails before the fix and passes after.

What Claude Code needs

Where it happens
The page URL and the element.
What the person did
The steps, in order, with the data they used.
Expected and actual
Without it, the agent guesses which behaviour is the bug.
Console errors
The message, file and line.
Failed requests
Method, URL, status and response body.
A screenshot
So the agent sees the state of the page.

With Disbug: Give Claude Code the report link. It reads each of these through the MCP server, so you don’t paste logs into the chat.

Prompts to try

  • Fix the open Disbug session on checkout and mark the pins resolved with a note.
  • List the open Disbug sessions in the Storefront project and tell me which to fix first.
  • Read pin 2 of https://app.disbug.io/acme/projects/12/sessions/482/ with its console and network logs, and find the cause before changing any code.
  • Inspect ./disbug-report.json and write a failing test that reproduces it.

The using-disbug skill tells Claude Code which tools to use. Full reference: theDisbug CLI READMEand theagent guide.

Claude Code questions

User scope or project scope?

disbug configure registers the server at user scope, for every project. Use a project .mcp.json to limit it to one repository or to share the setup with your team.

Can I use a second Disbug account?

Yes. Sign in with disbug --profile work login and register the server with disbug --profile work mcp as the command.

Does the MCP server run locally?

Yes. Claude Code starts disbug mcp on your machine and talks to it over stdio. For cloud reports, the CLI fetches sessions from your Disbug team with the token from disbug login.

What can Claude Code see?

Sessions and pins from the Disbug team you signed in to, and the files reporters attached. It fetches only the fields it asks for, one tool call at a time.

Does it work with local reports that were never uploaded?

Yes. The Chrome extension can save a report as a JSON file instead of uploading it, and inspect_local_report reads that file from disk.

Can the agent change anything in Disbug?

Only the status of sessions and pins, through set_session_status and set_pin_status. Every other tool only reads.

Which plan do I need?

MCP and CLI access is part of every plan, including Free. See pricing for session and seat limits.

Give Claude Code the whole bug.

Start free and capture your first report with the Chrome extension.