BugMojoBugMojoBugMojo
FeaturesPricingBlogHelpAbout
Add to ChromeLog inGet started
BugMojoBugMojo

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

A product of Softech Infra.

Product

  • Features
  • Pricing
  • Browser extension
  • Get started
  • Log in

Resources

  • Help & guides
  • Blog
  • Compare
  • Glossary

Company

  • About
  • Contact
  • Security
  • Privacy
  • Terms
  • Sitemap
© 2026 BugMojo. All rights reserved.
AllGuidesEngineeringPlaybooksCompareGlossaryAlternativesBy roleBug tracking by framework
  1. Home
  2. Blog
  3. Guides
  4. How to Integrate BugMojo with Cursor
Guides

How to Integrate BugMojo with Cursor

Point Cursor's AI agent at BugMojo's MCP server and it can pull a bug's full reproduction — the rrweb replay, console errors, and network failures — into the editor as context, so it fixes from evidence instead of a vague ticket.

BugMojo TeamBugMojo Team·May 22, 2026·9 min read
Guides
Line-art of a BugMojo node connected to a Cursor node by a lime flow carrying replay, console and network capture tokens
TL;DR
  • What it is: Cursor is an MCP client; BugMojo ships an MCP server, so Cursor's agent can read real bug reproductions as context.
  • What the agent gets: the rrweb replay, console errors, failed network requests, and bug metadata — not a bare ticket.
  • Setup: add one entry to .cursor/mcp.json, reference your API key via ${env:...}, restart, confirm the green dot.
  • Safety: PII is redacted client-side in the extension before capture ever leaves the browser.

What connecting BugMojo to Cursor actually does

Cursor is an MCP client, so pointing it at BugMojo's MCP server lets its AI agent pull a bug's real reproduction — replay timeline, console errors, and failed network requests — directly into the editor as context. You add one entry to .cursor/mcp.json, and the agent fixes bugs against evidence instead of guesswork.

The gap this closes is context. A normal bug ticket reaches your editor as a sentence: "checkout button does nothing on mobile." To act on it, you (or your AI agent) have to reconstruct what actually happened — which build, which console error, which failed request. BugMojo captures all of that at the moment of the bug via its browser extension (rrweb DOM session recording, console logs, network requests, and screenshots), and exposes it to AI coding agents over MCP. Connecting the two means Cursor's agent reads the evidence directly, rather than asking you to paste it in.

This is a read-into-context relationship, not a two-way ticketing sync. The value is that the model reasons over the true reproduction — the same signals a senior engineer would open the DevTools panel to find — before it proposes a change. That single shift, from description to evidence, is what makes the difference between a plausible-looking patch and one that addresses the failure you actually recorded.

How MCP makes this work

The Model Context Protocol (MCP) is an open standard, introduced by Anthropic in late 2024, for connecting AI applications to external tools and data through one common interface. Its architecture is a host–client–server model: the host is the AI application (here, Cursor), a client inside the host holds a one-to-one connection to each server, and a server exposes capabilities in three standardized primitives — tools (functions the agent can invoke), resources (data it can read), and prompts (reusable templates).

BugMojo runs as one of those servers. When Cursor launches it, the server advertises the tools it offers — the operations for fetching bugs and their captured context — and Cursor's agent can then call them on demand during a conversation. Local servers communicate over stdio (standard input/output between processes on your machine, with no network hop), which is why the typical config just tells Cursor a command to run. Remote servers use HTTP instead. Because both sides speak the same protocol, BugMojo does not need a bespoke Cursor plugin — any MCP-capable editor can consume the same server.

Before you start

You will need:

  • A BugMojo account with at least one captured bug to test against, and permission to create an API key.
  • Cursor installed, with MCP support (any recent 2026 build). MCP is configured under Settings → Tools & MCP.
  • Node.js available on your PATH if you run the server locally via npx.
  • About five minutes. The only fiddly part is deciding where to store your API key.

Step-by-step setup

Step 1 — Generate a BugMojo API key

