fix(server): close stdio transport on stdin close#2473
Conversation
🦋 Changeset detectedLatest commit: 98f7d00 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@modelcontextprotocol/client
@modelcontextprotocol/codemod
@modelcontextprotocol/core
@modelcontextprotocol/server
@modelcontextprotocol/server-legacy
@modelcontextprotocol/express
@modelcontextprotocol/fastify
@modelcontextprotocol/hono
@modelcontextprotocol/node
commit: |
|
Pushed a small test-fixture follow-up after the Node 22 CI failure. The failing job crashed because Local verification:
|
|
@jspahrsummers gentle maintainer ping on this one. I pushed a follow-up for the Node 22 teardown failure and revalidated the targeted integration test locally. Most checks are green; the remaining failing |
Summary
StdioServerTransportwhen stdin emitscloseorendFixes #2002.
Test Plan
npx -y pnpm@10.26.1 --filter @modelcontextprotocol/server test -- packages/server/test/server/stdio.test.tsnpx -y pnpm@10.26.1 --filter @modelcontextprotocol/server lint