How to reproduce:
- Run Cursor/whatever and add the mcp (stdio in my case via
uvx)
- Test MCP via your agent - it works fine
- Switch network, turn on/off vpn or wi-fi just to cause connection lost.
- Without restarting the mcp test it again and you get this:
Error: consuming input failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
I do understand the reason: connection WAS lost.
But why there is no reconnection? Or is there any option to auto-reconnect?