Bugsnag MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server for interacting with Bugsnag. This server allows LLM tools like Cursor and Claude to investigate and resolve issues in Bugsnag.
✨ Features
Error Monitoring & Analysis
- **Organization & Project Navigation**: Easily browse your Bugsnag hierarchy
- **Error & Event Filtering**: Find specific issues with powerful filtering options
- **Detailed Stacktrace Viewing**: See formatted stacktraces with source code context and highlighted error lines
- **Exception Chain Visualization**: Understand the root cause by viewing the full exception chain
Code Intelligence
- **Project vs. Library Code Distinction**: Clearly identify your code vs third-party libraries
- **Source Code Context**: View relevant code snippets around error locations
- **Error Patterns**: Identify recurring patterns across multiple errors
Issue Management
- **Search Capabilities**: Find issues by error class, message, or app version
- **Error Details**: Get comprehensive information about each error
- **Event History**: View all occurrences of a specific error
🚀 Quick Setup
Setting up the Bugsnag MCP server is simple and doesn't require any installation or downloading source code.
For Cursor
1. Add the Bugsnag MCP server configuration:
2. Replace your-bugsnag-api-key with your Bugsnag API key
For Claude Desktop
1. Add the Bugsnag MCP server configuration:
2. Replace your-bugsnag-api-key with your Bugsnag API key
🔑 Obtaining a Bugsnag API Key
To use this MCP server, you'll need a Bugsnag API key:
1. Log in to your Bugsnag account at https://app.bugsnag.com/
2. Go to **Settings** > **Organization settings** > **Access tokens**
3. Create a new personal access token with the following permissions:
- Read projects
- Read and write errors
- Read and write comments
4. Copy the generated token for use with the MCP server
📋 Usage Examples
Once configured, you can use the Bugsnag MCP server with your LLM tool. Here are some example prompts:
Exploring Your Bugsnag Account
Finding and Analyzing Errors
Searching for Specific Issues
📚 Available Tools
The Bugsnag MCP server provides the following tools:
Organization & Project Management
list_organizations
Lists available Bugsnag organizations.
Parameters:
- None required
list_projects
Lists projects in an organization.
Parameters:
- organization_id (required): Bugsnag organization ID
Error & Event Management
list_errors
Lists errors in a project with filtering options.
Parameters:
- project_id (required): Bugsnag project ID
- status: Filter by error status ("open", "fixed", "ignored")
- sort: Sort order for errors ("newest", "oldest", "priority")
- limit: Maximum number of errors to return
view_error
Gets detailed information about a specific error.
Parameters:
- error_id (required): Bugsnag error ID
list_error_events
Lists events (occurrences) for a specific error.
Parameters:
- project_id (required): Bugsnag project ID
- error_id (required): Bugsnag error ID
- limit: Maximum number of events to return
view_latest_event
Views the latest event for an error.
Parameters: