Skip to content

Develop - #226

Merged
mrdailey99 merged 2 commits into
mainfrom
develop
Jun 9, 2026
Merged

Develop#226
mrdailey99 merged 2 commits into
mainfrom
develop

Conversation

@mrdailey99

Copy link
Copy Markdown
Collaborator

No description provided.

mrdailey99 and others added 2 commits June 9, 2026 12:42
RCA: estimateTokens serialized the whole ToolResult, counting the payload twice (escaped JSON in content[0].text plus the structuredContent object) and inflating the per-call estimate roughly 2x versus what the model actually reads.
Fix: add estimateResultTokens summing content[].text and use it in attachMeta and the depth-guard accumulator; update docs/mcp.md formula and note plus tokenMeta tests; bump version to 1.6.2 in package.json and server.json.
…imate

PDX-514: fix(mcp): base estimatedTokens on content text only
@mrdailey99
mrdailey99 merged commit 9f8db3f into main Jun 9, 2026
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