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. - 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 contex
Add this skill
npx mdskills install tgeselle/bugsnag-mcpWell-documented MCP server with comprehensive error monitoring tools and clear setup instructions
1# Bugsnag MCP Server23A 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.45## โจ Features67### Error Monitoring & Analysis8- **Organization & Project Navigation**: Easily browse your Bugsnag hierarchy9- **Error & Event Filtering**: Find specific issues with powerful filtering options10- **Detailed Stacktrace Viewing**: See formatted stacktraces with source code context and highlighted error lines11- **Exception Chain Visualization**: Understand the root cause by viewing the full exception chain1213### Code Intelligence14- **Project vs. Library Code Distinction**: Clearly identify your code vs third-party libraries15- **Source Code Context**: View relevant code snippets around error locations16- **Error Patterns**: Identify recurring patterns across multiple errors1718### Issue Management19- **Search Capabilities**: Find issues by error class, message, or app version20- **Error Details**: Get comprehensive information about each error21- **Event History**: View all occurrences of a specific error2223## ๐ Quick Setup2425Setting up the Bugsnag MCP server is simple and doesn't require any installation or downloading source code.2627### For Cursor28291. Add the Bugsnag MCP server configuration:30 ```json31 {32 "mcpServers": {33 "bugsnag": {34 "command": "npx",35 "args": ["-y", "bugsnag-mcp-server"],36 "env": {37 "BUGSNAG_API_KEY": "your-bugsnag-api-key"38 },39 "disabled": false,40 "alwaysAllow": []41 }42 }43 }44 ```45462. Replace `your-bugsnag-api-key` with your Bugsnag API key4748### For Claude Desktop49501. Add the Bugsnag MCP server configuration:51 ```json52 {53 "mcpServers": {54 "bugsnag": {55 "command": "npx",56 "args": ["-y", "bugsnag-mcp-server"],57 "env": {58 "BUGSNAG_API_KEY": "your-bugsnag-api-key"59 },60 "disabled": false,61 "alwaysAllow": []62 }63 }64 }65 ```66672. Replace `your-bugsnag-api-key` with your Bugsnag API key6869## ๐ Obtaining a Bugsnag API Key7071To use this MCP server, you'll need a Bugsnag API key:72731. Log in to your Bugsnag account at [https://app.bugsnag.com/](https://app.bugsnag.com/)742. Go to **Settings** > **Organization settings** > **Access tokens**753. Create a new personal access token with the following permissions:76 - Read projects77 - Read and write errors78 - Read and write comments794. Copy the generated token for use with the MCP server8081## ๐ Usage Examples8283Once configured, you can use the Bugsnag MCP server with your LLM tool. Here are some example prompts:8485### Exploring Your Bugsnag Account8687```88List all my Bugsnag organizations89```9091```92Show me all projects in organization "org_12345"93```9495### Finding and Analyzing Errors9697```98List the open errors in my Bugsnag project "project_12345"99```100101```102Show me the details for Bugsnag error ID "error_12345"103```104105```106Show me the detailed stacktrace for event "event_12345" in project "project_12345"107```108109```110View the exception chain for event "event_12345" in project "project_12345"111```112113### Searching for Specific Issues114115```116Search for Bugsnag issues in project "project_12345" related to "NullPointerException"117```118119```120List all events for error "error_12345" in project "project_12345"121```122123## ๐ Available Tools124125The Bugsnag MCP server provides the following tools:126127### Organization & Project Management128129#### list_organizations130131Lists available Bugsnag organizations.132133Parameters:134- None required135136#### list_projects137138Lists projects in an organization.139140Parameters:141- `organization_id` (required): Bugsnag organization ID142143### Error & Event Management144145#### list_errors146147Lists errors in a project with filtering options.148149Parameters:150- `project_id` (required): Bugsnag project ID151- `status`: Filter by error status ("open", "fixed", "ignored")152- `sort`: Sort order for errors ("newest", "oldest", "priority")153- `limit`: Maximum number of errors to return154155#### view_error156157Gets detailed information about a specific error.158159Parameters:160- `error_id` (required): Bugsnag error ID161162#### list_error_events163164Lists events (occurrences) for a specific error.165166Parameters:167- `project_id` (required): Bugsnag project ID168- `error_id` (required): Bugsnag error ID169- `limit`: Maximum number of events to return170171#### view_latest_event172173Views the latest event for an error.174175Parameters:176- `error_id` (required): Bugsnag error ID177178#### view_event179180Views detailed information about a specific event.181182Parameters:183- `project_id` (required): Bugsnag project ID184- `event_id` (required): Bugsnag event ID185186### Stacktrace Analysis187188#### view_stacktrace189190Extracts and formats stacktrace information from an event.191192Parameters:193- `project_id` (required): Bugsnag project ID194- `event_id` (required): Bugsnag event ID195- `include_code`: Include source code context if available (default: true)196197#### view_exception_chain198199Views the full chain of exceptions for an event.200201Parameters:202- `project_id` (required): Bugsnag project ID203- `event_id` (required): Bugsnag event ID204205### Issue Management206207#### search_issues208209Searches for issues using various criteria.210211Parameters:212- `project_id` (required): Bugsnag project ID213- `query`: Search query214- `error_class`: Filter by error class215- `app_version`: Filter by app version216217## ๐ ๏ธ Advanced Usage218219### Testing Your API Key220221You can test if your Bugsnag API key is valid using:222223```bash224npx bugsnag-mcp-server test-api-key your-bugsnag-api-key225```226227If your API key is valid, this will display a list of your Bugsnag projects with their IDs.228229### Installation Options230231While using `npx` is recommended for most users, you can also install the package globally if you prefer:232233```bash234npm install -g bugsnag-mcp-server235```236237### For Developers238239If you're interested in contributing or modifying the code:2402411. Clone the repository:242 ```bash243 git clone https://github.com/yourusername/bugsnag-mcp.git244 cd bugsnag-mcp245 ```2462472. Install dependencies:248 ```bash249 npm install250 ```2512523. Build the project:253 ```bash254 npm run build255 ```2562574. Run tests:258 ```bash259 npm test260 ```2612625. Run tests with coverage:263 ```bash264 npm run test:coverage265 ```2662676. Format code:268 ```bash269 npm run format270 ```2712727. Check code formatting:273 ```bash274 npm run format:check275 ```276277### Continuous Integration278279This project uses GitHub Actions for continuous integration. The workflows automatically:280281- Runs on push to the main branch and on pull requests282- Tests against multiple Node.js versions (18.x and 20.x)283- Runs the test suite284- Generates and uploads test coverage reports285- Checks code formatting with Prettier286287You can view the workflow configurations in:288- `.github/workflows/test.yml` - For running tests289- `.github/workflows/prettier.yml` - For checking code formatting290291## License292293MIT294
Full transparency โ inspect the skill content before installing.