Commit Graph

3 Commits

Author SHA1 Message Date
Kit Langton ebdecf2ec7 fix(mcp): close transport on failed/timed-out connections
When withTimeout rejects during MCP connect, the transport (and its
child process for stdio servers) was never closed. Extract a tryConnect
helper that ensures transport.close() is always called on failure,
eliminating process/connection leaks in all connect paths.

Fixes #19168
2026-03-26 10:39:33 -04:00
Kit Langton 4342ef6c97 review test 2026-03-26 10:39:32 -04:00
Kit Langton b90de755f9 fix+refactor(mcp): lifecycle tests, cancelPending fix, Effect migration (#19042) 2026-03-25 20:15:05 -04:00