From 9bb5b171994608797530f29c8ed4bebe2ced53c6 Mon Sep 17 00:00:00 2001 From: ivin <39831719+uchenily@users.noreply.github.com> Date: Tue, 15 Jul 2025 13:58:44 +0800 Subject: [PATCH] [Chore]Fixes client startup errors (#27) --- doris_mcp_client/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doris_mcp_client/client.py b/doris_mcp_client/client.py index f202c01..1f59888 100644 --- a/doris_mcp_client/client.py +++ b/doris_mcp_client/client.py @@ -323,7 +323,7 @@ class DorisUnifiedClient: async with streamablehttp_client( self.config.server_url, timeout=timedelta(seconds=self.config.timeout) - ) as (read, write): + ) as (read, write, _): async with ClientSession(read, write) as session: self.session = session self._init_sub_clients() @@ -463,7 +463,7 @@ async def create_http_client(server_url: str, timeout: int = 60) -> DorisUnified # Example usage async def example_stdio(): """stdio mode example""" - client = await create_stdio_client("python", ["doris_mcp_server/main.py"]) + client = await create_stdio_client("python", ["-m", "doris_mcp_server.main", "--transport", "stdio"]) async def test_client(client: DorisUnifiedClient): # Get server capabilities @@ -506,4 +506,4 @@ if __name__ == "__main__": asyncio.run(example_stdio()) # Run HTTP example - # asyncio.run(example_http()) \ No newline at end of file + # asyncio.run(example_http())