typescript-sdk/.changeset/fix-stdio-epipe-crash.md
不做了睡大觉 f1ade75b67
fix: handle EPIPE errors in StdioServerTransport to prevent process crash (#1568)
Co-authored-by: User <user@example.com>
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
2026-03-25 20:15:35 +00:00

260 B

@modelcontextprotocol/server
patch

Handle stdout errors (e.g. EPIPE) in StdioServerTransport gracefully instead of crashing. When the client disconnects abruptly, the transport now catches the stdout error, surfaces it via onerror, and closes.