Skip to content

Connection is lost after changing network on running mcp server #136

@IAkumaI

Description

@IAkumaI

How to reproduce:

  1. Run Cursor/whatever and add the mcp (stdio in my case via uvx)
  2. Test MCP via your agent - it works fine
  3. Switch network, turn on/off vpn or wi-fi just to cause connection lost.
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions