Skip to content

[Client] A dead stdio server leaves the client connected #71

Description

@chr-hertel

Since modelcontextprotocol#547 calls to an exited or killed stdio server fail at once, but isConnected() stays true.

php clients/php/repro/stdio-dead-server.php

https://github.com/modelcontextprotocol/php-sdk/blob/9591ad292788f717e8785b282edc2292850a98d4/src/Client/Transport/StdioTransport.php#L249 marks the request as connection lost, but nothing resets the client state. Same shape as the HTTP case with the 404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions