Skip to content

MCP analytics: dashboards and insights over the existing mcp_tool_call PostHog event #8606

Description

@JSONbored

Part of epic #8286. Gap found during a coverage audit against the maintainer's requested list (2026-07-25): every other analytics surface (web, AI observability, error tracking) has a dedicated sub-issue, but MCP tool-call analytics -- despite already emitting real PostHog events -- has no sub-issue covering dashboards/insights over that data.

Current state

src/mcp/telemetry.ts (#6235, landed before this epic) already emits a real mcp_tool_call event on every tools/call dispatch through the remote MCP (src/mcp/server.ts's recordMcpToolTelemetry chokepoint) -- tool name, caller type (remote/local), success, coarse duration. Opt-in (POSTHOG_API_KEY), never throws, anonymous fixed distinct_id (no per-actor identity by design, #6228). The local/CLI-side counterpart (packages/loopover-mcp/lib/telemetry.js) has separate wiring status per #6236/#6238 -- confirm its current state before assuming both sides already emit.

This capture path is NOT itself in scope here -- it already exists and already works. What's missing is turning the resulting event stream into something a maintainer actually looks at: no PostHog insight, dashboard panel, or alert currently consumes mcp_tool_call.

Requirements

Deliverables

Links & Resources

Boundaries

Dashboard/insight construction over already-emitted data only -- no new capture fields, no changes to src/mcp/telemetry.ts's allowlist.

maintainer-only.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions