Skip to content

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

Closed
@ch-zgh-1993

Description

@ch-zgh-1993

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions