Alert management
## OpsGenie MCP Server: Alert Management The **OpsGenie MCP Server** integrates Atlassian OpsGenie's alert management platform into Google Antigravity. This enables creating alerts, managing on-call schedules, and coordinating incident response. ### Why OpsGenie MCP? OpsGenie ensures the right people respond: - **Alert Routing**: Smart escalation policies - **On-Call Management**: Schedules and rotations - **Incident Management**: Coordinate response - **200+ Integrations**: Connect monitoring tools - **Mobile App**: Alert anywhere ### Key Features #### 1. Create Alerts ```python import requests headers = {"Authorization": f"GenieKey {api_key}"} alert = requests.post( "https://api.opsgenie.com/v2/alerts", headers=headers, json={ "message": "High CPU Usage on prod-web-01", "priority": "P1", "tags": ["production", "infrastructure"], "details": {"cpu_usage": "95%", "server": "prod-web-01"} } ) ``` #### 2. Manage Alerts ```python # Acknowledge alert requests.post( f"https://api.opsgenie.com/v2/alerts/{alert_id}/acknowledge", headers=headers, json={"user": "oncall@example.com", "note": "Investigating"} ) # Close alert requests.post( f"https://api.opsgenie.com/v2/alerts/{alert_id}/close", headers=headers, json={"note": "Resolved by scaling up instances"} ) ``` #### 3. On-Call Schedules ```python # Get who's on-call response = requests.get( "https://api.opsgenie.com/v2/schedules/{schedule_id}/on-calls", headers=headers ) for participant in response.json()["data"]["onCallParticipants"]: print(f"On-call: {participant['name']}") ``` ### Configuration ```json { "mcpServers": { "opsgenie": { "command": "npx", "args": ["-y", "@anthropic/mcp-opsgenie"], "env": { "OPSGENIE_API_KEY": "your-api-key" } } } } ``` ### Use Cases **Alert Management**: Route alerts to right teams. **Incident Response**: Coordinate during outages. **On-Call**: Manage schedules and rotations. The OpsGenie MCP Server brings alert management to Antigravity.
{
"mcpServers": {
"opsgenie": {
"mcpServers": {
"opsgenie": {
"env": {
"OPSGENIE_API_KEY": "your-api-key"
},
"args": [
"-y",
"opsgenie-mcp-server"
],
"command": "npx"
}
}
}
}
}