How to Connect Claude Code to Your Bug Tracker via MCP
Wire Claude Code into BugMojo via the Model Context Protocol and your AI agent can read, triage, and update bugs from inside your IDE, in about 10 minutes.
You've heard about MCP. Maybe you've even watched a demo. But you haven't wired one up yourself yet, and the docs feel scattered across three different sites. This guide fixes that. By the end, Claude Code will read your BugMojo backlog, summarize critical bugs, and update statuses without you ever opening the dashboard.
What is MCP and why does it matter for bug tracking?
The Model Context Protocol (MCP) is an open standard, released by Anthropic in November 2024, for connecting AI assistants to external data and tools (Model Context Protocol specification, Anthropic, 2024). Think of it as USB-C for AI: one cable, many devices. For bug tracking, that means Claude Code can read your bugs directly instead of you copy-pasting context every time.
The Model Context Protocol, introduced by Anthropic in November 2024, lets AI clients like Claude Code call structured tools on external servers using a JSON-RPC contract. BugMojo's hosted MCP server exposes its bug-tracking tools to any compatible client.
Before MCP, "AI sees my bug tracker" meant either pasting bug descriptions into chat by hand or maintaining a custom plugin per IDE. With MCP, one server works across Claude Code, Cursor, Windsurf, Cody, and Zed. BugMojo ships that server.
The biggest unlock is not "Claude reads bugs." It's that Claude can correlate a bug with the code in your current branch. When the AI has both the file you're editing and the bug's session-replay context, fix suggestions get noticeably more accurate.
Prerequisites
You need three things before starting. Each takes under a minute to verify.
- Claude Code installed. Download the CLI from the official Claude Code page and confirm
claude --versionprints something. - A BugMojo account with a project. Sign up at bugmojo.com if you haven't. Create at least one project so there's something to list.
- Access to at least one bug. The agent inherits your permissions, so it only sees bugs you can already see.
Step 1: Add the BugMojo MCP server
BugMojo hosts its MCP server at https://www.bugmojo.com/api/mcp, so there is nothing to install locally and no key to copy. Open a terminal in the project you want Claude Code to work in and run one command:
claude mcp add --transport http bugmojo https://www.bugmojo.com/api/mcpClaude Code connects to BugMojo's hosted MCP endpoint at https://www.bugmojo.com/api/mcp over HTTP and signs in with OAuth in the browser. The connection inherits the signed-in user's role and is limited to the one workspace that user approves.
That registers a server named bugmojo that talks to the hosted endpoint over HTTP. Add ?mode=qa to the URL for the regression and test-run tools, ?mode=all for everything, or ?workspace=<slug> to pin one workspace.
Step 2: Sign in and verify the connection
Start (or restart) Claude Code so it picks up the new server. Then run /mcp and complete the BugMojo login in the browser that opens. On the consent screen you choose the one workspace the agent may use and what it may do, then approve. If the verification fails, jump to the Troubleshooting section below before retrying anything.
Claude Code registers remote MCP servers with the claude mcp add command and its --transport http option. BugMojo's endpoint asks for authorization, Claude Code opens the browser for the OAuth sign-in, and later tool calls carry the token it receives.
To verify, run /mcp again inside Claude Code and confirm bugmojo is listed as connected. The BugMojo tools are now available to Claude, and calling whoami shows the role and permissions the connection has.
Step 3: Your first prompts
Open Claude Code and try the four prompts below. Between them they exercise the read and write tools, so by the end you'll know the integration works end-to-end. There's no setup beyond what you've already done. Claude will discover the tools automatically.
Try these in order:
- "Show me the 10 most recent critical bugs in BugMojo." Claude calls
list_bugswith a priority filter and prints a table. Good first sanity check. - "Summarize this week's bugs grouped by suspected root cause." Claude calls
list_bugs, reads each one, and clusters them. This is where the value compounds, you get triage for free. - "Update bug NB-42 status to In Progress and add a comment that I'm starting work." Two MCP calls:
update_bugandadd_comment. Watch the dashboard update in real time. - "What bugs are assigned to me?" Claude calls
list_bugswith an assignee filter scoped to your member ID. Useful as a Monday-morning warmup.
A worked example: from captured bug to proposed fix
Here's the loop the integration is built for, on an example checkout bug. It's the same pattern described in how AI agents fix bugs with MCP.
- A bug is captured. A QA engineer hits an error at checkout and captures it with the BugMojo extension. The capture holds the session replay, the console error and the failed network request, and personal data is redacted in the browser before anything is uploaded.
- You point Claude at it. In your repo you type: "Pull BugMojo bug WEB-412, find out why checkout throws, and propose a fix."
- Claude reads the evidence over MCP. It finds the bug with
list_bugs, opens it withget_bug, and readsget_bug_console_logs,get_bug_network_logsandsummarize_replay. Say the console showsTypeError: Cannot read properties of undefined (reading 'total')and the network log shows a500fromPOST /api/cart/checkout. - It reproduces, then fixes.
get_repro_packturns the recorded session into a Playwright spec, so Claude can watch the failure happen before it changes code. It finds the handler that reads the cart total before the price request resolves and proposes a fix as a diff you review. - It closes the loop. Claude posts the root cause with
add_commentand moves the bug on withupdate_bug, if your role allows it.
No tab switching and no pasted stack traces: the context the tester captured is the context the agent reads.
What MCP tools BugMojo exposes
BugMojo's MCP server groups its tools into three families: core bug operations, regression testing, and AI agent task management. Each tool is a typed JSON-RPC method with a Zod-validated input schema, so Claude knows exactly what fields are valid before calling. Claude only sees the tools your role allows, and the regression tools appear when you connect with ?mode=qa.
BugMojo's hosted MCP server registers its tools across bug, regression, and agent task domains with the official MCP SDK's McpServer and serves them over HTTP. Each tool accepts Zod-validated input and calls the same tRPC procedures the BugMojo web app uses, so the app's permission checks apply to agents too.
The main tools:
Core bug tools:
list_bugs: paginated list and search with status, priority, assignee, and project filtersget_bug: full bug detail with comments, recordings, and screenshotsget_bug_console_logsandget_bug_network_logs: the captured console logs and network requests, errors firstsummarize_replay: the session replay as a compact timeline of user actions and errorscreate_bug: new bug with title, description, priority, assigneeupdate_bug: patch title, description, status, priority, or assigneeadd_comment: append a comment to a bug
Regression testing tools (with ?mode=qa):
list_regression_suites: all suites in a projectget_regression_suite: suite detail with linked test casescreate_regression_run: kick off a new test runsubmit_test_result: record pass/fail with evidenceget_regression_run: a run with all its results and evidence
Agent task tools:
list_agent_inbox: risk-ranked work any agent may claimclaim_task: take an exclusive, expiring lease on one taskupdate_task_lease: extend, release, or complete a task you hold
Besides tools, the server offers MCP resources, such as bug://WEB-142 for one bug's full record, and prompts such as reproduce_and_fix, which walks Claude through reading a bug, fixing it and commenting on it when your role can update bugs.
No browser? Use an API key
Browser sign-in is the default, but CI jobs and agents that can't open a browser, such as the Claude Agent SDK, can't complete OAuth. For those, BugMojo's MCP endpoint also accepts an API key. Generate one under Settings -> API Keys (it starts with bm_key_ and is shown once), send it as Authorization: Bearer bm_key_… to https://www.bugmojo.com/api/mcp, and store it as a secret in your CI or agent platform, never in a committed config file. A client that only runs local stdio servers can use the @bugmojo/mcp-server npm package instead, with the key in BUGMOJO_API_KEY; it covers the core bug tools only.
In Claude Code, that includes headless runs such as claude -p in CI. Put the header in .mcp.json and let Claude Code expand the key from the environment, so the file holds no secret:
{
"mcpServers": {
"bugmojo": {
"type": "http",
"url": "https://www.bugmojo.com/api/mcp",
"headers": {
"Authorization": "Bearer ${BUGMOJO_API_KEY}"
}
}
}
}Keep "type": "http" in the entry. Without it, Claude Code reads the entry as a local stdio server and never connects to the URL.
Troubleshooting
Most failures fall into six categories. Work through them in the order below before opening a support ticket. The fixes are small, often a single command.
1. bugmojo doesn't appear in /mcp
Restart Claude Code so it reloads its MCP config, then run /mcp again. If bugmojo is still missing, run claude mcp get bugmojo to inspect the entry, re-run the add command and check the transport is http.
2. The server connects but list_bugs returns an empty array
The workspace you approved has no bugs yet, or your role can't see them. Verify in BugMojo that you can see bugs in the web UI with the same account, or reconnect with ?workspace=<slug> to pin the right workspace.
3. Claude says it doesn't know about a tool
Call whoami to see your role and permissions, or reconnect with ?mode=all. A tool is hidden when your role lacks its permission, which is not the same as the tool being unavailable.
4. The connection is refused
An owner may have turned AI agents & MCP off for the workspace under Settings -> Security. While it's off, connected clients are refused.
5. Claude Code says bugmojo needs authentication
The sign-in expired or the connection was revoked under Settings -> Connections. Run /mcp, pick bugmojo and sign in again. With an API key, check that BUGMOJO_API_KEY is set in the shell that started Claude Code and that the key hasn't been revoked.
6. A project server is waiting for approval
A server from a committed .mcp.json stays unused until you approve it in an interactive session. Approve it when Claude Code asks, or run claude mcp reset-project-choices to be asked again.
Privacy and security
The data-safety story starts before BugMojo sees the data. The extension redacts personal data in the browser before a capture is uploaded, so everything Claude later reads over MCP is already scrubbed. Network capture records request metadata and never reads bodies.
Bug text is written by other people, so BugMojo also treats it as untrusted: tool results have instruction-like text aimed at the agent, such as "ignore previous instructions", replaced with a visible marker. A few habits on your side:
- Least privilege. Each person signs in with their own role. For a machine that only reads bugs, use a read-only key, which connects as a viewer.
- Keep secrets out of the repo. Reference the key as
${BUGMOJO_API_KEY}in.mcp.jsonand set the real value in the environment. - Review project servers. A committed
.mcp.jsonis config your teammates will run, which is why Claude Code asks before using it. Connect only servers you trust.
Next steps
You now have Claude Code reading and writing bugs through MCP. That's the foundation. Three places to go from here, in increasing order of payoff:
- Add the same MCP server to Cursor, or to VS Code and Windsurf. Same server, different config file.
- Build a custom Claude Code command that pre-fills a triage prompt. Something like
/triagethat lists critical bugs filed in the past 24 hours and proposes priorities. - Wire MCP into your CI/CD pipeline. When a deploy fails, fire a webhook that opens a BugMojo bug, and have Claude on-call read it via MCP and propose a hotfix.
The MCP standard is moving fast, and reference servers for dozens of tools already exist (MCP server reference implementations, Model Context Protocol, 2026). If you want a deeper dive on why purpose-built MCP servers beat generic REST integrations for bug tracking, read how the BugMojo MCP server works.
Sign up for BugMojo, install the browser extension, and capture your first bug. Five minutes later, ask Claude Code to summarize it. That's the whole demo.
See the agent workflowFrequently asked questions
Frequently asked questions
Sources
- Model Context Protocol specification, Anthropic (2024)
- Claude Code MCP documentation, Anthropic (2026)
- MCP server reference implementations, Model Context Protocol (2026)
Related articles
Common TypeScript Errors (and How to Fix Them)
The most common TypeScript compiler errors (TS2307, TS2339, TS2345, TS2322, TS7006, and 'possibly null') explained, with broken and fixed code for each.
Cursor vs Claude Code vs Copilot for Debugging
A neutral comparison of Cursor, Claude Code, and Copilot for debugging: context gathering, agent autonomy, and why MCP is the real equalizer.
How to Build an MCP Server: A Developer Tutorial
A hands-on tutorial for building an MCP server: init the SDK, define a tool with a typed schema, pick stdio or HTTP transport, and connect it to Claude Code.
Get bug-tracking insights, weekly.
Engineering deep-dives, QA playbooks, and honest tool comparisons. No spam. Unsubscribe anytime.