Skip to main content
Glama
Agentic SRE Alert Triage & Postmortem Copilot

Agentic SRE Alert Triage & Postmortem Copilot

by nazaa-arch

Agentic SRE Alert Triage & Postmortem Copilot

Python MCP Server + Next.js/TypeScript copilot untuk melakukan triase log/metrik insiden produksi secara otomatis dan menyusun draf blameless postmortem dengan gerbang persetujuan manusia (Human-in-the-Loop).

Tujuan

Menjembatani sinyal alert produksi (log error & metrik latensi/error rate) ke server Model Context Protocol (MCP) sehingga agen SRE dapat mengelompokkan akar masalah tanpa mengeksekusi tindakan atau menerbitkan postmortem tanpa persetujuan manusia.

Related MCP server: Cairn

Fitur Utama

  • Log Fingerprinting & Clustering: Mengelompokkan ratusan log error berdasarkan pola pesan yang dinormalisasi (<hex>, <n>).

  • Metric Anomaly Detector: Deteksi lonjakan metrik berbasis Z-score terhadap baseline historis.

  • Zero-Dependency MCP Server (stdio): Menyediakan tool triage_alerts, draft_postmortem, dan approve_postmortem.

  • HITL Approval State Machine: Draf selalu berstatus PENDING_REVIEW hingga disetujui atau ditolak oleh reviewer manusia.

  • Next.js / TypeScript Dashboard (src/app/): Pratinjau klaster alert dan panel approval interaktif.

Instalasi

git clone https://github.com/nazaa-arch/agentic-sre-postmortem-copilot.git
cd agentic-sre-postmortem-copilot
python --version  # Python 3.10+

Untuk UI Next.js (opsional):

npm install
npm run dev

Contoh Penggunaan

# 1. Jalankan triase dari bundel log & metrik JSON
python -m sre_copilot.cli triage incident_bundle.json

# 2. Jalankan server MCP stdio untuk Claude / Cursor / Antigravity
python -m sre_copilot.cli mcp

Pengujian

python -m unittest discover -s tests -v

Lisensi

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables users to investigate infrastructure incidents in plain English, correlate observability and deploy data with runbooks, and get evidence-backed root-cause proposals with approval-gated remediation.
      5
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to autonomously investigate simulated production incidents by checking live service health, logs, deployments, and database status while retrieving relevant historical postmortems and runbooks to propose evidence-backed root causes.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to search service logs, group errors by signature, compare a candidate run against a baseline for regressions, and correlate which problems from other services appear before or after an error. All results are computed by the tools rather than the language model, so agents can only explain findings the code produced.
      5
      MIT