Skip to content

await mcp.client.stdio.stdio_client has no return with mcp 1.9.0 #785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ch-zgh-1993 opened this issue May 22, 2025 · 0 comments
Open

Comments

@ch-zgh-1993
Copy link

This is debug log, and use mcp 1.9.0, use Python SDK visit Nodejs MCP with StdioServerParameters。 Please tell me the reason? what i can do. Thank you !!

MCP-DEBUG] Starting stdout_reader...
[MCP-DEBUG] Starting to read from process stdout...
[MCP-DEBUG] Starting stdin_writer...
[MCP-DEBUG] Starting to write to process stdin...
[MCP-DEBUG] Writing message: SessionMessage(message=JSONRPCMessage(root=JSONRPCRequest(method='initialize', params={'protocolVersion': '2025-03-26', 'capabilities': {'sampling': {}, 'roots': {'listChanged': True}}, 'clientInfo': {'name': 'mcp', 'version': '0.1.0'}}, jsonrpc='2.0', id=0)), metadata=None)
[MCP-DEBUG] Sending to process: SessionMessage(message=JSONRPCMessage(root=JSONRPCRequest(method='initialize', params={'protocolVersion': '2025-03-26', 'capabilities': {'sampling': {}, 'roots': {'listChanged': True}}, 'clientInfo': {'name': 'mcp', 'version': '0.1.0'}}, jsonrpc='2.0', id=0)), metadata=None)
send_request1 None
[MCP-DEBUG] Received chunk: {"result":{"protocolVersion":"2025-03-26","capabilities":{"tools":{"listChanged":true}},"serverInfo":{"name":"MasterGoMcpServer","version":"0.0.1"}},"jsonrpc":"2.0","id":0}

[MCP-DEBUG] Received from process: {"result":{"protocolVersion":"2025-03-26","capabilities":{"tools":{"listChanged":true}},"serverInfo":{"name":"MasterGoMcpServer","version":"0.0.1"}},"jsonrpc":"2.0","id":0}

[MCP-DEBUG] Parsed message: root=JSONRPCResponse(jsonrpc='2.0', id=0, result={'protocolVersion': '2025-03-26', 'capabilities': {'tools': {'listChanged': True}}, 'serverInfo': {'name': 'MasterGoMcpServer', 'version': '0.0.1'}})
[MCP-DEBUG] Before send - read_stream_writer state: MemoryObjectStreamState(max_buffer_size=0, buffer=deque([]), open_send_channels=1, open_receive_channels=1, waiting_receivers=OrderedDict(), waiting_senders=OrderedDict())
[MCP-DEBUG] Before send - session_message: SessionMessage(message=JSONRPCMessage(root=JSONRPCResponse(jsonrpc='2.0', id=0, result={'protocolVersion': '2025-03-26', 'capabilities': {'tools': {'listChanged': True}}, 'serverInfo': {'name': 'MasterGoMcpServer', 'version': '0.0.1'}})), metadata=None)
[MCP-DEBUG] Attempting to send session message...
[MCP-DEBUG] Process state: <Process 94270>
[MCP-DEBUG] Process returncode: None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant