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.
What connecting BugMojo to Cursor actually does
Cursor is an MCP client, so pointing it at BugMojo's hosted 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, sign in once in the browser, 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.
The agent can also write back: it can comment on a bug or move its status, within your role. But the main 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 one of those servers, hosted at https://www.bugmojo.com/api/mcp. Cursor connects to it over HTTP, the server advertises the tools your role can use, and Cursor's agent calls them on demand during a conversation. The first time, the server asks Cursor to sign you in: Cursor opens the BugMojo login in your browser, you approve the one workspace the agent may use, and Cursor keeps the token. There is nothing to install or run on your machine. Because both sides speak the same protocol, the same server also works in Claude Code and other MCP clients that support remote servers.
Before you start
You will need:
- A BugMojo account you can sign in to in a browser, with at least one captured bug to test against.
- Cursor installed, version 3.13.0 or later.
- About five minutes. There is no API key to create and nothing to install locally.
Step-by-step setup
Step 1: Add the BugMojo MCP server
The quickest way is the one-click link in Install BugMojo in Cursor, which opens Cursor and adds the hosted server. To do it by hand, create .cursor/mcp.json in your project root to scope the server to one repo, or ~/.cursor/mcp.json to make it available in every project (Cursor docs), and add one entry:
{
"mcpServers": {
"bugmojo": {
"url": "https://www.bugmojo.com/api/mcp?mode=qa"
}
}
}Step 2: Restart and sign in
Fully quit and reopen Cursor so it reads the new file. Then open Customize in Cursor's sidebar and find bugmojo. When it asks you to sign in, complete the BugMojo login in the browser. On the consent screen you choose the one workspace the agent may use and what it may do, then approve.
Step 3: Confirm the connection
Check that bugmojo is enabled and connected under Customize. Then ask the agent to call whoami: it answers with your role, your permissions and the workspace the connection uses. If the server doesn't connect, open the Output panel and choose MCP Logs to see why.
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 WEB-482, summarize the reproduction from the replay and console, and tell me the likely cause." The agent calls the BugMojo tools (get_bug, get_bug_console_logs, get_bug_network_logs and summarize_replay), 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." get_repro_pack gives it a Playwright spec built from the recorded session to start from.
What tools Cursor gets
The default surface covers what a coding agent needs: list_bugs and get_bug to find and open bugs; get_bug_console_logs, get_bug_network_logs and summarize_replay for the evidence; get_repro_pack for a runnable Playwright spec; create_bug, update_bug and add_comment to write back; and list_agent_inbox and claim_task for queued agent work. Cursor sees only the tools your role allows. The MCP tool reference lists every one.
How the agent uses the bug context
Once the reproduction is in context, the agent works the way a careful engineer does. The replay summary shows the 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 status. 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.
| Feature | Plain ticket in Cursor | BugMojo context via MCP |
|---|---|---|
| What the agent sees | One-line description | Replay, console, network, metadata |
| Reproduction steps | You retype them from memory | Pulled from the recorded session |
| Console errors & stack | No | ✓ |
| Failed network requests | No | ✓ |
| Switching to a browser to investigate | ✓ | No |
| PII in the shared context | Handled manually | Redacted client-side first |
No browser? Use an API key
Browser sign-in is the default. A setup that can't complete it can use a BugMojo API key instead. Create one under Settings -> API Keys (it starts with bm_key_ and is shown once), export it as an environment variable, and reference it with Cursor's ${env:NAME} syntax, which Cursor resolves in the url and headers fields (Cursor docs):
{
"mcpServers": {
"bugmojo": {
"url": "https://www.bugmojo.com/api/mcp",
"headers": {
"Authorization": "Bearer ${env:BUGMOJO_API_KEY}"
}
}
}
}Troubleshooting common setup errors
Security and PII
A few more habits keep the setup safe. Let each person sign in with their own account, so the agent works within that person's role and the one workspace they approved; you can revoke a connection under Settings -> Connections. If a machine needs an API key, keep it in an environment variable and reference it with ${env:...}, and never commit a real key to .cursor/mcp.json, especially the project file that lives in your repo. Bug text is written by other people, so BugMojo also replaces instruction-like text aimed at the agent with a visible marker in tool results. Still review what the agent proposes before you accept it.
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 mention the checkout page?" The agent searches the bugs and summarizes them without you leaving the editor.
- Write the regression test.
get_repro_packturns the recorded session into a Playwright spec, so the agent can start from 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. The integration brings bug context into Cursor and lets the agent comment on a bug or move its status, but it is not your sprint board. If your editor does not support MCP, none of this applies; MCP is the requirement, not Cursor specifically. 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. And for a purely manual workflow where an engineer already has DevTools open on the failing page, the extra wiring buys little.
Capture a bug once in BugMojo and let Cursor read the replay, console, and network context over MCP.
See what BugMojo capturesNext steps
- Install BugMojo in Cursor: the one-click link, the plugin and its test-file rule.
- 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
- Model Context Protocol: Architecture overview, Model Context Protocol (2026)
- Introducing the Model Context Protocol, Anthropic (2024)
- Model Context Protocol (MCP): Cursor Docs, Cursor (2026)
- BugMojo, BugMojo (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.