SuperAPI AI Directory

spoor

Spoor is an open-source, read-only MCP server and command-line tool for observability backends such as VictoriaMetrics, Prometheus, Loki, Tempo, and New Relic. When a service fails, AI agents can ask Spoor "what changed in the past 30 minutes," and Spoor returns a short, importance-ranked conclusion across metrics, logs, and traces, putting the service where the failure started first and flagging the affected "echoes" in other services. It uses deterministic Go code to perform cross-signal comparison, baseline comparison, error pattern merging, and causal attribution, with output constrained by a token budget and accompanied by evidence links for human verification. Spoor contains no LLM internally, only calls query endpoints, and redacts text fields.

Open website

About this tool

Purpose

Spoor helps AI agents quickly locate the starting point of microservice failures. When the system misbehaves, instead of deciding what to query, paging through results, and judging which service is the root cause on its own, the agent can simply ask Spoor "what changed in the last 30 minutes" and get a short ranked conclusion across metrics, logs, and traces.

Key capabilities

  • Cross-signal analysis: Within the same time window and against the same baseline, it compares request rate, error rate, latency, CPU, memory, consumer lag, and other metrics; new and surging errors and error volumes in logs; and errors and latency per span.
  • Built for real logs: Log messages that differ only by ID, numeric value, stack trace, or log prefix are merged into the same error; supports reading JSON errors from message and code fields; compatible with different log level fields or levels in text;spoor doctor can probe fields and generate configuration.
  • Distinguishes causes from echoes: Uses the trace tree to determine where the failure started and where latency increased, downgrading callers that are merely affected and labeling them as "originates in …".
  • Identifies steady-state errors: Lists errors that already existed as steady_errors, indicating "not a new problem" to prevent agent misjudgment.
  • Controlled output: Every tool accepts a budget_tokens parameter (default 800).
  • Reports gaps honestly:coverage explains backend failures, no data, empty baselines, no matches for error filters, or log lines missing service/level fields, rather than masking "can't see" as "no change".
  • Deterministic, read-only, redacted: Same input produces same output; only query endpoints are called; text fields are scrubbed of emails, tokens, IPs, and generated IDs before leaving.

Usage

Requires Go 1.25+, Docker, and jq, and takes about five minutes. You can connect Spoor to Claude Code by running it in the spoor directory (or adding -s user to register globally), then ask Claude: "Something is failing in the shop. What changed, and where did it start?". On your own backend, it is recommended to first run spoor doctor --since 15m to check visibility and get configuration suggestions. Each signal selects its backend via type: , and they can be mixed. For team use, you can serve MCP over streamable HTTP with bearer token authentication via spoor serve --http :8080 --auth-token … , and it provides /healthz and Prometheus /metrics; the repository contains hardened deployment manifests for Kubernetes (Kustomize), Docker Compose, and systemd.

Applicable scenarios

Suitable for microservice troubleshooting, rapid summarization of observability data, AI agent-assisted operations, and similar scenarios. Validated on OpenTelemetry Demo v3.1.0 (about 20 real services): 50% payment failures are returned as "payment: failures start here, in charge", and checkout and frontend errors are labeled "originates in payment" (732 tokens); the adHighCpu fault is returned as a single finding "ad: CPU up 0.07 → 3.97 cores" (192 tokens).

Limitations

The project is in an early pre-1.0 stage, and tool output fields may change between minor versions. Scoring was mainly developed and benchmarked on the VictoriaMetrics stack; Prometheus, Loki, and Tempo have been tested with the same scenarios against real containers, and New Relic was validated only on one real account. Tempo statistics are sampled data, and New Relic span changes are reported only when service metrics are consistent. Cause/echo attribution relies on trace data; without traces, metric and log changes can still be ranked. Each read processes at most 50,000 span rows, and traces on busy systems may be truncated. Benchmarks use synthetic events written by the author and a single model, so they should be treated as preliminary data points; it is recommended to use bench/replay.py replay your own historical events before relying on it. Metrics and traces are queried by service; in large environments where services are known, it is recommended to pass service。