Error tracking and debugging
## Rollbar MCP Server: Error Tracking & Debugging The **Rollbar MCP Server** integrates Rollbar's error tracking platform into Google Antigravity, enabling developers to monitor, triage, and debug production errors with AI-assisted root cause analysis and automated error grouping. ### Why Rollbar MCP? - **Intelligent Grouping**: Machine learning groups similar errors to reduce noise - **Code Context**: See exact code lines causing errors with source map support - **Workflow Integration**: Create issues in Jira, GitHub, or Slack automatically - **Person Tracking**: Understand which users are impacted by each error - **Telemetry**: Capture user actions leading up to errors for easier debugging ### Key Features #### 1. Error Monitoring and Analysis ```python # Get active errors from Rollbar items = await rollbar.getItems({ "status": "active", "level": "error", "environment": "production", "sort": "total_occurrences", "date_range": "7d" }) for item in items: print(f"Error: {item.title}") print(f"Occurrences: {item.total_occurrences}") print(f"Affected users: {item.unique_occurrences}") print(f"First seen: {item.first_occurrence}") # Get detailed error occurrence occurrence = await rollbar.getOccurrence({ "item_id": "12345", "occurrence_id": "abc123" }) print("Stack trace:", occurrence.body.trace.frames) print("Request:", occurrence.request) print("Person:", occurrence.person) ``` #### 2. Error Management Workflow ```python # Resolve error with comment await rollbar.resolveItem({ "item_id": "12345", "status": "resolved", "resolved_in_version": "2.5.1", "comment": "Fixed null pointer in user service" }) # Create linked issue await rollbar.createLinkedItem({ "item_id": "12345", "integration": "github", "repo": "org/repo", "title": "Fix null pointer exception in UserService" }) ``` ### Configuration ```json { "mcpServers": { "rollbar": { "command": "npx", "args": ["-y", "@anthropic/mcp-rollbar"], "env": { "ROLLBAR_ACCESS_TOKEN": "your-access-token", "ROLLBAR_PROJECT_ACCESS_TOKEN": "your-project-token" } } } } ``` ### Use Cases **Error Triage**: Quickly identify and prioritize the most impactful errors affecting users. **Debugging Assistance**: Get full error context including user actions, request data, and code location. **Release Monitoring**: Track error rates by version to catch regressions from new deployments. The Rollbar MCP Server brings production error insights directly into your development environment.
{
"mcpServers": {
"rollbar": {
"mcpServers": {
"rollbar": {
"env": {
"ROLLBAR_ACCESS_TOKEN": "your-access-token"
},
"args": [
"-y",
"rollbar-mcp-server"
],
"command": "npx"
}
}
}
}
}