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: prevent duplicate MCP server instances on refresh/restart
- Added proper cleanup in restartConnection to ensure old instances are fully closed
- Added safeguards in connectToServer to check for existing connections
- Improved deleteConnection to handle null checks for transport and client
- Added delays to ensure cleanup completes before creating new connections
This fixes the issue where refreshing MCP servers or clicking the refresh button
on individual servers was causing new instances to start without closing old ones.
0 commit comments