In BugMojo, open Settings → API Keys → Create key and copy the token. Treat it like a password — it scopes the agent's access to your bugs. Rather than paste it into a config file, export it as an environment variable so it never lands in a file you might commit:

terminal
# add to your shell profile (~/.zshrc, ~/.bashrc, etc.)
export BUGMOJO_API_KEY="bm_key_your_token_here"

Step 2 — Add the BugMojo MCP server to Cursor

Cursor reads MCP servers from a JSON file. Put it at .cursor/mcp.json in your project root to scope the server to one repo, or at ~/.cursor/mcp.json to make it available in every project. If the same server name appears in both, the project file wins, per TrueFoundry's 2026 Cursor MCP guide. You can also add it through Settings → Tools & MCP → New MCP Server, which writes the same JSON for you.

For a local (stdio) server, give Cursor the command to launch and reference your key with the ${env:NAME} syntax — Cursor resolves it in the command, args, env, url, and headers fields:

.cursor/mcp.jsonjson
{
  "mcpServers": {
    "bugmojo": {
      "command": "npx",
      "args": ["-y", "@bugmojo/mcp-server"],
      "env": {
        "BUGMOJO_API_KEY": "${env:BUGMOJO_API_KEY}"
      }
    }
  }
}
This config is illustrative

The exact package name and any required arguments come from BugMojo's own integration docs — confirm them there before relying on this snippet. The structure (an mcpServers object keyed by a server name, with command / args / env) is the standard Cursor format and will not change.

If you connect to a remote BugMojo over HTTP instead, Cursor takes a url and an Authorization header rather than a command:

.cursor/mcp.json (remote variant)json
{
  "mcpServers": {
    "bugmojo": {
      "type": "streamable-http",
      "url": "https://mcp.bugmojo.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:BUGMOJO_API_KEY}"
      }
    }
  }
}

Step 3 — Confirm the server is live

Restart Cursor (or reload MCP servers), then open Settings → Tools & MCP. A green dot next to bugmojo means Cursor completed the connection handshake and discovered its tools. A red dot usually means a missing runtime, a bad token, or malformed JSON. Keep an eye on Cursor's ceiling of roughly 40 active tools across all your servers combined — go over it and the agent can silently lose access to some tools.

Tip

A green dot confirms the connection, not usage. New servers sometimes land with their tools disabled — flip them on in the same panel, and reference the tool by name in your first prompt ("use the BugMojo tools to…") so the agent reaches for it.

Step 4 — Ask the agent to pull a bug

Open the agent chat and point it at a real bug — for example: "Fetch BugMojo bug #482, summarize the reproduction from the replay and console, and tell me the likely cause." The agent invokes the BugMojo tool, reads the returned context, and grounds its answer in what was actually recorded. From there you can follow up: "propose a fix and the test that would catch it."

How the agent uses the bug context

Once the reproduction is in context, the agent works the way a careful engineer does. The rrweb replay shows the exact interaction path that triggered the failure. The console log surfaces the thrown error and stack. The network capture reveals whether a request 500'd, timed out, or returned an unexpected shape. With those three signals, the model can point at a specific line rather than pattern-matching against the ticket text. The comparison below shows what changes.

FeaturePlain ticket in CursorBugMojo context via MCP
What the agent seesOne-line descriptionReplay, console, network, metadata
Reproduction stepsYou retype them from memoryPulled from the recorded session
Console errors & stack—✓
Failed network requests—✓
Switching to a browser to investigate✓—
PII in the shared contextHandled manuallyRedacted client-side first
Working a bug in Cursor: plain ticket vs. BugMojo context over MCP.

Troubleshooting common setup errors

Red dot / server won't start

Almost always a missing runtime, a bad key, or invalid JSON. Confirm Node is on your PATH (node -v), that BUGMOJO_API_KEY is actually exported in the shell that launched Cursor, and that your .cursor/mcp.json parses (a stray trailing comma is the classic culprit). Fully restart Cursor after editing the file.

Green dot, but the agent ignores the tools

