You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use newline=" in stdio TextIOWrapper to prevent CRLF on Windows
On Windows, TextIOWrapper without newline=" performs universal newline
translation (\n -> \r\n on write), corrupting the newline-delimited JSON
wire format used by MCP's stdio transport.
Add newline=" to both the stdin and stdout TextIOWrapper calls in
stdio_server() to disable translation on all platforms.
Add a regression test that inspects the raw bytes written to the output
buffer and asserts no \r bytes are present.
Fixes#2433
0 commit comments