Overview of SRE MCP Server tools
The sre_mcp_server.py acts as a tool server that the Claude Agent SDK communicates with via JSON-RPC over stdin/stdout. It provides 12 tools categorized into four functional areas:
| Category | Tools | Purpose |
|---|---|---|
| Prometheus | query_metrics, list_metrics, get_service_health | Query metrics, discover data, and get health summaries |
| Infrastructure | read_config_file, edit_config_file, run_shell_command, get_container_logs | Read/write configs, run Docker commands, and inspect logs |
| Diagnostics | get_logs, get_alerts, get_recent_deployments, execute_runbook | Access application logs, alerts, deployments, and playbooks |
| Documentation | write_postmortem | Write incident post-mortems to disk |
Note: The server also supports extensions for PagerDuty and Confluence if the corresponding API keys are provided in the environment.