The handshake succeeded but the tools may be toggled off, or you have crossed Cursor's ~40-tool limit and BugMojo's tools got dropped. Enable them in Settings → Tools & MCP, disable servers you are not using this session, and name the BugMojo tool explicitly in your prompt.

The agent asks for approval every time

By default Cursor prompts before running a tool. Even YOLO mode (Settings → Features → Agent) historically still asked for MCP tools specifically. Cursor's newer Auto-review run mode routes tool calls through an allowlist and sandbox for fewer prompts while keeping guardrails, as documented for the 2026 releases. Choose the tier you are comfortable with rather than blanket-approving everything.

Security and PII

Redaction happens before capture leaves the browser

BugMojo runs PII redaction client-side, inside the browser extension, so sensitive field values are masked before the recording is ever uploaded. The replay, console, and network context that the MCP server later hands to Cursor is already scrubbed — the agent reasons over masked evidence, and full captures stay behind your BugMojo authentication.

Two more habits keep the setup safe. First, keep your API key in an environment variable and reference it with ${env:...} — never commit a real token to .cursor/mcp.json, especially the project-scoped one that lives in your repo. Second, prefer a project-level config for a work codebase so the server is only active where you intend, and scope the key to the least access the agent needs. For compliance-sensitive teams, connecting over the remote HTTP transport keeps capture data inside your own boundary.

Real-world use cases

  • Reproduce-then-fix. Ask the agent to read the replay and console for a bug, state the reproduction in its own words, and only then propose a patch — so the fix targets the recorded failure, not a guess.
  • Triage during a feature branch. "Which open bugs touch the checkout module?" — the agent pulls the relevant captures and summarizes them without you leaving the editor.
  • Write the regression test. Because the exact interaction and failed request are in context, the agent can draft a test that reproduces the bug before you accept the fix.
  • Explain a flaky report. Feed a hard-to-repro ticket's network capture to the agent to spot the intermittent timeout or race that a static description would hide.

When this isn't the right fit

Be honest about the boundaries. This is a read integration: it brings bug context into Cursor, but it is not a project-management sync — it will not run your sprint board or push status changes across tools by itself. If your editor does not support MCP, none of this applies; MCP is the requirement, not Cursor specifically. Teams with a strict cap on active MCP tools may need to disable other servers to stay under Cursor's ~40-tool limit. And an AI agent still proposes changes on evidence you should review — the integration makes the evidence trustworthy, but it does not remove the human sign-off. For a purely manual workflow where an engineer already has the DevTools open on the failing page, the extra wiring buys little.

Give your Cursor agent real bug evidence

Capture a bug once in BugMojo and let Cursor read the replay, console, and network context over MCP.

Try BugMojo free

Next steps

  • Connect Claude Code via MCP — the same server, a different AI coding agent.
  • Explore other integrations — Slack, Linear, GitHub Issues, Jira, and more.
  • Read the MCP architecture overview — understand tools, resources, and prompts in depth.

Frequently asked questions

Frequently asked questions

Sources

  1. Model Context Protocol — Architecture overview — Model Context Protocol (2026)
  2. Introducing the Model Context Protocol — Anthropic (2024)
  3. Model Context Protocol (MCP) — Cursor Docs — Cursor (2026)
  4. MCP Servers in Cursor: Setup, Configuration, and Security — TrueFoundry (2026)
  5. Cursor auto-review vs YOLO — picking the middle safety tier — Out of Context (2026)
  6. BugMojo — BugMojo (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 connecting BugMojo to Cursor actually does
  • How MCP makes this work
  • Before you start
  • Step-by-step setup
  • Step 1 — Generate a BugMojo API key
  • Step 2 — Add the BugMojo MCP server to Cursor
  • Step 3 — Confirm the server is live
  • Step 4 — Ask the agent to pull a bug
  • How the agent uses the bug context
  • Troubleshooting common setup errors
  • Security and PII
  • Real-world use cases
  • When this isn't the right fit
  • Next steps

Get bug-tracking insights, weekly.

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