SIGN IN SIGN UP
upstash / context7 UNCLAIMED

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

0 0 6 TypeScript

fix(mcp): exit stdio server when parent closes stdio (#2577)

Listen for stdin end/close and SIGHUP and exit with code 0. Without these,
an idle undici keep-alive socket left over from a recent fetch keeps
libuv's event loop alive past stdin EOF, leaving an orphan node process
when the parent (e.g. Claude Code) is force-killed.

Fixes #2542
F
Fahreddin Özcan committed
78b98266954d35da8aa93ad40c67df33a3ff4443
Parent: 6c71e4d
Committed by GitHub <noreply@github.com> on 5/6/2026, 10:58:26 AM