Skip to content

Automate

MCP server

Let Claude Code, Cursor and other AI agents manage your Showbug account.

The Model Context Protocol (MCP) lets an AI agent such as Claude Code or Cursor call tools. Showbug runs an MCP server, so an agent can manage your account with the same API token, permissions and audit log as the REST API.

What it does

  • Most operations a token can call are tools: listing and creating projects, adding origins, creating and revoking SDK keys, connecting Linear, GitHub, Slack and webhooks, reading sessions and failed deliveries, and so on. The list below has them all.
  • Tools act in the token’s organisation, so none of them takes an organisation id.
  • A tool call runs through the same checks as a REST call: the token’s scopes, its creator’s role and the rate limit. Changes are written to the audit log with via naming the token.
  • Only an API token works. A dashboard sign-in is not accepted.

There are two ways to connect. Both use the same token.

SettingRemote (HTTP)Local (stdio)
HowThe client sends requests to POST https://api.showbugai.com/mcp. Nothing to install.The client starts bunx @showbug/mcp, a small bridge that forwards to the same endpoint.
TokenThe header Authorization: Bearer sbp_...The environment variable SHOWBUG_TOKEN
Another environmentThe examples on this page use this environment’s address. For another, use its API address from Base URLs, followed by /mcp.Set SHOWBUG_API_URL to its API address. The examples on this page set this environment’s; without it the bridge uses production.
Use it whenYour client supports remote MCP servers and custom headers.Your client only starts local programs, or cannot send headers.

Treat the token like a password

An agent with a token can do what the token allows, as its creator. Create a token for the agent with only the scopes it needs, and a short expiry. See Safety.

Claude Code

Create a token under Settings → API tokens, then add the server. For the remote server:

claude mcp add --transport http showbug https://api.showbugai.com/mcp --header "Authorization: Bearer sbp_..."

Or run the local bridge:

claude mcp add showbug --env SHOWBUG_TOKEN=sbp_... --env SHOWBUG_API_URL=https://api.showbugai.com -- bunx @showbug/mcp

Run claude mcp list to see that it connects, or type /mcp inside Claude Code. Then ask something that needs the token, such as “Which Showbug organisation is my token for?”. Claude Code calls get_me.

  • By default the server is private to you and to the current project. Add --scope user to use it in all your projects.
  • --scope project writes the server into .mcp.json in your repository, which your team shares. Never put a token in that file. Refer to an environment variable instead, and let each person set SHOWBUG_TOKEN with a token of their own:
{
  "mcpServers": {
    "showbug": {
      "type": "http",
      "url": "https://api.showbugai.com/mcp",
      "headers": { "Authorization": "Bearer ${SHOWBUG_TOKEN}" }
    }
  }
}

Cursor

Add the server to .cursor/mcp.json in a project, or to ~/.cursor/mcp.json for every project. For the remote server:

{
  "mcpServers": {
    "showbug": {
      "url": "https://api.showbugai.com/mcp",
      "headers": { "Authorization": "Bearer ${env:SHOWBUG_TOKEN}" }
    }
  }
}

Or for the local bridge:

{
  "mcpServers": {
    "showbug": {
      "command": "bunx",
      "args": ["@showbug/mcp"],
      "env": {
        "SHOWBUG_TOKEN": "${env:SHOWBUG_TOKEN}",
        "SHOWBUG_API_URL": "https://api.showbugai.com"
      }
    }
  }
}

Cursor replaces ${env:SHOWBUG_TOKEN} with the variable from its own environment, so the token stays out of the file. Start Cursor from a terminal where SHOWBUG_TOKEN is set, or set it in your system environment. If you paste the token into the file instead, keep the file out of version control.

Other clients

Use the remote form when the client supports remote MCP servers over streamable HTTP with custom headers. The server is stateless and answers with JSON. Give the client these two things:

  • The address https://api.showbugai.com/mcp.
  • The header Authorization: Bearer sbp_....

Otherwise use the local bridge. Most clients that start local servers, including desktop apps, take a configuration like this:

