typescript-sdk/.changeset/abort-handlers-on-close.md
Felix Weinberger a2e503733f
fix: abort in-flight request handlers on connection close (#1735)
Co-authored-by: Aljosa Asanovic <aljosa.a@gmail.com>
2026-03-27 13:23:44 +00:00

327 B

@modelcontextprotocol/core
patch

Abort in-flight request handlers when the connection closes. Previously, request handlers would continue running after the transport disconnected, wasting resources and preventing proper cleanup. Also fixes InMemoryTransport.close() firing onclose twice on the initiating side.