AI agents
Bugzor MCP server
Bugzor has a built-in Model Context Protocol (MCP) server. Point an AI coding agent at it and the agent can look up an error, read its stack trace and breadcrumbs, open the trace behind it, search your logs, check a cron job, and resolve or assign the issue, without you copy-pasting from the dashboard.
It works for one workspace: the one the API token belongs to.
- Endpoint:
https://www.bugzor.com/mcp - Transport: Streamable HTTP (JSON-RPC over
POST) - Auth:
Authorization: Bearer bgz_…(a workspace API token)
Create a token#
Owners and admins create tokens under Settings → API tokens. For an agent that only looks things up, pick the read scopes:
issues:read projects:read org:read traces:read logs:read crons:readTo let it triage as well, add issues:write (resolve, ignore, reopen, assign) and crons:write (mute monitors).
A token can’t be edited later, so create a new one if you need more scopes. Each tool lists the scopes it needs, and
a tool the token can’t use returns an error that names the missing scope. Treat the token like a password: keep it
in an environment variable or your secret store, never in a repository.
Connect your agent#
Claude Code#
export BUGZOR_TOKEN=bgz_…
claude mcp add --transport http bugzor https://www.bugzor.com/mcp \
--header "Authorization: Bearer $BUGZOR_TOKEN"Cursor#
Add to .cursor/mcp.json (or ~/.cursor/mcp.json), with BUGZOR_TOKEN set in your environment:
{
"mcpServers": {
"bugzor": {
"url": "https://www.bugzor.com/mcp",
"headers": { "Authorization": "Bearer ${env:BUGZOR_TOKEN}" }
}
}
}VS Code#
Add to .vscode/mcp.json. VS Code asks for the token once and keeps it out of the file:
{
"inputs": [
{ "type": "promptString", "id": "bugzor-token", "description": "Bugzor API token", "password": true }
],
"servers": {
"bugzor": {
"type": "http",
"url": "https://www.bugzor.com/mcp",
"headers": { "Authorization": "Bearer ${input:bugzor-token}" }
}
}
}Any other client#
Use the endpoint above with a remote (HTTP) MCP server and an Authorization header. The server is stateless: no
sessions, no server-sent events. Ask the agent to call whoami first: it shows the workspace, the token’s scopes,
and which tools that token can use.
What to ask#
- “What are the three noisiest unresolved errors in production this week?”
- “Look at issue 1234. What’s the stack trace, what did the user do before it, and what release introduced it?”
- “Open the trace for that error. Which span is slow?”
- “Find the slowest
POST /checkoutrequest today and show me where the time went.” - “Search the logs for
payment gateway timeoutaround that trace.” - “Did the nightly-report job run last night?”
- “Resolve everything from the 1.4.2 release that’s already fixed and assign the rest to Sam.”
Tools#
Lists are paged: pass a result’s next_cursor back as cursor. Results are size-limited and say when they were
truncated.
Workspace#
| Tool | What it does | Scope |
|---|---|---|
whoami | Workspace, token name and scopes, available tools, who writes act as | any |
list_projects | Projects with id, slug, platform | projects:read |
get_project | One project with its public DSN and 24-hour numbers | projects:read |
list_members | Members with role | org:read |
get_activity | New issues and regressions in a window | issues:read |
get_stats | Per-project events, new issues and users in a window | issues:read, projects:read |
get_usage | Billing-period usage and the trace/log storage cap | org:read |
Issues and events#
| Tool | What it does | Scope |
|---|---|---|
list_issues | Issues by status, project, environment, level, assignee, text, time | issues:read |
search_issues | Issues whose title or culprit contains text | issues:read |
get_issue | Counts, first/last seen, assignee, regressed time, latest event summary | issues:read |
get_issue_events | An issue’s events, compact, newest first | issues:read |
get_event | A full event: stack frames with source, breadcrumbs, tags, request, user, trace ids | issues:read |
get_latest_event | The same, for the newest event | issues:read |
list_releases | Releases with crash-free sessions and error counts | issues:read |
get_release | A release’s issues, marking the ones it introduced | issues:read |
Traces and logs#
| Tool | What it does | Scope |
|---|---|---|
get_trace | A trace as a span tree with durations, self time, hotspots and linked errors | traces:read |
get_issue_trace | The trace behind an issue’s event | traces:read, issues:read |
list_transactions | Transactions by name with count, p50, p95 and failure rate | traces:read |
list_traces | Individual transactions, newest or slowest first, with trace ids | traces:read |
get_span | One span with all its attributes | traces:read |
list_profiles | Recent profiles (per request, or continuous chunks) with ids, platform, release and a link; where your plan has the Profiler | traces:read |
get_profile | One profile: metadata, threads, and the hottest functions by own and total time | traces:read |
profile_hot_functions | The hottest functions of a project, release, environment or transaction over up to 30 days, with shares | traces:read |
get_flamegraph | Collapsed stacks (root first, heaviest first), for a window or one profile | traces:read |
profile_diff | Two releases, or this window against the one before: functions that got hotter or cooler; no claim without enough samples | traces:read |
trace_profile | The profile behind one trace id, or a plain “no profile” | traces:read |
search_logs | Logs by text, level, project, trace and time | logs:read |
get_trace_logs | Every log line of one trace | logs:read |
Cron monitors#
| Tool | What it does | Scope |
|---|---|---|
list_monitors | Monitors with schedule, last status and recent runs | crons:read |
get_monitor | One monitor: next expected run, missed-run outage, run history | crons:read |
mute_monitor | Stop notifications for a monitor | crons:write |
unmute_monitor | Turn them back on | crons:write |
Changing issues#
| Tool | What it does | Scope |
|---|---|---|
resolve_issue | Mark resolved (it reopens as a regression if it happens again) | issues:write |
ignore_issue | Mark ignored | issues:write |
reopen_issue | Mark unresolved | issues:write |
assign_issue | Assign to a member by email | issues:write |
unassign_issue | Remove the assignee | issues:write |
bulk_update_issues | Set a status and/or assignee on up to 100 issues, reporting each result | issues:write |
Who changes things#
Changes are made as the member who created the token, with that member’s role. They go through the same checks as the dashboard (a lapsed subscription is read-only) and appear in the workspace audit log, marked as made through the token.
Integrations that act for many people, such as a chat bot, can use a token with the owner-only act:member scope and
send Bugzor-Act-As: person@example.com. The change is then made, and audited, as that member. A token without
act:member that sends the header is refused.
Limits and what’s left out#
- Rate limit: about 120 requests per minute per token, in bursts. Over the limit you get HTTP 429 and a
Retry-Afterheader. - Size: a result is capped at about 120 KB. Stack traces keep the frames nearest the crash, breadcrumbs keep the
most recent ones, and the result says what it left out. Use the
max_frames,max_spansandlimitarguments to ask for more or less. - Secrets: Bugzor removes values stored under keys such as
password,token,authorization,cookieandapi_key, and Bugzor tokens, from events, spans and logs before sending them to the agent. Free text such as an exception message is sent as your app reported it, so keep credentials out of messages. The public DSN key is shown; secret keys never are. - Your data stays in your workspace: a token only ever sees the workspace it belongs to.
- Retention: traces and logs are available for as long as your plan keeps them.
- Not included: Bugzor stores the raised exception of an event, not its chain of causes. “Ignore until” and issue comments aren’t available yet.
Troubleshooting#
- 401 Unauthorized: the token is missing, mistyped or revoked. It must start with
bgz_. - “This token is missing the scope …”: create a token with that scope; scopes can’t be added to an existing one.
- A trace or log tool says storage isn’t configured: traces and logs need the Rich Trace Logs storage of your plan.
- 429: wait for
Retry-Afterseconds, and ask the agent to make fewer, larger requests.
Something unclear or out of date? Tell us.