# autotel-mcp

An MCP server that gives AI agents the ability to investigate OpenTelemetry traces, metrics, and logs. Ships with a built-in OTLP collector so any instrumented app can send data directly. No Jaeger, Grafana, or vendor setup required.

### Key Features

- **Backend-agnostic.** Built-in OTLP collector on port 4318 accepts data from any OTel-instrumented app.
- **All three signals.** Traces, metrics, and logs: with cross-signal correlation.
- **Agent-optimized.** 53 tools designed for progressive investigation: discover → diagnose → correlate → root cause.
- **Zero infrastructure.** In-memory by default, persistent with `--persist`.

### Requirements

- Node.js 22.15 or newer
- An MCP client: Claude Code, Claude Desktop, VS Code, Cursor, Windsurf, Goose, or any other MCP client

## Getting started

Install the autotel-mcp server with your client.

**Standard config** works in most tools:

```json
{
  "mcpServers": {
    "autotel": {
      "command": "npx",
      "args": ["autotel-mcp"]
    }
  }
}
```

<details>
<summary>Claude Code</summary>

Use the Claude Code CLI to add the server:

```bash
claude mcp add autotel npx autotel-mcp
```

</details>

<details>
<summary>Claude Desktop</summary>

Follow the MCP install [guide](https://modelcontextprotocol.io/quickstart/user). Add to your config:

```json
{
  "mcpServers": {
    "autotel": {
      "command": "npx",
      "args": ["autotel-mcp"]
    }
  }
}
```

</details>

<details>
<summary>VS Code</summary>

Follow the MCP install [guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server), use the standard config above. Or use the CLI:

```bash
code --add-mcp '{"name":"autotel","command":"npx","args":["autotel-mcp"]}'
```

</details>

<details>
<summary>Cursor</summary>

Go to `Cursor Settings` -> `MCP` -> `Add new MCP Server`. Use `command` type with the command `npx autotel-mcp`.

</details>

<details>
<summary>Windsurf</summary>

Follow Windsurf MCP [documentation](https://docs.windsurf.com/windsurf/cascade/mcp). Use the standard config above.

</details>

<details>
<summary>Cline</summary>

Add to your `cline_mcp_settings.json`:

```json
{
  "mcpServers": {
    "autotel": {
      "type": "stdio",
      "command": "npx",
      "args": ["autotel-mcp"],
      "disabled": false
    }
  }
}
```

</details>

<details>
<summary>Codex</summary>

```bash
codex mcp add autotel npx "autotel-mcp"
```

Or add to `~/.codex/config.toml`:

```toml
[mcp_servers.autotel]
command = "npx"
args = ["autotel-mcp"]
```

</details>

<details>
<summary>Copilot CLI</summary>

```bash
/mcp add
```

Or add to `~/.copilot/mcp-config.json`:

```json
{
  "mcpServers": {
    "autotel": {
      "type": "local",
      "command": "npx",
      "tools": ["*"],
      "args": ["autotel-mcp"]
    }
  }
}
```

</details>

<details>
<summary>Gemini CLI</summary>

Follow the MCP install [guide](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#configure-the-mcp-server-in-settingsjson), use the standard config above.

</details>

<details>
<summary>Goose</summary>

Go to `Advanced settings` -> `Extensions` -> `Add custom extension`. Use type `STDIO`, set command to `npx autotel-mcp`.

</details>

<details>
<summary>Amp</summary>

```bash
amp mcp add autotel -- npx autotel-mcp
```

Or add to VS Code settings:

```json
"amp.mcpServers": {
  "autotel": {
    "command": "npx",
    "args": ["autotel-mcp"]
  }
}
```

</details>

<details>
<summary>Warp</summary>

Go to `Settings` -> `AI` -> `Manage MCP Servers` -> `+ Add`. Use the standard config above.

</details>

### With Jaeger backend

To query an existing Jaeger instance instead of the built-in collector:

```json
{
  "mcpServers": {
    "autotel": {
      "command": "npx",
      "args": ["autotel-mcp"],
      "env": {
        "AUTOTEL_BACKEND": "jaeger",
        "JAEGER_BASE_URL": "http://localhost:16686"
      }
    }
  }
}
```

### With persistent storage

```json
{
  "mcpServers": {
    "autotel": {
      "command": "npx",
      "args": ["autotel-mcp", "--persist", "./autotel.db"]
    }
  }
}
```

## How it works

```
Your App ──OTLP──> autotel-mcp (port 4318) ──libsql──> in-memory store
                        │
AI Agent ──MCP──────────┘
                   (stdio or HTTP)
```

1. Your instrumented app sends traces/metrics/logs via OTLP to `http://localhost:4318`
2. autotel-mcp stores the data in libsql (in-memory by default)
3. Your AI agent connects via MCP and investigates using 53 tools

## Backends

### Collector (default)

Built-in OTLP collector with libsql storage. Accepts all three signals on port 4318. No external dependencies.

```bash
# In-memory (default) — data lost on restart
npx autotel-mcp

# Persistent storage — survives restarts
npx autotel-mcp --persist ./autotel.db
```

Point your app's OTLP exporter at the collector. It takes `http/protobuf` and `http/json`, gzipped or not, and stores a histogram or summary point as its mean:

```bash
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 node your-app.js
```

### Jaeger

Query an existing Jaeger instance, including 2.22 and later through `/api/v3`. Traces only (metrics and logs unsupported by Jaeger API).

```bash
AUTOTEL_BACKEND=jaeger JAEGER_BASE_URL=http://localhost:16686 npx autotel-mcp
```

### Grafana Cloud

Grafana Cloud is Tempo, Loki and Prometheus behind basic auth, so use the
`stack` backend with credentials. Each signal has its own URL and user id
(Stack details page in grafana.com), and one access policy token reads them
all. Give the token the `traces:read`, `logs:read` and `metrics:read` scopes:
the OTLP write token your app exports with cannot query.

```bash
export GRAFANA_CLOUD_TOKEN=glc_...    # access policy token with read scopes
export TEMPO_BASE_URL=https://tempo-prod-XX-prod-REGION.grafana.net/tempo
export TEMPO_USERNAME=123456
export LOKI_BASE_URL=https://logs-prod-XXX.grafana.net
export LOKI_USERNAME=123457
export PROMETHEUS_BASE_URL=https://prometheus-prod-XX-prod-REGION.grafana.net/api/prom
export PROMETHEUS_USERNAME=123458
export GRAFANA_URL=https://YOUR-STACK.grafana.net   # optional: trace links

AUTOTEL_BACKEND=stack npx autotel-mcp
```

`backend_health` runs a real query on each signal, so a token without read
scope fails the health check. A token with no user id
is sent as a bearer token, for a self-hosted stack behind an auth proxy.

### Datadog

Query Datadog APM traces, Logs and Metrics. Logs sent over OTLP keep their
trace id, so `correlate` returns a trace with its logs. Filtered by service,
operation or `errorOnly`, `aggregate_spans` runs on Datadog's analytics API and
covers every span in the window.

Datadog splits its credentials by direction. An API key writes telemetry in. An
application key reads it back out, and every query here sends both:

```bash
export DD_API_KEY=...          # Organization Settings -> API Keys
export DD_APP_KEY=...          # Organization Settings -> Application Keys, scoped apm_read, logs_read_data, metrics_read, timeseries_query
export DD_SITE=datadoghq.eu    # bare site, defaults to datadoghq.com

AUTOTEL_BACKEND=datadog npx autotel-mcp
```

An app that already exports to Datadog holds the API key alone. Add the
application key before this server can read those traces back.

Check the pair before you debug anything else:

```bash
AUTOTEL_BACKEND=datadog AUTOTEL_TRANSPORT=http npx autotel-mcp &
curl -s localhost:3000/health
```

A healthy response counts the services in the APM catalog and reports every
signal `available`. `list_services` adds every service with spans in the
last day. A missing application key fails
the health check and names the variable, so you never read an empty result as
"no data". HTTP 403 means Datadog accepted the request and refused it: check
that `DD_SITE` matches the org and that the application key carries `apm_read`.

The spans search API is tightly rate limited, as low as 5 requests a minute per
org. A trace search costs two requests whatever its `limit`, and a 429 tells
the agent to wait a minute. Datadog returns at most
1000 spans per request, so a larger trace comes back with `truncated: true`.

### Cloudflare

Query the spans and Workers logs Cloudflare stores through its SQL API
(`logs.traces`, `logs.workersLogs`): Workers' automatic spans, custom spans
(autotel's included) and Cloudflare Traces' edge spans. Metrics report as
`unsupported`.

```bash
export CLOUDFLARE_ACCOUNT_ID=...
export CLOUDFLARE_API_TOKEN=...   # needs Account Analytics Read
AUTOTEL_BACKEND=cloudflare npx autotel-mcp
```

Cloudflare samples the dataset adaptively by window width and volume. The
backend fetches each trace in a narrow window around its start time, and tags a
sampled span with `cloudflare.sample_interval`, the number of spans it
represents.

## Offline cache and snapshots

Collector schema and semantic-convention tools can run in CI or air-gapped environments using local cache/snapshots.

- `AUTOTEL_OFFLINE_MODE=true`
  Disable network fetches and use local cache + bundled snapshots only.
- `AUTOTEL_UPSTREAM_CACHE_DIR=/path/to/cache`
  Override cache directory (default: `.autotel-cache` in current working directory).

Bundled snapshots ship under `fixtures/upstream/` and include a baseline collector version/component catalog plus semantic-convention namespace data.

## Configuration

Flags override environment variables, which override defaults. `--help` lists
everything.

### Flags and environment variables

| Flag                   | Variable                  | Default                                       | Description                                     |
| ---------------------- | ------------------------- | --------------------------------------------- | ----------------------------------------------- |
| `-b, --backend`        | `AUTOTEL_BACKEND`         | `collector`                                   | Backend: `collector`, `jaeger`, …               |
| `-t, --transport`      | `AUTOTEL_TRANSPORT`       | `stdio`                                       | MCP transport: `stdio` or `http`                |
| `-p, --port`           | `AUTOTEL_PORT`            | `3000`                                        | MCP HTTP port                                   |
| `--allowed-hosts`      | `AUTOTEL_ALLOWED_HOSTS`   | localhost only                                | Hostnames the HTTP endpoint answers for         |
| `--allowed-origins`    | `AUTOTEL_ALLOWED_ORIGINS` | localhost only                                | Hostnames of browser origins allowed to call it |
| `-H, --host`           | `AUTOTEL_HOST`            | `127.0.0.1`                                   | MCP HTTP bind address                           |
| `--collector-port`     | `AUTOTEL_COLLECTOR_PORT`  | `4318`                                        | OTLP receiver port                              |
| `--persist`            | `AUTOTEL_PERSIST`         | —                                             | libsql file path (omit for in-memory)           |
| `--retention-ms`       | `AUTOTEL_RETENTION_MS`    | `3600000` (1h mem) / `86400000` (24h persist) | Data retention                                  |
| `--max-traces`         | `AUTOTEL_MAX_TRACES`      | `10000`                                       | Max traces before eviction                      |
| `--fixture`            | `AUTOTEL_FIXTURE_PATH`    | `./fixtures/telemetry.json`                   | Fixture backend data                            |
| `--jaeger-url`         | `JAEGER_BASE_URL`         | `http://localhost:16686`                      | Jaeger API URL                                  |
| `--devtools-url`       | `DEVTOOLS_BASE_URL`       | `http://localhost:4318`                       | autotel-devtools URL                            |
| `--tempo-url`          | `TEMPO_BASE_URL`          | `http://localhost:3200`                       | Tempo URL                                       |
| `--prometheus-url`     | `PROMETHEUS_BASE_URL`     | `http://localhost:9090`                       | Prometheus URL                                  |
| `--loki-url`           | `LOKI_BASE_URL`           | `http://localhost:3100`                       | Loki URL                                        |
| `--tempo-user`         | `TEMPO_USERNAME`          | —                                             | Grafana Cloud Tempo user id                     |
| `--loki-user`          | `LOKI_USERNAME`           | —                                             | Grafana Cloud Loki user id                      |
| `--prometheus-user`    | `PROMETHEUS_USERNAME`     | —                                             | Grafana Cloud Prometheus user id                |
| `--grafana-url`        | `GRAFANA_URL`             | —                                             | Grafana fronting Tempo, for trace links         |
| `--toolsets`           | `AUTOTEL_TOOLSETS`        | `all`                                         | Tool groups to register                         |
| `--omit-tools`         | `AUTOTEL_OMIT_TOOLS`      | —                                             | Tool names to leave out                         |
| `--datadog-site`       | `DD_SITE`                 | `datadoghq.com`                               | Datadog region                                  |
| `--cloudflare-account` | `CLOUDFLARE_ACCOUNT_ID`   | —                                             | Cloudflare account id                           |

Credentials have no flag form. `argv` is readable by any process that can list
the process table, so `LOGFIRE_READ_TOKEN`, `DD_API_KEY`, `DD_APP_KEY`,
`SIGNOZ_API_KEY`, `CLOUDFLARE_API_TOKEN` and `GRAFANA_CLOUD_TOKEN` come from the
environment only.
Passing one as a flag is an error that names the variable to set instead.

An unrecognised flag is reported on stderr and ignored, not treated as an error:
this binary read no `argv` at all until recently, and client configs in the wild
carry flags it never defined.

### Issue automations

`list_issues` / `get_issue` use the same grouping as autotel-devtools
(`autotel-devtools/issues`). Against the devtools backend they read its stored
issues, with status; on other backends issues are grouped from the window and
read as active.

For backends without their own automations, set a destination and the server
polls and sends an issue, with the context `get_issue` returns, when it reaches
`AUTOTEL_ISSUES_THRESHOLD` occurrences (default 5) or returns after
`AUTOTEL_ISSUES_QUIET_MINUTES` of silence (default 60):

- `AUTOTEL_ISSUES_DESTINATION`: JSON, any destination devtools supports, e.g.
  `{"type":"claude-code","routineId":"trig_…","token":"…"}`, `cursor`, `devin`,
  `slack`, `pagerduty`, `webhook`.
- `AUTOTEL_ISSUES_WEBHOOK` (+ `AUTOTEL_ISSUES_WEBHOOK_SECRET` for HMAC
  signing): shorthand for a webhook.

Sends are retried up to three times. `AUTOTEL_ISSUES_INTERVAL_MS` sets the poll
interval (default 60000). Environment only: destinations carry credentials.
What was sent, and a history of the last 200 sends, persist to
`AUTOTEL_ISSUES_STATE` (a JSON file), or beside the `--persist` database
(`<db>.issues.json`) when there is one, so a restart neither re-sends open
issues nor forgets them. Without either, state is in memory.

The collector source-maps exception stacks at ingest: frames from bundles on
this machine map through the maps beside them, and `AUTOTEL_SOURCEMAPS` names a
directory of production `.map` files.

### Embedding

`createApp()` reads no `argv` of its own, so a host CLI's flags cannot collide
with these:

```ts
import { createApp } from 'autotel-mcp';

const app = await createApp(); // environment only
// await createApp({ argv: process.argv.slice(2) })  // opt into flags
// await createApp({ config })                       // already resolved

await app.start();
app.createServer(); // a server instance; see below
```

`app.createServer` is a factory, not an instance. Protocol `2026-07-28` removed
the `initialize` handshake and the session header, so a server holds nothing
between requests: the HTTP entry builds one per request, stdio builds one per
connection, and the same definition of the same tools serves both.

### HTTP mode

Run as a standalone Streamable HTTP server (for remote clients or environments
without stdio):

```bash
npx autotel-mcp --transport http --port 3000
```

The endpoint validates the `Origin` and `Host` headers against localhost, which
the spec requires of any local server: binding to `127.0.0.1` is not on its own
a defence, because a page on any origin can post to it.

Hosting it under a real hostname means saying so, or that same guard answers
every request with `403` before it reaches a tool:

```bash
autotel-mcp --transport http --host 0.0.0.0 \
  --allowed-hosts autotel.example.com
```

`--allowed-origins` is the browser half, and takes the origins your clients run
on rather than your own hostname; a non-browser client sends no `Origin` and
always passes.

Naming hosts **replaces** the localhost default rather than adding to it, so
`localhost` and `127.0.0.1` stop answering unless you name them too. Add them
when a health check or a local client still needs in:

```bash
autotel-mcp --transport http --host 0.0.0.0 \
  --allowed-hosts autotel.example.com,localhost,127.0.0.1
```

Both flags take **hostnames** — `app.example.com`, not `https://app.example.com`.
Each guard parses the hostname out of the header it checks and compares that, so
an entry carrying a scheme or port could never match one; such an entry is
refused at startup rather than turning into a 403 nobody can trace. Neither
guard checks the scheme or the port, which is why neither is quietly stripped
for you.

Neither flag adds authentication — this server has none, so put it behind
something that does.

Then configure your MCP client with:

```json
{
  "mcpServers": {
    "autotel": {
      "url": "http://localhost:3000/mcp"
    }
  }
}
```

## Protocol

Speaks MCP `2026-07-28` — no `initialize` handshake, no session header,
`server/discover` for capability discovery, and cacheable list results. 2025-era
clients are served from the same tool definitions through the SDK's stateless
legacy path, so existing MCP clients keep working unchanged.

The HTTP+SSE transport is gone. It has been deprecated since `2025-03-26` and is
scheduled for removal; `--transport http` is Streamable HTTP, which serves both
eras from one endpoint.

Every tool here reads telemetry and nothing else, and is registered with
`readOnlyHint` / `idempotentHint` annotations to say so — a client that honours
them can run an investigation without stopping to ask about each query.

## Tools

53 tools organized by investigation workflow, when the backend serves traces,
metrics and logs. Tools for a signal the backend lacks are not registered.

Every tool rejects an argument it does not take, naming it. A result that stops at its
`limit` carries a `hint` on how to get the rest. Traces carry a `url` into the
backend's own UI where it has one (Datadog, Jaeger, SigNoz, Tempo through
Grafana).

Load only the groups you need, so the client spends less context on tool
descriptions:

```bash
AUTOTEL_TOOLSETS=core,llm npx autotel-mcp     # core, llm, collector, semconv, estimate; default all
AUTOTEL_OMIT_TOOLS=service_map npx autotel-mcp
```

`core` is everything for investigating traces, metrics and logs. `llm` is the
LLM analytics and `agent_usage`. `collector` and `semconv` are the collector
config and semantic-convention references; `estimate` is
`estimate_telemetry_cost`.

<details>
<summary><b>Discovery (5)</b></summary>

- **list_services**: Services with span counts and error rates
- **list_operations**: Operations for a service, ranked by traffic
- **backend_health**: Backend reachability and ingestion status
- **backend_capabilities**: Signal support and query features
- **list_capabilities**: Full server manifest

</details>

<details>
<summary><b>Trace Investigation (4)</b></summary>

- **search_traces**: Find traces by service, operation, status, duration, tags, time window
- **search_spans**: Span-level search across traces
- **get_trace**: Full trace detail by ID
- **summarize_trace**: Compact summary: span tree, errors, critical path, duration breakdown

Every backend returns nested attributes as dotted keys (`nested.id: 1`) and arrays as JSON.

</details>

<details>
<summary><b>Diagnosis (4)</b></summary>

- **find_anomalies**: Scan for statistical outliers: latency spikes, error rate jumps
- **find_root_cause**: The error's origin span, or the span with the most self time (time not spent waiting on child spans), plus the top five self-time spans
- **find_errors**: Aggregate error spans grouped by service and operation
- **list_issues**: Failures (thrown and handled exceptions, HTTP 5xx, error logs, log floods, runaway alarms) grouped into issues with status, count, first/last seen, trend, regression, versions and affected users/accounts/sessions
- **get_issue**: One issue's stack trace, latest trace and its logs, and the service logs around it: the context to hand a coding agent
- **check_slos**: Report SLO violations given p99 latency and error rate targets
- **what_changed**: Every service whose `service.version` changed in the window, and every feature flag whose `feature_flag.version` changed, when, and the error rate and p95 before and after. Pass `serviceName` to look at one service. Built from spans, so it needs no deploy events

</details>

<details>
<summary><b>Analytics (2)</b></summary>

- **aggregate_spans**: Count, error rate and avg/p50/p95/p99/max latency grouped by service, operation, version or any span attribute, optionally per time bucket. Exact on Datadog (server-side) when filtering by service, operation or errorOnly; any other filter, or a time bucket, uses a sample across the window so every filter applies
- **aggregate_logs**: Log counts by service, severity or any attribute, with the most frequent message patterns (ids and numbers masked)

</details>

<details>
<summary><b>Topology (2)</b></summary>

- **service_map**: Dependency graph with call counts, error rates, latency percentiles
- **list_services** / **list_operations**: Service and operation discovery

</details>

<details>
<summary><b>LLM Analytics (6)</b></summary>

- **get_llm_usage**: Token usage by model and service
- **list_llm_models**: Models in use with request counts
- **get_llm_model_stats**: Latency/token/error percentiles per model
- **get_llm_expensive_traces**: Top traces by token count
- **get_llm_slow_traces**: Slowest LLM traces
- **list_llm_tools**: Tool/function call usage by name

</details>

<details>
<summary><b>Live validation (1)</b></summary>

- **semconv_validate**: Check received telemetry against OpenTelemetry semantic conventions through `weaver live-check` (deprecated attributes and their replacements, undefined names). `run: true` re-checks; a `stale` result predates newer telemetry. Devtools backend with `weaver` on PATH only.

</details>

<details>
<summary><b>Coding agents (1)</b></summary>

- **agent_usage**: Token and cost usage of Claude Code / Codex / opencode sessions seen by autotel-devtools, by session, prompt/turn, repository or agent (`latest: "prompt"` for the last request). Every total says whether cost and tokens are `complete`, `partial` or `unknown`. Devtools backend only; others answer `unavailable`.

</details>

<details>
<summary><b>Signals (5)</b></summary>

- **list_metrics**: Available metric series (names and metadata)
- **get_metric_series**: Data points for one metric over a time window
- **search_logs**: Log search by severity, service, trace ID, text
- **get_state_transitions**: Persisted state transitions per entity, field, from, to, via and service, from the `autotel.state.transitions` metric. Answers the `autotel-transitions/v0.1.0` document with no `ok`/`data` envelope. `instrumented` lists each entity and field with any series in the window; a transition's absence means not instrumented or not seen. Counts are best-effort. On Datadog, tag values come back normalized (lower case, so `Paid` reads `paid`). A collector receiving delta temporality reads as cumulative, because it does not store temporality, so its counts are unreliable
- **get_entity_history**: One instance's `state.transition` log records, oldest first, written by `transition({ history: true, id })`. Says so when the backend has none. Loki cannot serve it yet: its search turns attributes into stream labels, and `state.entity` is not a valid label

</details>

<details>
<summary><b>Cross-Signal Correlation (2)</b></summary>

- **correlate**: Given a trace ID: return trace + metrics from involved services + correlated logs
- **explain_slowdown**: Combines anomaly detection with cross-signal correlation

</details>

<details>
<summary><b>Collector Config (3)</b></summary>

- **validate_collector_config**: Validate OTLP receiver config fragment
- **explain_collector_config**: Explain config shape and defaults
- **suggest_collector_config**: Generate minimal config

</details>

<details>
<summary><b>Instrumentation Quality (2)</b></summary>

- **score_span_instrumentation**: Quality score 0-100 with A-F grade
- **explain_instrumentation_score**: Scoring rubric details

</details>

## Events

autotel-mcp offers telemetry as [MCP Events](https://modelcontextprotocol.io/extensions/events/overview)
(`io.modelcontextprotocol/events`), so an agent can be woken when something
happens instead of asking on a timer.

| Event                     | Fires when                                                                                          | Arguments            |
| ------------------------- | --------------------------------------------------------------------------------------------------- | -------------------- |
| `autotel.issue.opened`    | an error is seen for the first time (a new fingerprint)                                             | `service` (optional) |
| `autotel.deploy.detected` | a service's spans start reporting a new `service.version`, with error rate and p95 before and after | `service` (optional) |

Delivery is **poll** (`events/poll`), every 60 seconds by `nextPollMs` (5
minutes on Datadog, whose spans API is rate-limited). The
server keeps no subscriptions, so push and webhook are not offered. Cursors
replay up to 24 hours; an older cursor, or one older than `maxAgeMs`, is
answered from the limit with `truncated: true`, as is a poll whose source was
capped (a span sample, or the searches issues were grouped from). The cursor
stays two minutes behind now, so a record the backend indexes late is still
delivered; events that recent arrive on a later poll, and `maxAgeMs` counts
back from that point. Event ids come from the upstream facts
(`issue:<fingerprint>`, `deploy:<service>:<from>:<to>:<changedAtUnixMs>`), so
a duplicate can be dropped. A deploy event's `timestamp` is when it was
detected and `changedAt` when the version first appeared; they differ for a
rollback, which needs three spans in a row of the earlier version to confirm.

Payloads hold identifiers and numbers, never error text, which is untrusted
input: fetch the details with `get_issue` and `get_trace`. On backends without
stored issues, "first seen" means first within the last 24 hours.

## Resources

MCP resources give agents context without burning tool calls:

| URI                              | Content                                           |
| -------------------------------- | ------------------------------------------------- |
| `otel://capabilities`            | Server manifest: transports, tool groups, signals |
| `otel://tool-catalog`            | All tools with descriptions and workflow hints    |
| `otel://backend/capabilities`    | Active backend's signal support                   |
| `otel://collector/config`        | OTLP receiver config guidance                     |
| `otel://instrumentation/scoring` | Scoring rubric explanation                        |
| `ui://autotel/trace-view.html`   | Waterfall view for `get_trace` (MCP Apps)         |

## Traces in the chat

`get_trace` comes with an interactive waterfall. Clients that render MCP Apps (Claude, ChatGPT, VS Code) draw the trace inline: span timings, kinds and failures, the same waterfall as autotel-devtools. Click a span and the model gets its name, timing, status and key attributes, so your next question is about that span. Other clients get the JSON as before.

Claude Desktop, Claude Code and VS Code run autotel-mcp locally, so the built-in collector works as is. Claude.ai and ChatGPT connect to remote servers only: run `--transport http` on a public HTTPS address, with `--allowed-hosts` naming it.

## License

Apache-2.0
