Log MCP Tool Invocation Stats for Usage Analysis #3476
kvokka
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
It’s hard to identify which MCP tools are frequently used (and which MCP servers as well) versus those that can be trimmed, as there’s no visibility into tool invocation stats. This leads to bloated context windows and wasted tokens.
Describe the solution you'd like
Introduce an optional, independent log (outside git) to track MCP tool invocation stats (e.g., server, tool name, frequency, token usage, time). This would help users analyze and optimize tool usage & easily detect the servers that are not in use
Describe alternatives you've considered
Relying on existing token usage tracking, but it doesn’t provide per-tool granularity. Related to Issue #3358, but this should be a separate feature for broader applicability.
Additional context
The log could be toggled via a setting (e.g.,
roo.mcp.logUsage
) and support periodic resets for fresh analysis. This would complement the MCP tool exclusion feature proposed separately.Note
I’m willing to implement this feature and create a PR if the team agrees it’s valuable and merge-worthy.
Screenshots or Mockups
N/A
Beta Was this translation helpful? Give feedback.
All reactions