{
  "mcpServers": {
    "showbug": {
      "command": "bunx",
      "args": ["@showbug/mcp"],
      "env": { "SHOWBUG_TOKEN": "sbp_...", "SHOWBUG_API_URL": "https://api.showbugai.com" }
    }
  }
}

bunx comes with Bun. Without Bun, npx -y @showbug/mcp runs the same bridge with Node.js 20 or later: use npx as the command and -y and @showbug/mcp as its arguments. If the client cannot find the command, give it the full path, which which bunx prints.

Tools

A tool is named after its API operation, in snake_case: listProjects is list_projects. Its arguments are the operation’s path, query and body fields, such as project_id and origin for add_allowed_origin. Creates also take an optional idempotencyKey, so a retry cannot make a duplicate. Your client shows each tool’s full schema.

Scope is what the token needs. Destructive tools delete or revoke something, or replace a secret.

Linear and GitHub are connected once for the organisation (connect_linear_api_key, connect_github_token), then create_integration sends a project’s reports through that connection to a Linear team or a GitHub repository. Pick the team or repository with list_connection_options.

Account

ToolWhat it doesScopeDestructive
get_meShow who the credential is.Any tokenNo

Organisation

ToolWhat it doesScopeDestructive
get_orgGet the organisation.org:readNo
rename_orgRename the organisation.org:writeNo

Members

ToolWhat it doesScopeDestructive
list_membersList members.members:readNo
change_member_roleChange a member's role.members:writeNo
remove_memberRemove a member.members:writeYes

Invites

ToolWhat it doesScopeDestructive
list_invitesList pending invites.members:readNo
create_inviteInvite someone to the organisation.members:writeNo
resend_inviteEmail an invite again.members:writeNo
revoke_inviteRevoke a pending invite.members:writeYes

Audit log

ToolWhat it doesScopeDestructive
list_audit_eventsList the audit log.audit:readNo

Projects

ToolWhat it doesScopeDestructive
list_projectsList projects.projects:readNo
create_projectCreate a project.projects:writeNo
get_projectGet a project with its keys.projects:readNo
update_projectUpdate a project.projects:writeNo

Allowed origins

ToolWhat it doesScopeDestructive
list_allowed_originsList a project's allowed origins.projects:readNo
add_allowed_originAllow a page's origin to use the project's keys.projects:writeNo
remove_allowed_originStop allowing a page's origin.projects:writeYes

SDK keys

ToolWhat it doesScopeDestructive
list_project_keysList a project's SDK keys.keys:readNo
create_project_keyCreate an SDK key.keys:writeNo
get_install_snippetGet the script tag that installs the widget.keys:readNo
revoke_project_keyRevoke an SDK key.keys:writeYes

Integrations

ToolWhat it doesScopeDestructive
list_integrationsList a project's integrations.integrations:readNo
create_integrationSend a project's reports to Linear or GitHub.integrations:writeNo
create_webhookCreate a webhook integration.integrations:writeNo
create_slack_integrationPost a project's reports to Slack.integrations:writeNo
update_integrationUpdate an integration.integrations:writeNo
remove_integrationRemove an integration.integrations:writeYes
test_integrationTest an integration.integrations:writeNo
send_test_issueSend a test issue.integrations:writeNo
rotate_webhook_secretRotate a webhook's signing secret.integrations:writeYes
list_connectionsList the organisation's connections.integrations:readNo
connect_linear_api_keyConnect Linear with an API key.integrations:writeNo
connect_github_tokenConnect GitHub with a personal access token.integrations:writeNo
list_connection_optionsList what a connection can target.integrations:readNo
test_connectionTest a connection.integrations:writeNo
disconnect_connectionDisconnect Linear or GitHub.integrations:writeYes

Deliveries

ToolWhat it doesScopeDestructive
list_deliveriesList the delivery log.integrations:readNo
retry_deliveryRetry a delivery.integrations:writeNo

Sessions

ToolWhat it doesScopeDestructive
list_sessionsList recorded sessions.sessions:readNo
get_session_triage_countsCount the sessions that need triage.sessions:readNo
bulk_update_sessionsTriage several sessions at once.sessions:writeNo
get_sessionGet a session.sessions:readNo
update_sessionTriage a session.sessions:writeNo
retry_session_ticketsRetry a session's failed ticket deliveries.integrations:writeNo

