Skip to content

Conversation

@paoloricciuti
Copy link
Member

Added some analytics for the MCP server. A few notes:

  1. analytics are solely for the remote version...doing API requests from the local version feel a bit invasive.
  2. The way this is implemented is that we use the context feature of tmcp, and we only pass the track function from the http server
  3. I've added an event for every tool/resource/prompt invocation AND for every returned error
  4. This is completely anonymous, it only stores the session ID and the event itself (and the slug in the case of the resource).

WDYT? This could allow us to steer the development of the server towards the most useful part of it and also give some info on the most requested docs sections so we can possibly work on those to reduce token usage.

@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

⚠️ No Changeset found

Latest commit: 48b756a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mcp Ready Ready Preview Comment Oct 24, 2025 6:24am
@paoloricciuti paoloricciuti merged commit b911a00 into main Oct 24, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants