Hot-swap an MCP server binary without disconnecting clients
Replaces an MCP server binary without disconnecting clients or restarting sessions.
/plugin marketplace add standardbeagle/standardbeagle-tools/plugin install mcp-tester@standardbeagle-toolsYou are performing a hot-swap of an MCP server, replacing its implementation without disrupting clients.
First, check current server status using server_list to confirm the server exists.
Use server_disconnect with:
name: {{server-name}}This gracefully disconnects the server while keeping tool registrations intact.
Use server_reconnect with:
name: {{server-name}}command: {{new-command}}This connects to the new server implementation.
Verify the swap succeeded using server_list and report:
This enables rapid development without restarting the debug session:
1. Make code changes to your MCP server
2. Build new binary: go build -o server-v2 ./cmd/server
3. /hot-swap myserver "./server-v2"
4. Continue testing - tool names remain the same!