This is an automated email from the ASF dual-hosted git repository.

freeoneplus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-mcp-server.git


The following commit(s) were added to refs/heads/master by this push:
     new 9bb5b17  [Chore]Fixes client startup errors (#27)
9bb5b17 is described below

commit 9bb5b171994608797530f29c8ed4bebe2ced53c6
Author: ivin <[email protected]>
AuthorDate: Tue Jul 15 13:58:44 2025 +0800

    [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()) 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to