Incident management
## PagerDuty MCP Server: Incident Management The **PagerDuty MCP Server** integrates PagerDuty's incident management platform into Google Antigravity, enabling developers to manage on-call schedules, respond to incidents, and analyze operational metrics through AI-assisted workflows. ### Why PagerDuty MCP? - **Intelligent Alerting**: Reduce noise with smart alert grouping and suppression - **Incident Response**: Trigger, acknowledge, and resolve incidents directly from your IDE - **On-Call Management**: View and manage on-call schedules and escalation policies - **Analytics & Insights**: Analyze incident patterns, MTTA, and MTTR metrics - **Automation**: Create event-driven automation for common incident responses ### Key Features #### 1. Incident Management ```python # Create incident via MCP incident = await pagerduty.createIncident({ "title": "Database connection pool exhausted", "service_id": "PSERVICE123", "urgency": "high", "body": { "type": "incident_body", "details": "Connection pool at 100%% capacity. New connections failing." }, "escalation_policy_id": "PESCPOL789" }) # Acknowledge incident await pagerduty.acknowledgeIncident(incident.id) # Add incident note await pagerduty.addNote(incident.id, "Scaling database replicas to handle load") ``` #### 2. On-Call and Analytics ```python # Check who is on-call oncall = await pagerduty.getOnCall({ "schedule_ids": ["PSCHED123"], "time_zone": "America/New_York" }) print(f"Current on-call: {oncall.user.name}") # Get incident analytics metrics = await pagerduty.getAnalytics({ "service_ids": ["PSERVICE123"], "since": "2024-10-01", "until": "2024-12-31" }) print(f"MTTA: {metrics.mean_time_to_acknowledge}s") print(f"MTTR: {metrics.mean_time_to_resolve}s") ``` ### Configuration ```json { "mcpServers": { "pagerduty": { "command": "npx", "args": ["-y", "@anthropic/mcp-pagerduty"], "env": { "PAGERDUTY_API_KEY": "your-api-key", "PAGERDUTY_DEFAULT_EMAIL": "your-email@company.com" } } } } ``` ### Use Cases **DevOps Integration**: Automatically create incidents from monitoring alerts and manage responses from your IDE. **On-Call Automation**: Query schedules and automatically route issues to the right responders. **Incident Post-Mortems**: Analyze incident data to identify patterns and improve system reliability. The PagerDuty MCP Server brings operational excellence into your development workflow.
{
"mcpServers": {
"pagerduty": {
"mcpServers": {
"pagerduty": {
"env": {
"PAGERDUTY_API_KEY": "your-api-key"
},
"args": [
"-y",
"pagerduty-mcp-server"
],
"command": "npx"
}
}
}
}
}