Skip to content

Add MCP usage analytics - #114

Merged
janhelcl merged 12 commits into
mainfrom
feature/mcp-usage-analytics
Aug 28, 2026
Merged

Add MCP usage analytics#114
janhelcl merged 12 commits into
mainfrom
feature/mcp-usage-analytics

Conversation

@janhelcl

Copy link
Copy Markdown
Owner

Summary

  • add privacy-minimal mcp_tool_events storage for all public MCP tools
  • record tool name, success/failure, duration, error class, and timestamp only
  • keep analytics fail-open so storage failures never break MCP responses
  • add authenticated /admin/mcp-analytics aggregation endpoint
  • add an MCP tab to the admin cockpit with usage, success rate, latency, and per-tool breakdown
  • document the MCP analytics privacy model
  • add backend tests for instrumentation and aggregation

Privacy

MCP analytics do not store prompts, arguments, response payloads, IP addresses, raw client metadata, or fabricated user/session identifiers.

@janhelcl
janhelcl merged commit 5214497 into main Aug 28, 2026
3 checks passed
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