Skip to content

feat(mcp): include schema-token proxy in live registration telemetry#600

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/mcp-count-schema-tokens-in-registration-2026-06-18-10-54
Jun 18, 2026
Merged

feat(mcp): include schema-token proxy in live registration telemetry#600
NagyVikt merged 1 commit into
mainfrom
agent/claude/mcp-count-schema-tokens-in-registration-2026-06-18-10-54

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

savings_report's registration_cost reported name+description tokens only,
under-counting the real per-session injection cost. Add a schema_tokens proxy
(param keys + public .describe() strings) and total_tokens. A full
zod->JSON-schema conversion is deliberately avoided (version-coupled; emits an
empty schema across mismatched zod instances) — the byte-exact schema-inclusive
budget stays in tool-budget.test.ts (lean <=4200, full <=15000).
@NagyVikt NagyVikt merged commit a3c4625 into main Jun 18, 2026
@NagyVikt NagyVikt deleted the agent/claude/mcp-count-schema-tokens-in-registration-2026-06-18-10-54 branch June 18, 2026 09:10
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