mcp-root-cause-detective
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_RCA_ALLOWED_ROOTS | No | Dosya okuma ve `git log` erişimini yalnızca izin verilen dizinlerle sınırlar (path traversal koruması). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Sen kıdemli bir Sistem ve Hata Ayıklama Mühendisisin. İlk adımda analyze_* araçlarından gelen root_cause_hypotheses, trace_correlations, error_spikes, mermaid_sequence_diagram ve unique_error_clusters[].template alanlarını kullan. Detaya inmen gerektiğinde analysis_id ile inspect_error_cluster, trace_request_flow, get_timeline_slice ve correlate_with_git_changes araçlarını çağır. Sonuçları programcıya şu yapıda sun: 1) Kök Neden Özeti (Tek cümlede asıl suçlu ve güven skoru), 2) Olay Zinciri (Hangi servisin hangi sırayla diğerini tetiklediği + Mermaid diyagramı), 3) Teknik Kanıt (Log satırı, satır numarası, şablon ve UTC zaman damgası), 4) Adım Adım Çözüm Önerisi.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_log_filesA | Birden fazla log dosyasını (.log, .txt, .jsonl, .gz) okur ve kök neden korelasyonu yapar. Glob desenlerini (ör. |
| analyze_docker_containersA | Çalışan Docker konteynerlerinin loglarını toplar ve servisler arası hataları ilişkilendirir. Args: container_names: İncelenecek konteynerler (boşsa çalışan tüm konteynerler taranır). tail_lines: Her konteynerden alınacak son log satırı sayısı. window_seconds: Korelasyon zaman penceresi (saniye). since: İsteğe bağlı Docker zaman filtresi (ör. '15m', '1h', '2026-12-03T02:55:00Z'). |
| analyze_kubernetes_podsA | Kubernetes pod loglarını ve küme olaylarını (OOMKilled, CrashLoopBackOff) ilişkilendirir. Args:
namespace: Taranacak Kubernetes namespace'i (varsayılan 'default').
label_selector: İsteğe bağlı etiket filtresi (ör. 'app=payment').
pod_names: Açık pod adları listesi (boş bırakılırsa namespace içindeki podlar listelenir).
tail_lines: Her poddan alınacak son log satırı sayısı.
window_seconds: Korelasyon zaman penceresi (saniye).
since: İsteğe bağlı zaman filtresi (ör. '30m', '2h').
include_events: True ise |
| diagnose_raw_stacktraceC | Terminalden yapıştırılan karmaşık hata çıktılarını ve stack trace yığınlarını analiz eder. |
| inspect_error_clusterA | Belirli bir hata kümesinin ( Önceki |
| trace_request_flowC | Belirli bir |
| get_timeline_sliceB | Şüpheli bir UTC anının ±N saniye etrafındaki filtrelenmiş ham log kesitini döndürür. |
| correlate_with_git_changesB | Son Git commit'lerini olay zamanıyla eşleştirerek olası hatalı değişiklikleri bulur.
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| incident_postmortem | SRE standartlarında olay sonrası kök neden ve postmortem raporu hazırlar. |
| k8s_pod_triage | Kubernetes pod çökme ve OOMKilled durumları için adım adım triage rehberi. |
| db_bottleneck_investigation | Veritabanı kilitlenmesi (deadlock/lock) ve uygulama 5xx korelasyonu başlatır. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_sessions_resource | Bellekte tutulan analiz oturumlarının özet listesini JSON olarak döndürür. |
| get_latest_analysis_resource | En son gerçekleştirilen analiz raporunu JSON olarak döndürür. |
TDQS
Scored across 8 tools
Each tool has a distinct role: three analyze_* tools are separated by evidence source (files, Docker, Kubernetes), and the remaining tools map to clear drill-down actions such as error cluster inspection, request tracing, timeline slicing, raw stacktrace parsing, and Git correlation. The only potential overlap—analyze_log_files vs. diagnose_raw_stacktrace—is resolved by input type (log files vs. pasted stacktrace).
All tool names use snake_case and begin with a verb, predominantly following a verb_noun pattern. The analyze_* family is consistent, and the drill-down tools are equally predictable.
Eight tools are well scoped for a root-cause investigation server: three source collectors, three focus/drill-down tools, one raw stacktrace parser, and one Git correlation tool. No tool appears redundant, and the set is neither too thin nor too heavy.
The surface covers the major evidence sources and follow-up analysis steps—log files, containers, Kubernetes, stacktraces, error clusters, request flows, timeline slices, and Git changes—forming a coherent investigation loop. Minor gaps remain, such as no generic keyword search or report/export operation, but agents can work around these using the existing analyze_* and timeline tools.