Repository navigation
Releases
Releases · firasmosbehi/mcp-exporter
v0.7.0
Added
- MCP protocol 2026-07-28 (stateless).
mcp.protocol.version,mcp.client.nameandmcp.server.namenow come from each message's_meta(io.modelcontextprotocol/protocolVersion,/clientInfo,/serverInfo). Before this, they were missing whenever there was noinitialize.subscriptions/listenspans last as long as the subscription and end without an error. Before, they ended astimeouterrors. They are never idle-swept or counted as in-flight.- The Tasks extension: flat
resultType: "task"results, with or without opt-in, plusnotifications/tasksandtasks/update. - Tested against the Python SDK 2.3
MCPServerover HTTP and stdio. The CI smoke test runs one (deploy/compose/stateless.yaml).
- Wiki:
- Architecture has a Tested with table: client and server SDK pairs and their transports, including the Python SDK on all three.
- Troubleshooting explains that SDK stdio clients don't pass
OTEL_*to the exporter unlessenvis given.
Fixed
- HTTP, no session: a request whose response ends without an answer now ends right away. That's
error.type=cancelledwhen the stream closed, or the HTTP status when the upstream failed (502if unreachable). Before, it ended as atimeoutafter-session-idle.
v0.6.1
Fixed
- Legacy HTTP+SSE servers (protocol 2024-11-05:
GET /sse+POST /message?sessionId=) are now observed correctly.- Responses arrive on the GET stream, so they never matched their POSTs. Every request ended as a false
timeouterror after-session-idle, and no session was tracked. - The session now comes from the stream's
endpointevent and ends when the stream closes. - This is not supported in gateway mode.
- Responses arrive on the GET stream, so they never matched their POSTs. Every request ended as a false
v0.6.0
Added
-
Gateway mode (#54):
-route NAME=URL(repeatable) puts one exporter in front of several MCP servers./NAME/...is proxied with the prefix stripped, and each route exports its telemetry asservice.name=NAME.- Sessions and request ids are tracked per route.
/readyzaggregates all upstreams, and/NAME/readyzchecks one.- Helm:
gateway.routesdeploys the exporter without a server sidecar. - Compose: the
gateway.yamloverlay, covered by the smoke test.
-
Wiki, Client Mode: why OAuth servers that enforce token audience can't work through the HTTP client form, with the RFC 9728 and RFC 8707 details.
Recipes: themcp-remotestdio form, orvalidateResourceURLin agents built on the TypeScript SDK (#55). -
Instrumented demo agent (#56):
cmd/demo-agentanddeploy/compose/agent.yaml.- Each agent step is an
invoke_agentspan with fakechatmodel calls carryinggen_ai.*attributes. - MCP spans nest under the step through
params._meta. - The demo starts it alongside the shell agent, and the smoke test asserts the nesting in Tempo.
- Each agent step is an
-
deploy/compose/screenshot.shrefreshes the README and wiki screenshots from a running demo. The dashboard image now shows every row (#58).
Changed
- With
OTEL_METRICS_EXPORTER=prometheus, metrics now carry aservice_namelabel, so gateway routes stay apart on one/metricsendpoint.
v0.5.0
Added
- Semantic-conventions conformance (#52):
TestEmittedNamesAreInSemconvchecks every emitted span attribute, metric and metric attribute against a pinned registry (GenAI conventions at a commit, core conventions at v1.44.0), with an explicit list of project-defined names.- A weekly
semconv-watchworkflow checks against upstream and opens an issue on drift. - The policy for upstream renames is in CONTRIBUTING.md, and the draft upstream proposals are in
docs/semconv-proposal.md.
deploy/compose/check-profiles-versions.sh, run in CI: fails with the exact versions to set when the profiler images drift from the Collector bundled ingrafana/otel-lgtm. Dependabot now covers the reference stack (#53).
Fixed
- Console exporters (
OTEL_*_EXPORTER=console) now write to stderr on every platform. On Windows, stdio mode accepts them instead of refusing them (#51). - Responses are matched to requests by id value, not raw bytes. A request with id
1.0(or1e0) answered with1used to stay open until the-session-idletimeout. The string"1"and the number1remain distinct, andjsonrpc.request.idreports the canonical form (#50).
v0.5.0-rc1
Added
- Semantic-conventions conformance (#52):
TestEmittedNamesAreInSemconvchecks every emitted span attribute, metric and metric attribute against a pinned registry (GenAI conventions at a commit, core conventions at v1.44.0), with an explicit list of project-defined names.- A weekly
semconv-watchworkflow checks against upstream and opens an issue on drift. - The policy for upstream renames is in CONTRIBUTING.md, and the draft upstream proposals are in
docs/semconv-proposal.md.
deploy/compose/check-profiles-versions.sh, run in CI: fails with the exact versions to set when the profiler images drift from the Collector bundled ingrafana/otel-lgtm. Dependabot now covers the reference stack (#53).
Fixed
- Console exporters (
OTEL_*_EXPORTER=console) now write to stderr on every platform. On Windows, stdio mode accepts them instead of refusing them (#51). - Responses are matched to requests by id value, not raw bytes. A request with id
1.0(or1e0) answered with1used to stay open until the-session-idletimeout. The string"1"and the number1remain distinct, andjsonrpc.request.idreports the canonical form (#50).
v0.4.0
Added
- SLSA build provenance (GitHub artifact attestations) for release archives, the image and the chart, verifiable with
gh attestation verify(#41). - Dashboard rows for MCP Tasks, client mode and exporter health (failed exports, unparsed frames, dropped telemetry, SDK queue fill), plus
MCPTasksFailingandMCPExporterQueueFullalerts. The smoke test now runs an MCP Task and checks every dashboard query (#40). - The Helm chart is now installed in a real cluster (kind) on every PR:
deploy/helm/e2e.shchecks readiness, an MCP session through the Service, the span, and the metrics and pprof ports (#39). - A wiki (source in
docs/wiki/, published by.github/workflows/wiki.yml): Getting Started, Demo, Kubernetes, Client Mode, Backends, Configuration, Telemetry Reference, Architecture, Profiles, Security, Troubleshooting, Releases, Development. - One-command demo
deploy/compose/demo.shwith a simulated agent (deploy/compose/demo.yaml) exercising tools, failures, slow calls, prompts, resources, an MCP Task lifecycle, server logging and session rotation, plus dashboard and trace screenshots in the README.
Fixed
- Docs: the Prometheus exporter binds
localhostby default. Containers needOTEL_EXPORTER_PROMETHEUS_HOST=0.0.0.0.
v0.4.0-rc1
Added
- SLSA build provenance (GitHub artifact attestations) for release archives, the image and the chart, verifiable with
gh attestation verify(#41). - Dashboard rows for MCP Tasks, client mode and exporter health (failed exports, unparsed frames, dropped telemetry, SDK queue fill), plus
MCPTasksFailingandMCPExporterQueueFullalerts. The smoke test now runs an MCP Task and checks every dashboard query (#40). - The Helm chart is now installed in a real cluster (kind) on every PR:
deploy/helm/e2e.shchecks readiness, an MCP session through the Service, the span, and the metrics and pprof ports (#39). - A wiki (source in
docs/wiki/, published by.github/workflows/wiki.yml): Getting Started, Demo, Kubernetes, Client Mode, Backends, Configuration, Telemetry Reference, Architecture, Profiles, Security, Troubleshooting, Releases, Development. - One-command demo
deploy/compose/demo.shwith a simulated agent (deploy/compose/demo.yaml) exercising tools, failures, slow calls, prompts, resources, an MCP Task lifecycle, server logging and session rotation, plus dashboard and trace screenshots in the README.
Fixed
- Docs: the Prometheus exporter binds
localhostby default. Containers needOTEL_EXPORTER_PROMETHEUS_HOST=0.0.0.0.
v0.3.1
Fixed
- Crash: a request with
"params": {"_meta": null}(or"params": null) panicked while injecting trace context. That killed the process in stdio mode, and failed the request in HTTP mode. It affected every release up to 0.3.0, and the workaround is-inject-context=false. Found by fuzzing (#38). - Injecting trace context no longer HTML-escapes
&,<and>in request ids and arguments (#38).
Added
- Fuzz targets for the JSON-RPC parser, the SSE observer, bounded gunzip and
Tracker.Frame, run briefly in CI on every PR (#38).
v0.3.0
Added
- docs/backends.md: env-var recipes for Grafana Cloud, Honeycomb, Datadog (agentless, delta metrics) and SigNoz, plus what to expect in GenAI "LLM views" and troubleshooting (#14).
- Client mode,
-role client(#13): observes from the agent's side. Agent-sent requests become CLIENT spans withserver.address/server.portandmcp.client.operation.duration, where every error code counts. Session metrics are namedmcp.client.*. Works over stdio (e.g. wrappingmcp-remote) and HTTP. -pprof <addr>serves the exporter's Go pprof on a separate listener, and Helm getsexporter.pprof.enabled(#11).- Profiles overlay
deploy/compose/profiling.yaml: a Collector pprof receiver scraping the exporter, plus the OpenTelemetry eBPF profiler profiling the MCP server, both into Pyroscope. There's also a Kubernetes DaemonSet indeploy/kubernetes/ebpf-profiler.yaml, and CI's e2e test now checks that profiles arrive (#11, #12).
Changed
- The reference stack moves from
grafana/otel-lgtm0.11.10 to 0.35.0, whose Collector speaks the current OTLP Profiles protocol.
v0.2.0
Added
- MCP Tasks support (#6):
mcp.task.id/mcp.task.statuson creating, polling and related spans, span links back to the creating request, and amcp.task.durationhistogram (creation to terminal status). - Self-observability (#9):
mcp_exporter.export.errors{signal}counts SDK and export failures, the SDK's ownotel.sdk.*metrics are enabled by default (OTEL_GO_X_OBSERVABILITY=falseto opt out), SDK error logging to stderr is rate-limited to one line per 30s, and there's a newMCPExporterExportFailingalert. -redact-keysto replace the redacted-key pattern, and-capture-toolsto capture payloads only for listed tools (#8).- Secret-shaped values (JWTs, bearer tokens,
sk-/GitHub/Slack tokens, AWS access key ids) are redacted wherever they appear in captured payloads (#8).
Changed
- Server
notifications/messagelog data is now redacted like captured payloads, not just truncated (#8). - HTTP mode:
/readyznow returns 503 while the upstream is unreachable (TCP dial, 1s timeout, result cached 2s), so Kubernetes takes the pod out of the Service when the MCP server dies (#5)./healthzis unchanged.
Fixed
- Windows: stdio mode with
OTEL_*_EXPORTER=consolewrote telemetry into the protocol stream. It now exits with a clear error, because Windows has no fd-level stdout swap (#10). - HTTP mode: gzip-compressed requests and compressed upstream responses were forwarded but not observed (#4). Request bodies are now decompressed for observation, and the upstream is asked for uncompressed responses.