File python3.patch of Package python-langchain-mcp-adapters
Index: langchain_mcp_adapters-0.1.9/tests/test_client.py
===================================================================
--- langchain_mcp_adapters-0.1.9.orig/tests/test_client.py
+++ langchain_mcp_adapters-0.1.9/tests/test_client.py
@@ -23,8 +23,8 @@ async def test_multi_server_mcp_client(
client = MultiServerMCPClient(
{
- "math": {"command": "python", "args": [math_server_path], "transport": "stdio"},
- "weather": {"command": "python", "args": [weather_server_path], "transport": "stdio"},
+ "math": {"command": "python3", "args": [math_server_path], "transport": "stdio"},
+ "weather": {"command": "python3", "args": [weather_server_path], "transport": "stdio"},
"time": {"url": f"ws://127.0.0.1:{websocket_server_port}/ws", "transport": "websocket"},
},
)
@@ -93,7 +93,7 @@ async def test_multi_server_connect_meth
# Initialize client without initial connections
client = MultiServerMCPClient(
{
- "math": {"command": "python", "args": [math_server_path], "transport": "stdio"},
+ "math": {"command": "python3", "args": [math_server_path], "transport": "stdio"},
"time": {"url": f"ws://127.0.0.1:{websocket_server_port}/ws", "transport": "websocket"},
},
)
@@ -127,7 +127,7 @@ async def test_get_prompt():
math_server_path = os.path.join(current_dir, "servers/math_server.py")
client = MultiServerMCPClient(
- {"math": {"command": "python", "args": [math_server_path], "transport": "stdio"}},
+ {"math": {"command": "python3", "args": [math_server_path], "transport": "stdio"}},
)
# Test getting a prompt from the math server
messages = await client.get_prompt(