mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 22:32:04 +00:00
On Windows, MCP server processes spawned via 'cmd /c npx' weren't being properly terminated after testing, causing orphaned processes that would spam logs with "FastMCP warning: server is not responding to ping". Root cause: client.close() kills only the parent cmd.exe, orphaning child node.exe processes. taskkill /t needs the parent PID to traverse the tree. Fix: Run taskkill BEFORE client.close() so the parent PID still exists when we kill the process tree. - Add execSync import for taskkill execution - Add IS_WINDOWS constant for platform check - Create cleanupConnection() method with proper termination order - Add comprehensive documentation in docs/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>