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: kill stale MCP processes on reconnect to same endpoint
When MCP clients reconnect (e.g. via /mcp in Claude Code), each
reconnect spawns a new chrome-devtools-mcp process. Multiple CDP
clients on the same debug port cause 'Network.enable timed out'
errors because sessions conflict.
This adds endpoint-based PID lock files. On startup, the server
checks if another instance is already connected to the same
endpoint, sends SIGTERM (with SIGKILL fallback after 1s), waits
for it to die, then acquires the lock. On exit, the lock is
released.
Lock files are keyed by normalized endpoint URL (not just port)
so different hosts on the same port don't collide. Both browserUrl
and wsEndpoint connections are covered.
0 commit comments