Repository navigation
Conversation
|
Independent regression check on Windows / Node 24.20.0 at head
The covered controls retain the caller-owned connection, reject ping on the stopped owned connection, abort the running tool, and emit one disconnect despite repeated stop. The implementation uses the existing session-close path and tracks only the sessions constructed by This is focused regression evidence, using the new tests' in-memory replacement for stdio construction. I did not repeat the separate subprocess probe or run the full suite at this PR head. No provider credentials or external model calls were used. AI assistance was used to review the diff and perform this validation. |
|
Pushed a small fix: the SDK's |
|
🎉 This PR is included in version 4.23.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
stop()now closes the sessions and transports created bystart({ transportType: "stdio" }). Previously it set the server state to stopped while the stdio session remained tracked and continued answering MCP requests.Owned sessions use the existing close path, which cancels running tools, removes stdin listeners and emits
disconnect. Stopping while session setup is waiting and failures while connecting now close the owned session and transport. Transports supplied throughconnect()retain their documented caller ownership. This complements #265, which handles the client closing stdin.Validation on Windows with Node 22.20.0 and pnpm 10.32.1:
StdioClientTransportsubprocess probe confirms the base still answerspingafterstop(); with the fix the session is removed, one disconnect is emitted, andpingfails on the closed connection.AI assistance was used to prepare this change.