Skip to content

Conversation

@akkomar
Copy link
Contributor

@akkomar akkomar commented Feb 12, 2026

This adds a way to track MCP endpoint usage by sending lightweight Glean event pings on initialize and tool calls. Since @mozilla/glean only ships browser bundles (no Node.js entry point), we handcraft the ping payload and POST it directly to the ingestion endpoint. This is a quick hack to set up the monitoring as soon as possible, later on I'll look into moving this to use the SDK.

Events: mcp.initialize (client info), mcp.tool_call (tool, app, success). Pings validated against the official glean v1 schema in tests.

I have tested this locally with submissions to Debug Viewer: https://debug-ping-preview.firebaseapp.com/stream/mcp-test

See https://mozilla-hub.atlassian.net/browse/DENG-10652

Track MCP usage by sending lightweight Glean events pings on initialize
and tool calls. Since @mozilla/glean only ships browser bundles (no
Node.js entry point), we handcraft the ping payload and POST it directly
to the ingestion endpoint.

Events: mcp.initialize (client info), mcp.tool_call (tool, app, success).
Pings validated against the official glean.1 schema in tests.
Should fix Netlify build failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant