
Spoor
io.github.asinha07由 GitHub 帳號 asinha07 發布v0.3.1更新於 Oct 24, 2026
What changed across metrics, logs and traces, and where it started (Grafana, Victoria, New Relic).
概覽
Spoor 是一個唯讀的可觀測性 MCP 伺服器,讓 AI 助理了解指標、日誌與追蹤資料中發生了什麼變化,以及故障從哪裡開始。
- 可以做什麼
- 彙整指定時間範圍內指標、日誌與追蹤的排序變化,並區分根因與連帶影響
- 列出新增或暴增的錯誤日誌樣式,附上次數、首次出現時間與去識別化範例
- 比對變慢或開始失敗的 span,並提供範例 trace ID
- 列出時間範圍內的服務,以及各服務有哪些訊號資料
- 依 token 預算裁剪每次回覆,並在後端失敗或無資料時回報覆蓋缺口
- 適用情境
- 適合在 VictoriaMetrics、Prometheus、Loki、Tempo 或 New Relic 後端上調查故障時使用,讓助理取得簡短且排序過的結論,而不必逐筆翻查原始查詢。特別適用於多個服務同時告警、需要分辨根因與下游症狀的微服務故障。
- 執行需求
- 以本機容器(ghcr.io/asinha07/spoor)透過 stdio 執行,或使用原始碼建置的 Go 執行檔;快速上手需要 Go 1.25+、Docker 與 jq。需要可連線的後端網址,透過 SPOOR_METRICS_URL、SPOOR_LOGS_URL、SPOOR_TRACES_URL 設定,後端類型透過 SPOOR_METRICS_TYPE、SPOOR_LOGS_TYPE、SPOOR_TRACES_TYPE 設定,選用的 bearer 權杖為 SPOOR_METRICS_TOKEN、SPOOR_LOGS_TOKEN、SPOOR_TRACES_TOKEN。使用 New Relic 需要 NEW_RELIC_ACCOUNT_ID 與 NEW_RELIC_API_KEY。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Spoor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Spoor
Spoor tells an AI agent what changed in your services, and where it started, in a few hundred tokens.
[CI] [License] [asinha07/spoor MCP server]
Website: telespoor.com
Spoor is an open-source MCP server and CLI for your observability backends: the VictoriaMetrics stack, Prometheus, Loki, Tempo and New Relic. When something breaks, an agent asks Spoor "what changed in the last 30 minutes?" and gets back a short, ranked answer across metrics, logs and traces, with the service where the failure started at the top and its echoes in other services labelled as such.
Spoor (n.): the track or trail left by an animal. Spoor follows the trail a failure leaves in your telemetry back to where it started.
Findings carry evidence links to the query behind them (when the token budget allows), so a human can check the agent's work in one click.
Why use it
In a microservice failure, the broken service and every caller of it all light up. An agent with only raw query tools has to decide what to query, compare against "normal" itself, page through results and work out which service is the cause and which are echoes. It burns tool calls and tokens, and often blames the loudest symptom or an error that was always there.
Spoor does that work in plain, deterministic Go and hands the agent the conclusion's evidence:
- Cross-signal: request rate, error rate, latency, CPU, memory and consumer lag; new and spiking errors and error volume from logs; per-span errors and latency, all for the same window against the same baseline.
- Built for real logs: messages that differ only by IDs, values, stack traces or log prefixes count as one error;
JSON errors are read by their message and code fields; services
can use different level fields or put the level in the text;
spoor doctorfinds your fields and writes the config. - Cause vs. echo: trace trees show where failures start and where latency is added. Callers that merely
suffer are demoted and labelled
— originates in payment. - Steady errors called out: errors that were already there are listed as
steady_errors, "not a new problem", so agents stop blaming them. - Bounded output: every tool takes
budget_tokens(default 800). - Honest about gaps:
coveragesays when a backend failed or had no data, the baseline was empty, the error filter matched nothing, or lines lack a service or level field. "No change" never stands in for "can't see". - No LLM inside, read-only, redacted: same input, same output; only query endpoints are ever called; every text field is scrubbed of emails, tokens, IPs and generated IDs before it leaves.
Measured
The benchmark runs Claude Code headless on six incidents (five faults and a no-fault control), five times each, once with the official VictoriaMetrics MCP servers alone and once with Spoor added. On Claude Haiku, 60 isolated sessions:
Synthetic incidents and one small model, so treat it as a first data point.
On real production logs (about 25 services, mixed formats, read-only replay): the digest was 99.8% smaller than the raw evidence it replaces, with zero candidates against four from v0.1.1, and its baseline counts matched independent queries exactly. It was not faster than four hand-written queries (28 s vs 26 s), and accuracy on real incidents is not yet measured.
Method, per-scenario results, the production replay and caveats: docs/benchmark.md.
Quickstart
Requires Go 1.25+, Docker and jq. About five minutes.
Connect it to Claude Code:
Run it from the spoor directory (or add -s user to register it everywhere), then ask Claude: "Something is
failing in the shop. What changed, and where did it start?"
On your own backends, start with spoor doctor --since 15m: it checks what Spoor can see and suggests config.
Other clients, Grafana-only access and the rest: Getting started.
Backends
Each signal picks its backend with type:, and you can mix them:
Setup and what differs per backend (Tempo statistics are sampled; New Relic span changes need the service's metrics to agree): Backends.
Tools
Inputs: service, since, until, baseline (previous, 1d, 7d), budget_tokens.
Full reference: docs/tools.md.
How it works
For a window and a baseline (by default, the six windows just before it), Spoor scores every metric with a robust z-score, compares error-log patterns with a Poisson test, compares span error rates and p95s, walks failed traces to the span where each failure started, boosts changes confirmed by more than one signal, and trims the result to the token budget. Details: architecture · scoring and attribution.
Run it for a team
spoor serve --http :8080 --auth-token … serves MCP over streamable HTTP with bearer-token auth, /healthz and
Prometheus /metrics. Ready-made, hardened manifests:
- Kubernetes (Kustomize):
deploy/kubernetes/ - Docker Compose:
deploy/docker/ - systemd:
deploy/systemd/
Security, sizing, monitoring and upgrades: Production guide.
Verified on the OpenTelemetry Demo
On the OpenTelemetry Demo v3.1.0 (about 20 real
services), a 50% payment failure came back as "payment: failures start here, in charge", with checkout and
frontend errors labelled "originates in payment" (732 tokens); the adHighCpu fault came back as the single
finding "ad: CPU up 0.07 → 3.97 cores" (192 tokens). Reproduce it: deploy/demo/.
Documentation
Status and limitations
Early (pre-1.0). Tool output fields may still change between minor versions; see the changelog.
- The scoring was developed and benchmarked on the VictoriaMetrics stack. Prometheus, Loki and Tempo pass the same scenario tests against real containers; New Relic was checked on one real account. Tempo statistics are sampled, and New Relic span changes are reported only when service metrics agree; see backends.
- Cause/echo attribution needs traces; without them Spoor still ranks metric and log changes.
- Attribution reads at most 50,000 span rows per read; on very busy systems a trace can be cut.
- The benchmark uses synthetic incidents written by the author and one model; treat it as a first data point, and
replay your own past incidents with
bench/replay.pybefore relying on it. - Metrics and traces are queried per service; on large estates pass
servicewhen you know it.
More in how-it-works.md.
Roadmap
Next: accuracy on labelled real incidents, "since the last deploy" windows, Datadog and Elasticsearch backends, exact Tempo statistics through TraceQL metrics. The full list, and what is deliberately out of scope: docs/roadmap.md.
Contributing
Issues and pull requests are welcome. make test needs nothing but Go; see CONTRIBUTING.md.
Security issues: SECURITY.md.
License
Apache-2.0. See LICENSE.
來源:README.md,提交 8a03c9e
工具
0版本歷史
3- v0.3.1最新Oct 23, 2026
- v0.2.1Oct 16, 2026
- v0.1.1Oct 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分