typescript-sdk/.changeset/stdio-skip-non-json.md
Konstantin Konstantinov 0fb8406d83
v2: codemod iterations, canonical zod schema exports from sdk-shared (#2354)
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
2026-06-25 19:42:44 +01:00

362 B

@modelcontextprotocol/core-internal
patch

ReadBuffer.readMessage() now silently skips non-JSON lines instead of throwing SyntaxError. This prevents noisy onerror callbacks when hot-reload tools (tsx, nodemon) write debug output like "Gracefully restarting..." to stdout. Lines that parse as JSON but fail JSONRPC schema validation still throw.