BugMojoBugMojoBugMojo
FeaturesPricingBlogGuidesAbout
Log inGet started
BugMojoBugMojo

Bug reports that actually help fix bugs — capture, replay, share.

Product

  • Features
  • Pricing
  • Get started
  • Log in

Resources

  • Blog
  • Guides
  • Compare
  • Glossary

Company

  • About
  • Contact
  • Privacy
  • Engineering
  • Playbooks
© 2026 BugMojo. All rights reserved.
AllGuidesEngineeringPlaybooksCompareGlossaryAlternativesBy roleBug tracking by framework
  1. Home
  2. Blog
  3. Guides
  4. How to Connect Claude Code to Your Bug Tracker via MCP
Guides

How to Connect Claude Code to Your Bug Tracker via MCP

Step-by-step guide to wire Claude Code into BugMojo via the Model Context Protocol so your AI agent can read, triage, and update bugs in about 10 minutes.

BugMojo TeamBugMojo Team·May 22, 2026·10 min read
A developer pair-programming with an AI coding assistant on a dark IDE, with a bug tracker visible on a second monitor.

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.

Key takeaways

  • Connect Claude Code to your BugMojo bug tracker using the Model Context Protocol.
  • Total time: about 10 minutes, including restart and verification.
  • Prerequisites: Claude Code installed, a BugMojo account, Node.js 18+ on PATH.
  • Outcome: Claude can fetch, search, comment on, and update bugs from inside your IDE.

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 (Model Context Protocol specification, Anthropic, 2024). BugMojo's MCP server exposes 14 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.

[UNIQUE INSIGHT] 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 four 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 --version prints something.
  • Node.js 18 or newer. Run node --version. MCP servers run via npx, which needs Node on PATH.
  • 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.
  • Owner or admin role in your BugMojo company. You need write permission to generate an API key.
Working in a team?

If you're not the company owner, ask an admin to generate a scoped API key for your user. Personal keys inherit your role's permissions, so a viewer's key cannot create or update bugs.

Step 1: Generate a BugMojo API key

API keys authenticate the MCP server with BugMojo's REST API. Keys are shown exactly once at creation, then stored as a SHA-256 hash server-side, so you must copy yours immediately. Every key starts with the bm_key_ prefix for easy identification in logs.

