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
{{ message }}
Repository navigation
Unable to stop mcpproxy server when local command-based upstream servers are running #51
When using local command-based upstream servers (like mongodb-mcp-server executed via npx), the mcpproxy server cannot be properly stopped/terminated. This appears to be different behavior compared to remote server connections, which can be stopped normally.
Expected behavior: mcpproxy server should stop gracefully regardless of upstream server type (local command vs remote server)
Actual behavior: mcpproxy server hangs or fails to terminate when local command-based upstream servers are active
Steps to Reproduce
Configure a local command-based upstream server in mcp_config.json:
Probably some timeout is needed because some mcp's are nasty, and mcpproxy isn't stopping without forced kill, thats true. I mean force kill of the underlying mcp proxies after a timeout
Activity
Alex0007 commentedon Sep 22, 2025
With recent commits it seems like closing mcpproxy now kills MCP servers processes, which is expected behavior
Alex0007 commentedon Oct 16, 2025
Version 0.9.* not closing child MCP processes again
Melodeiro commentedon Oct 27, 2025
Probably some timeout is needed because some mcp's are nasty, and mcpproxy isn't stopping without forced kill, thats true. I mean force kill of the underlying mcp proxies after a timeout
Melodeiro commentedon Oct 28, 2025
Also relevant to #105
fix: Increase subprocess shutdown timeout from 2s to 10s
fix: Improve subprocess shutdown with proper timeout handling
fix: Increase subprocess shutdown timeout from 2s to 10s (#214)
Dumbris commentedon Dec 21, 2025
Hey! The subprocess cleanup was fixed a few versions ago. In #214 we tuned the timeouts and documented everything properly.
Current behavior:
When mcpproxy stops, subprocesses get cleaned up in two phases:
Process groups ensure child processes (spawned by npm/npx) get killed together.
Timeouts:
Docs:
Closing this one out!
fix: Increase subprocess shutdown timeout from 2s to 10s (smart-mcp-p…
feat(oauth): implement token refresh reliability with exponential bac…