v6.2.3
Fix: Concurrent Instance Coexistence (fixes #104)
Problem: When multiple Claude Code sessions used npx -y google-researcher-mcp, they shared the same install directory. The PID lock / pgrep cleanup would kill healthy instances serving other clients.
Fix: Removed the PID lock file and pgrep-based process killing entirely. Orphan prevention is now fully self-contained per process:
- Parent PID monitoring — detects reparenting to PID 1 every 2 seconds
- Stdin EOF detection — catches clean pipe/socket closure
- Stdout EPIPE probe — detects broken unix domain sockets
Each instance only ever terminates itself when its own parent dies. No instance can affect another.
E2E tests now verify:
- Server exits when parent disconnects
- Two concurrent instances coexist without interfering
- No CPU spin on idle server
- One parent dying does NOT kill sibling instances
- No orphan processes leak
Full Changelog: v6.2.2...v6.2.3
📦 Installation
npm install google-researcher-mcp@6.2.3