Skip to content

Commit 9a96b23

Browse files
author
kai-agent-free
committed
fix: format stdio test with prettier and add changeset
1 parent 5485e0b commit 9a96b23

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/fix-stdio-epipe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@modelcontextprotocol/server': patch
3+
---
4+
5+
Handle EPIPE errors gracefully in stdio transport to prevent crashes when the connected process terminates unexpectedly.

packages/server/test/server/stdio.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ test('should forward non-EPIPE stdout errors to onerror', async () => {
143143
const server = new StdioServerTransport(input, output);
144144

145145
let reportedError: Error | undefined;
146-
server.onerror = (error) => {
146+
server.onerror = error => {
147147
reportedError = error;
148148
};
149149

0 commit comments

Comments
 (0)