Skip to content

Add Glean telemetry to MCP server#2324

Merged
akkomar merged 5 commits intomainfrom
mcp_telemetry
Feb 17, 2026
Merged

Add Glean telemetry to MCP server#2324
akkomar merged 5 commits intomainfrom
mcp_telemetry

Conversation

@akkomar
Copy link
Member

@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

Handcraft minimal Glean events pings since @mozilla/glean has no
Node.js entry point. Tracks initialize and tool_call events.

Also fix Netlify venv setup: drop get-pip.py in favor of standard
venv with ensurepip (pip 26 no longer bundles setuptools).
@akkomar akkomar requested a review from edugfilho February 13, 2026 09:33
Copy link
Contributor

@edugfilho edugfilho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

@akkomar akkomar merged commit faf7b3a into main Feb 17, 2026
7 checks passed
@akkomar akkomar deleted the mcp_telemetry branch February 17, 2026 18:51
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.

2 participants