stdio-supervisor: Fixes MCP Server Orphaned Process Leaks
ItsDeadWeight · reddit · 2026-08-19
The author released stdio-supervisor, a zero-dependency utility to address the common issue of orphaned child processes in MCP (Model Context Protocol) servers. This issue often arises when tools like npx fork real servers as children, making standard PID killing ineffective.
Key features:
- Process Tree Management: Kills the entire process tree on stop (taskkill /T on Windows, process group signaling on POSIX).
- Auto-restart: Restarts crashed processes with capped backoff.
- Platform Compatibility: Handles Windows .cmd shim and argv quoting.
- Stream Handling: Frames stdout into whole lines.
- Lifecycle Hooks: Provides onSpawn for start/restart events to facilitate re-handshakes.
The tool is MIT-licensed, protocol-agnostic, and focuses solely on spawning and managing stdio children.
More from coding & agent
- Tutorial: Integrate Kimi K3 into Claude Code Workflow — Arindam_1729 · 2026-08-19
- You called it a "wrapper," now you call it a "harness" — what are you dismissing with thought-terminating clichés? — amplifiedamp · 2026-08-19
- "Disposable software" is on the rise: AI-built tools with <1 month shelf life, still positive ROI — nickbaumann_ · 2026-08-19
- Architecting Unified Memory for AI Agents — blaizedsouza · 2026-08-19
- Building a GTM Knowledge Graph Inspired by Karpathy's LLM Wiki — EXM7777 · 2026-08-19
- zod-compiler turns Zod schemas into build-time validation functions, up to 43x faster — hichaelmart · 2026-08-19