Skip to content

worker: MCP usage counts sessions; 10-11 Nov labeled as tools/list counts - #172

Open
hheskihoran wants to merge 4 commits into
mainfrom
worker/mcp-usage-sessions
Open

hheskihoran wants to merge 4 commits into
mainfrom
worker/mcp-usage-sessions

Conversation

@hheskihoran

Copy link
Copy Markdown
Member

The usage chart counted tools/list calls since 2026-11-10. Clients send it more than once per session, so the chart jumped against the Cloudflare-estimated history while Cloudflare shows flat traffic (about 21-25k requests and 600-870 distinct IPs a day on /mcp, 5-10 Nov).

  • Count the request that opens a session: initialize (session:init) or server/discover (session:discover, 2026-07-28 clients send no initialize). Same basis as the backfill estimate.
  • 2026-11-10 and 2026-11-11 stay in the data with listCounted: true, drawn dashed, excluded from totals and client shares.
  • tools/list still recorded as list for a ratio cross-check.
  • Docs: README, site caption, openapi, SPEC, CHANGELOG.

Tests: worker 144/144, tsc clean.

🤖 Generated with Claude Code

hheskihoran and others added 4 commits November 11, 2026 23:23
…6-11-10/11 labeled as tools/list counts

The counter counted tools/list, which clients send more than once per
session, so the chart jumped against the Cloudflare-estimated history
while real traffic was flat. Count the session-opening request instead:
initialize, or server/discover from 2026-07-28 clients (no initialize).
The two tools/list days stay in the data as listCounted, drawn dashed
and left out of totals and client shares. tools/list is still recorded
as "list" for cross-checking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed, how to check it, and its limits; add the Cloudflare re-derivation script

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…counter existed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oudflare dataset, filter, why 202 marks a session)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hheskihoran
hheskihoran enabled auto-merge (squash) November 11, 2026 20:34
@hheskihoran
hheskihoran disabled auto-merge November 13, 2026 18:20
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