Skip to content

Align safe-integer-range wording with server/tools.mdx - #3208

Closed
MarkovianProtocol wants to merge 1 commit into
modelcontextprotocol:mainfrom
MarkovianProtocol:fix/safe-integer-range-wording
Closed

MarkovianProtocol wants to merge 1 commit into
modelcontextprotocol:mainfrom
MarkovianProtocol:fix/safe-integer-range-wording

Conversation

@MarkovianProtocol

Copy link
Copy Markdown

server/tools.mdx and basic/transports/streamable-http.mdx state the same x-mcp-header constraint with two different justifications:

  • tools.mdx — "the safe range for integers represented using IEEE754 double-precision floating point numbers (−253+1 to 253−1)"
  • streamable-http.mdx — "the safe range for JavaScript (−253+1 to 253−1)"

The IEEE754 wording came out of review on #2772, where @pja-ant noted that "even in languages that have native integers, sometimes JSON parsing libraries will parse to double by default" and @mikekistler replied "Fair point. I will revise." That revision landed in tools.mdx only, and both files shipped in 2026-07-28 with the difference still present.

This applies the same wording in draft. The bound itself is unchanged.

Noticed while reading modelcontextprotocol/conformance#445.

Both files state the same x-mcp-header constraint, with two different
justifications. tools.mdx was revised to the IEEE754 wording during review
of modelcontextprotocol#2772; streamable-http.mdx was not. The bound is unchanged.

Co-Authored-By: Claude Opus 5 <[email protected]>
@MarkovianProtocol
MarkovianProtocol requested a review from a team as a code owner August 7, 2026 00:25
@MarkovianProtocol

Copy link
Copy Markdown
Author

Closing this — withdrawing on our side, not for any technical reason. Apologies for the noise.

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