Repository navigation
Conversation
_body serialized MCP requests with json.dumps' default ensure_ascii=True, which escapes every non-ASCII character as \uXXXX (6 bytes, 12 for astral characters) before the 8,192-byte check. A re-verification note within the documented 2,000-character limit in Arabic, Chinese, accented Latin or emoji was refused locally (12,292 bytes) although its UTF-8 body is 4,292 bytes, the form the MCP bridge sends. Serialize with ensure_ascii=False and encode with backslashreplace, so a lone surrogate, which has no UTF-8 form, keeps its JSON escape. Document the request limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test counted only tools/call requests, so a regression that sent the initialize handshake before refusing an oversized request would still pass. Count every request the server receives across the refused call. Found by a Proofline review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proofline review run for the change proposed upstream in prooflinedev#82. Same branch and commit; see the upstream PR for the problem, change and verification.
🤖 Generated with Claude Code