8000 mcp.client.stdio Hangs · Issue #862 · modelcontextprotocol/python-sdk · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}
mcp.client.stdio Hangs #862
Open
Open
@JKChai

Description

@JKChai

Describe the bug

Testing QuickStart client & server examples hang and doesn't proceed.

To Reproduce

  1. Ensure that the client.py from For Client Developers & server.py from For Server Developers are in the same directory.
  2. Execute the code (example shown runs in PowerShell).
# uv execute
> uv run client.py .\server.py # python server
# python execute
> py client.py .\server.py 

Expected behavior

Running the example above should return some texts as shown in the QuickStart example. However, it hangs forever.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 137.0.7151.56

Additional context

I tested mcp.client.sse and it works fine and responded. Therefore, I believe that there is a bug in mcp.client.stdio causing the run to hang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    2CA7 None yet

    Development

    No branches or pull requests

    Issue actions

      0