Saved views

ToolWhat it doesScopeDestructive
list_saved_viewsList saved views.sessions:readNo
create_saved_viewSave a view.sessions:writeNo
update_saved_viewChange a saved view.sessions:writeNo
delete_saved_viewDelete a saved view.sessions:writeYes

Comments

ToolWhat it doesScopeDestructive
list_session_commentsList a session's comments.comments:readNo
create_session_commentComment on a session.comments:writeNo
update_session_commentEdit a comment.comments:writeNo
delete_session_commentDelete a comment.comments:writeYes

Insights

ToolWhat it doesScopeDestructive
list_session_facetsCount sessions by environment.sessions:readNo
get_org_statsGet the organisation's trends.sessions:readNo

Notifications

ToolWhat it doesScopeDestructive
get_notification_preferencesGet your notification preferences.notifications:readNo
update_notification_preferencesChange your notification preferences.notifications:writeNo

Usage

ToolWhat it doesScopeDestructive
get_usageGet the plan and usage.usage:readNo

These operations are not tools:

  • Managing API tokens and creating organisations. They need a person signed in to the dashboard. See API tokens.
  • Connecting Linear or GitHub in a browser, which needs a person to approve. Use connect_linear_api_key or connect_github_token instead.
  • Deleting a session. Only an admin or owner signed in to the dashboard can, so no API token can, through MCP or REST.
  • Downloading a session’s page replay events and screen recording. They are too large for an agent. Use the REST API or the dashboard.

Each result is the API’s JSON answer, as text. A result over 100,000 characters is cut off, with a note to ask for less: pass limit, or page with cursor. A failed call returns an error result with the API’s error body, so the codes on the REST API page apply.

The tool list is filtered by the token: an agent is shown only the tools its scopes allow, so a read-only token never sees create_project. That is a courtesy, not the lock. The API checks the scope on every call, and one the token lacks is refused with insufficient_scope.

Safety

  • Destructive tools are labelled. Their description starts with “DESTRUCTIVE, cannot be undone: confirm with the user before calling”, and they carry the MCP destructiveHint annotation. Keep your client’s confirmation prompt on for them. Tools that only read carry readOnlyHint, so a client can run them without asking.
  • Give the agent the fewest scopes. A token with only read scopes cannot change anything, so use one to explore. Add write scopes only for a task that needs them.
  • Choose a short expiry. A few days is enough for most agent sessions. Revoke the token when you are done.
  • Treat session data as untrusted. A session holds what a visitor said and what their page showed. Text in a report could try to give an agent instructions. If an agent reads sessions, do not also give it a token that can change keys, members or integrations. Use a read-only token for reading sessions.
  • Secrets pass through the conversation. create_webhook, rotate_webhook_secret and create_invite return a secret once, and connect_linear_api_key and connect_github_token take a provider credential as an argument, and connect it for the whole organisation. Your client may keep what is said in a conversation. For these, the dashboard may be the better place.
  • Everything is recorded and limited. Changes an agent makes are in the audit log, marked with the token. The token is limited to 120 requests a minute, so an agent stuck in a loop cannot run away.

Example prompts

Prompts to try, and the scopes the token needs for each. You can name a project in plain words: the agent finds its id with list_projects.

PromptScopes
“List my Showbug projects and tell me which ones have no allowed origins.”projects:read
“Create a project called Acme staging that allows https://staging.acme.example, and give me its public key.”projects:write
“Add https://preview-42.acme.example to the allowed origins of the Marketing site project.”projects:write
“Show the failed deliveries for the Checkout project and retry the ones that failed with a 5xx error.”projects:read, integrations:write
“Summarise the five most recent sessions of the Marketing site project, and tell me which have no ticket.”projects:read, sessions:read
“What changed in this organisation this week, and which changes came from API tokens?”audit:read
“Connect our Linear workspace with this API key, then send the Checkout project’s reports to the Web team.”integrations:write
“Revoke the SDK key labelled old-prod on the Checkout project.”keys:write

The last prompt uses a destructive tool, so your client should ask you to confirm before it runs.