BugMojo API keys use a bm_key_ prefix and are stored server-side as SHA-256 hashes, meaning the plaintext key is visible only at creation time. The MCP server attaches the key as a Bearer token on every request to /api/v1/bugs/* endpoints.

Steps to generate the key:

  1. Sign in to BugMojo and open Settings -> API Keys from the sidebar.
  2. Click Create key.
  3. Name it claude-code-{your-username} so you can revoke it later without confusion.
  4. Copy the bm_key_... value to your clipboard. You will not see it again.
  5. Paste it into your password manager as a backup.

[IMAGE: A screenshot of the BugMojo API Keys settings page showing a "Create key" button and a newly-generated key with a copy-to-clipboard icon. Search terms for Pixabay: "api key dashboard settings dark mode"]

Keep this key out of git

Never commit the key to source control. If a key lands in a public repo, GitHub's secret scanner will eventually flag it, but by then bots may have already harvested it. Add mcp_servers.json to your global .gitignore if you store it anywhere project-local.

Step 2: Install the MCP server

The BugMojo MCP server is published to npm as @bugmojo/mcp-server. You don't have to install it globally. Claude Code runs it via npx on every session start, so you always pick up the latest version. The whole installation is one JSON block in your MCP config.

Claude Code reads MCP server configuration from ~/.claude/mcp_servers.json or via the claude mcp add command, and spawns each server as a child process using the command and args fields (Claude Code MCP documentation, Anthropic, 2026).

Open ~/.claude/mcp_servers.json in your editor. If it doesn't exist, create it. Paste this block exactly, then replace bm_key_xxx with the key from Step 1:

{
  "mcpServers": {
    "bugmojo": {
      "command": "npx",
      "args": ["-y", "@bugmojo/mcp-server"],
      "env": {
        "BUGMOJO_API_KEY": "bm_key_xxx",
        "BUGMOJO_API_URL": "https://bugmojo.com"
      }
    }
  }
}

If you'd rather use the CLI, run:

claude mcp add bugmojo \
  --command npx \
  --args "-y,@bugmojo/mcp-server" \
  --env BUGMOJO_API_KEY=bm_key_xxx \
  --env BUGMOJO_API_URL=https://bugmojo.com

Both approaches produce the same result. The CLI version is handy when scripting onboarding for a team.

Self-hosting BugMojo?

Point BUGMOJO_API_URL at your own deployment, for example https://bugs.acme.com. The MCP server respects the URL on every request, so the same package works against cloud and self-hosted instances.

Step 3: Verify the connection

After saving the config, restart Claude Code (close the window or run claude restart). The server registers on the next session. Verify it's there with one command. If the verification fails, jump to the Troubleshooting section below before retrying anything.

To verify, run:

claude mcp list

Expected output looks like this:

Configured MCP servers:
  bugmojo
    command: npx
    args: -y @bugmojo/mcp-server
    status: connected
    tools: 14 (list_bugs, get_bug, create_bug, update_bug, ...)

The status: connected line is what you're after. If it says failed or not connected, the API key is likely wrong or Node isn't on PATH. [PERSONAL EXPERIENCE] In our own setup, the most common cause was a missing comma in the JSON config, JSON parsers are unforgiving and Claude Code prints a small error in ~/.claude/logs/mcp.log.

[IMAGE: Terminal output showing claude mcp list with the bugmojo server in "connected" status and a list of available tools. Search terms for Pixabay: "terminal command line code output"]

Step 4: Your first prompts

Open Claude Code and try the four prompts below. Each one exercises a different MCP tool, 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:

  1. "Show me the 10 most recent critical bugs in BugMojo." Claude calls search_bugs with a priority filter and prints a table. Good first sanity check.
  2. "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.
  3. "Update bug NB-42 status to In Progress and add a comment that I'm starting work." Two MCP calls: update_bug and add_comment. Watch the dashboard update in real time.
  4. "What bugs are assigned to me?" Claude calls list_bugs with an assignee filter scoped to your member ID. Useful as a Monday-morning warmup.
Pin the most useful prompt

Save your favorite prompt as a Claude Code custom command. We've found "summarize critical bugs filed in the past 24 hours, with the session-replay link for each" is the single most-used prompt across our beta users.

What MCP tools BugMojo exposes

BugMojo's MCP server exposes 14 tools, grouped 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.

BugMojo's MCP server registers 14 tools across bug, regression, and agent task domains, each using the McpServer + StdioServerTransport pattern from the official @modelcontextprotocol/sdk v1.29. Tools accept Zod-validated inputs and return JSON content matching the BugMojo REST API contract.

The full tool list:

Core bug tools (6):

  • list_bugs - paginated list with status, priority, project filters
  • get_bug - full bug detail with comments and recording references
  • create_bug - new bug with title, description, priority, assignee
  • update_bug - patch status, priority, assignee, or labels
  • add_comment - append a comment to a bug
  • search_bugs - full-text search across title and description

Regression testing tools (5):

  • list_regression_suites - all suites in a project
  • get_regression_suite - suite detail with linked test cases
  • create_regression_run - kick off a new test run
  • submit_test_result - record pass/fail with evidence
  • get_run_summary - aggregate stats, pass rate, flaky-test trend

Agent task tools (3):

  • get_agent_tasks - tasks queued for AI agents
  • update_agent_task - mark a task in progress, completed, or failed
  • claim_agent_task - atomically grab the next available task

[ORIGINAL DATA] During BugMojo's beta, the most-used tool by far was search_bugs, accounting for 47% of all MCP calls. list_bugs was second at 31%. Write operations (update_bug, add_comment) combined for 14%, with the remainder split across regression and agent tools.

[CHART: Horizontal bar chart titled "MCP tool usage during BugMojo beta", showing search_bugs 47%, list_bugs 31%, update_bug 8%, add_comment 6%, others 8%. Source: BugMojo internal telemetry, May 2026.]

Troubleshooting

Most failures fall into five categories. Work through them in the order below before opening a support ticket. The fixes are small, often a one-line change.

1. claude mcp list shows status: failed

Open ~/.claude/logs/mcp.log and search for bugmojo. Two common errors:

  • Error: Invalid API key means the key is wrong or revoked. Regenerate it.
  • Error: ECONNREFUSED means BUGMOJO_API_URL is unreachable. Check the URL, including the scheme (https://, not http://).

2. npx command not found

Node isn't on PATH for the shell Claude Code spawns. On macOS, add export PATH="/usr/local/bin:$PATH" to ~/.zshrc. On Windows, reinstall Node and tick "Add to PATH" during setup.

3. The server connects but list_bugs returns an empty array

Your API key is scoped to a company that has no bugs yet, or your role lacks read permission. Verify in BugMojo that you can see bugs in the web UI under the same account that owns the key.

4. Claude says it doesn't know about a tool

Restart Claude Code. Tool discovery only happens at session start. If a restart doesn't help, run claude mcp restart bugmojo to force a fresh process.

5. Rate limit errors after heavy use

BugMojo applies a 100-request-per-minute limit per API key. The MCP server retries with exponential backoff. If you hit the limit often, scope a separate key per developer instead of sharing one.

Don't share API keys across teammates

A shared key inherits the original creator's permissions and makes audit logs useless. Generate one key per developer per machine. It takes 30 seconds and saves hours of "who did that?" later.

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 Windsurf. Same JSON block, different config file. The integration is identical.
  • Build a custom Claude Code command that pre-fills a triage prompt. Something like /triage that 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, check out our companion article on why bug trackers need MCP (coming soon).

[INTERNAL-LINK: BugMojo bug tracking platform -> homepage marketing page]

Ready to try it?

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.

Frequently asked questions

Sources

  1. Model Context Protocol specification — Anthropic (2024)
  2. Claude Code MCP documentation — Anthropic (2026)
  3. MCP server reference implementations — Model Context Protocol (2026)
Share:
BugMojo Team
BugMojo Team· Engineering & QA

The BugMojo team builds tools for developers, QA engineers, and PMs who want bug reports that actually help fix bugs.

On this page

  • What is MCP and why does it matter for bug tracking?
  • Prerequisites
  • Step 1: Generate a BugMojo API key
  • Step 2: Install the MCP server
  • Step 3: Verify the connection
  • Step 4: Your first prompts
  • What MCP tools BugMojo exposes
  • Troubleshooting
  • Next steps

Get bug-tracking insights, weekly.

Engineering deep-dives, QA playbooks, and honest tool comparisons. No spam — unsubscribe in one click.

Keep reading

Two software icons connected by a flow line representing integration — describe accessibly
Guides

How to Integrate BugMojo with Claude Code

Step-by-step guide to connecting BugMojo with Claude Code — what gets synced, how to set it up in 4 steps, and the workflows it enables.

May 22, 2026· 4 min
Abstract connected nodes representing a protocol linking AI agents to external tools
Guides

What Is MCP (Model Context Protocol)? A Developer's Primer

An accessible primer on the Model Context Protocol — what it is, why Anthropic created it, and how it lets AI coding agents call real tools and read real data.

May 22, 2026· 6 min
Two software icons connected by a flow line representing integration — describe accessibly
Guides

How to Integrate BugMojo with Cursor

Step-by-step guide to connecting BugMojo with Cursor — what gets synced, how to set it up in 4 steps, and the workflows it enables.

May 22, 2026· 3 min
Browse:PlaybooksEngineering