python-sdk
python-sdk copied to clipboard
mcp.client.stdio Hangs
Describe the bug
Testing QuickStart client & server examples hang and doesn't proceed.
To Reproduce
- Ensure that the
client.pyfrom For Client Developers &server.pyfrom For Server Developers are in the same directory. - 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.