Skip to content

Add context-cost badge (transparency for the default toolset's schema size) - #3083

Open
athakur3 wants to merge 1 commit into
github:mainfrom
athakur3:context-cost-badge
Open

Add context-cost badge (transparency for the default toolset's schema size)#3083
athakur3 wants to merge 1 commit into
github:mainfrom
athakur3:context-cost-badge

Conversation

@athakur3

Copy link
Copy Markdown

One line: a shields.io badge showing what the server's tool schemas cost in context tokens — currently 54,422 tokens across 44 tools for the default Docker toolset (measured 2026-08-16). This is transparency users repeatedly ask for when budgeting context windows, and the number is already widely discussed in the ecosystem — a badge makes it accurate, versioned, and linked to a reproducible method instead of folklore.

Framing note: this is not a judgment — a full-platform server can be worth every token, and toolset filtering exists precisely for cost control. The per-tool breakdown may be independently useful: the top 5 tools (issue_write 1,890, list_issues 1,783, pull_request_read 1,737, pull_request_review_write 1,681, search_issues 1,678) carry a large share, mostly in inputSchema depth — results/github/measurement.json has the full capture.

The badge JSON lives in our repo and refreshes weekly; the number links to the methodology — raw tools/list capture + pinned o200k_base tokenizer, re-derivable in five lines from the published measurement. Numbers you can refute beat numbers people quote.

If you'd rather not carry this, close freely — no hard feelings. To own the number in your own CI instead: sd2k/mcp-tokens-action (badge support proposed in sd2k/mcp-tokens-action#5).

@athakur3
athakur3 requested a review from a team as a code owner August 16, 2026 14:29
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