python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

mcp.client.stdio Hangs

Open JKChai opened this issue 8 months ago • 0 comments

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.

JKChai avatar May 30 '25 17:05 JKChai