From 26e1d6c10fc8f853eea91005f227a47625e0f61c Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 1 Sep 2025 03:47:04 +0800 Subject: [PATCH] fix(mcp): Fix the issue where fetching a single serber configuration in the MCP tool also retrieves all tools --- src/common/mcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mcp.py b/src/common/mcp.py index 29b29f1..f28bfb1 100644 --- a/src/common/mcp.py +++ b/src/common/mcp.py @@ -53,7 +53,7 @@ async def get_mcp_tools(server_name: str) -> List[Callable[..., Any]]: return _mcp_tools_cache[server_name] try: - client = await get_mcp_client() + client = await get_mcp_client({server_name: MCP_SERVERS[server_name]}) if client is None: _mcp_tools_cache[server_name] = [] return []