Bugsnag MCP connector
OAuth 2.1/DCR MonitoringDeveloper ToolsAIConnect to Bugsnag MCP. Monitor errors, releases, traces, and span groups across your projects from your AI workflows.
Bugsnag MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'bugsnagmcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Bugsnag MCP:', link)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'bugsnagmcp_bugsnag_get_current_project',toolInput: {},})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "bugsnagmcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Bugsnag MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="bugsnagmcp_bugsnag_get_current_project",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- Update bugsnag — Update the status of an error (e.g., ignore, snooze, open, or mark as fixed)
- Groupings bugsnag set network endpoint — Set network endpoint grouping rules for a project
- List bugsnag — Retrieve available trace attribute fields for filtering
- Get bugsnag — Retrieve all spans within a specific distributed trace
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
bugsnagmcp_bugsnag_get_build
#
Retrieve details for a specific build by its ID, including source control metadata. 2 params
Retrieve details for a specific build by its ID, including source control metadata.
buildId string required Unique identifier of the app build projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_current_project
#
Retrieve the default project set for the current session. Tools use this project when no projectId is specified. 0 params
Retrieve the default project set for the current session. Tools use this project when no projectId is specified.
bugsnagmcp_bugsnag_get_error
#
Retrieve full details on an error, including aggregated stats across all occurrences and the latest event's stacktrace, breadcrumbs, and metadata. 3 params
Retrieve full details on an error, including aggregated stats across all occurrences and the latest event's stacktrace, breadcrumbs, and metadata.
errorId string required Unique identifier of the error to retrieve filters object optional Apply filters to narrow down the error list. Use the List Project Event Filters tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h). projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_event
#
Retrieve detailed information about a specific error event by its ID. 2 params
Retrieve detailed information about a specific error event by its ID.
eventId string required Unique identifier of the event projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_event_details_from_dashboard_url
#
Retrieve event details using a Bugsnag dashboard URL. 1 param
Retrieve event details using a Bugsnag dashboard URL.
link string required Full URL to the event details page in the BugSnag dashboard (web interface), containing project slug and event_id parameter. bugsnagmcp_bugsnag_get_events_on_an_error
#
List events (occurrences) grouped under a specific error. 6 params
List events (occurrences) grouped under a specific error.
errorId string required Unique identifier of the error direction string optional Sort direction for ordering results filters object optional Apply filters to narrow down the event list. Use the List Project Event Filters tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h). nextUrl string optional URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. perPage number optional How many results to return per page. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_network_endpoint_groupings
#
Retrieve the network endpoint grouping rules configured for a project. 1 param
Retrieve the network endpoint grouping rules configured for a project.
projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_release
#
Retrieve details for a specific release by its ID, including source control info and associated builds. 2 params
Retrieve details for a specific release by its ID, including source control info and associated builds.
releaseId string required Unique identifier of the app release projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_span_group
#
Retrieve performance metrics for a specific span group. 3 params
Retrieve performance metrics for a specific span group.
spanGroupId string required ID of the span group filters object optional Apply filters to narrow down the span group list. Use the List Trace Fields tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h). projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_get_trace
#
Retrieve all spans within a specific distributed trace. 7 params
Retrieve all spans within a specific distributed trace.
from string required Start time (ISO 8601 format) to string required End time (ISO 8601 format) traceId string required Trace ID nextUrl string optional URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. perPage number optional How many results to return per page. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. targetSpanId string optional Optional target span ID to focus on bugsnagmcp_bugsnag_list_project_errors
#
List and search errors in a project with filters, sorting, and pagination. 6 params
List and search errors in a project with filters, sorting, and pagination.
direction string optional Sort direction for ordering results filters object optional Apply filters to narrow down the error list. Use the List Project Event Filters tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h). nextUrl string optional URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. perPage number optional How many results to return per page. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. sort string optional Field to sort the errors by bugsnagmcp_bugsnag_list_project_event_filters
#
Retrieve available event filter fields for a project. 1 param
Retrieve available event filter fields for a project.
projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_list_projects
#
List all projects in the organization the current user can access, or find a project by API key. 1 param
List all projects in the organization the current user can access, or find a project by API key.
apiKey string optional The API key of the BugSnag project, if known. bugsnagmcp_bugsnag_list_releases
#
List releases for a project with optional stage and visibility filters. 5 params
List releases for a project with optional stage and visibility filters.
nextUrl string optional URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. perPage number optional How many results to return per page. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. releaseStage string optional Filter releases by this stage (e.g. production, staging), defaults to 'production' visibleOnly boolean optional Whether to only include releases that are marked as visible in the dashboard bugsnagmcp_bugsnag_list_span_groups
#
List span groups (tracked operations) for performance monitoring in a project. 7 params
List span groups (tracked operations) for performance monitoring in a project.
direction string optional Sort direction for ordering results filters object optional Apply filters to narrow down the span group list. Use the List Trace Fields tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h). nextUrl string optional URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. perPage number optional How many results to return per page. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. sort string optional Field to sort by starredOnly boolean optional Show only starred span groups bugsnagmcp_bugsnag_list_spans
#
List individual spans belonging to a span group. 7 params
List individual spans belonging to a span group.
spanGroupId string required ID of the span group direction string optional Sort direction for ordering results filters object optional Apply filters to narrow down the span group list. Use the List Trace Fields tool to discover available filter fields. Time filters support extended ISO 8601 format (e.g. 2018-05-20T00:00:00Z) or relative format (e.g. 7d, 24h). nextUrl string optional URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. perPage number optional How many results to return per page. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. sort string optional Field to sort by bugsnagmcp_bugsnag_list_trace_fields
#
Retrieve available trace attribute fields for filtering. 1 param
Retrieve available trace attribute fields for filtering.
projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_set_network_endpoint_groupings
#
Set network endpoint grouping rules for a project. 2 params
Set network endpoint grouping rules for a project.
endpoints array required Array of URL patterns by which network spans are grouped. Endpoints follow OpenAPI path templating syntax (https://swagger.io/specification/#path-templating) where path parameters use curly braces (e.g., /users/{id}). If you encounter colon-prefixed parameters (e.g., :userId from Express/React Router), convert them to curly braces (e.g., {userId}). Wildcards (*) can be used in domains (e.g., https://*.example.com) to match multiple subdomains. projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. bugsnagmcp_bugsnag_update_error
#
Update the status of an error (e.g., ignore, snooze, open, or mark as fixed). 5 params
Update the status of an error (e.g., ignore, snooze, open, or mark as fixed).
errorId string required Unique identifier of the error operation string required The operation to apply to the error issue_url string optional The URL of the issue to link to the error - required when operation is 'link_issue' projectId string optional Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. reopenRules object optional Reopen rules for snooze operation - required when operation is 'snooze'