You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mcp): detect orphaned stdio host and self-terminate
StdioServerTransport only listens for stdin data/error events, so a
stdio-mode server never notices when its host (Claude Code) dies
without sending SIGTERM/SIGINT first. The child is left running as
an orphan (ppid 1) with nothing to talk to, observed spinning at
sustained high CPU indefinitely until manually killed.
Detect this two ways - stdin closing and a periodic ppid check - and
run the existing shutdownFn immediately once either fires.
0 commit comments