Bugsnag MCP connector
OAuth 2.1/DCRMonitoringDeveloper 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.
buildIdstringrequiredUnique identifier of the app buildprojectIdstringoptionalUnique 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.
errorIdstringrequiredUnique identifier of the error to retrievefiltersobjectoptionalApply 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).projectIdstringoptionalUnique 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.
eventIdstringrequiredUnique identifier of the eventprojectIdstringoptionalUnique 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.
linkstringrequiredFull 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.
errorIdstringrequiredUnique identifier of the errordirectionstringoptionalSort direction for ordering resultsfiltersobjectoptionalApply 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).nextUrlstringoptionalURL 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.perPagenumberoptionalHow many results to return per page.projectIdstringoptionalUnique 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.
projectIdstringoptionalUnique 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.
releaseIdstringrequiredUnique identifier of the app releaseprojectIdstringoptionalUnique 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.
spanGroupIdstringrequiredID of the span groupfiltersobjectoptionalApply 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).projectIdstringoptionalUnique 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.
fromstringrequiredStart time (ISO 8601 format)tostringrequiredEnd time (ISO 8601 format)traceIdstringrequiredTrace IDnextUrlstringoptionalURL 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.perPagenumberoptionalHow many results to return per page.projectIdstringoptionalUnique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.targetSpanIdstringoptionalOptional target span ID to focus onbugsnagmcp_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.
directionstringoptionalSort direction for ordering resultsfiltersobjectoptionalApply 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).nextUrlstringoptionalURL 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.perPagenumberoptionalHow many results to return per page.projectIdstringoptionalUnique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.sortstringoptionalField to sort the errors bybugsnagmcp_bugsnag_list_project_event_filters#Retrieve available event filter fields for a project.1 param
Retrieve available event filter fields for a project.
projectIdstringoptionalUnique 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.
apiKeystringoptionalThe 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.
nextUrlstringoptionalURL 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.perPagenumberoptionalHow many results to return per page.projectIdstringoptionalUnique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.releaseStagestringoptionalFilter releases by this stage (e.g. production, staging), defaults to 'production'visibleOnlybooleanoptionalWhether to only include releases that are marked as visible in the dashboardbugsnagmcp_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.
directionstringoptionalSort direction for ordering resultsfiltersobjectoptionalApply 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).nextUrlstringoptionalURL 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.perPagenumberoptionalHow many results to return per page.projectIdstringoptionalUnique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.sortstringoptionalField to sort bystarredOnlybooleanoptionalShow only starred span groupsbugsnagmcp_bugsnag_list_spans#List individual spans belonging to a span group.7 params
List individual spans belonging to a span group.
spanGroupIdstringrequiredID of the span groupdirectionstringoptionalSort direction for ordering resultsfiltersobjectoptionalApply 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).nextUrlstringoptionalURL 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.perPagenumberoptionalHow many results to return per page.projectIdstringoptionalUnique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.sortstringoptionalField to sort bybugsnagmcp_bugsnag_list_trace_fields#Retrieve available trace attribute fields for filtering.1 param
Retrieve available trace attribute fields for filtering.
projectIdstringoptionalUnique 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.
endpointsarrayrequiredArray 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.projectIdstringoptionalUnique 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).
errorIdstringrequiredUnique identifier of the erroroperationstringrequiredThe operation to apply to the errorissue_urlstringoptionalThe URL of the issue to link to the error - required when operation is 'link_issue'projectIdstringoptionalUnique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.reopenRulesobjectoptionalReopen rules for snooze operation - required when operation is 'snooze'