diff --git a/trae_agent/utils/mcp_client.py b/trae_agent/utils/mcp_client.py index 3e89e5798..e6a4dd6b6 100644 --- a/trae_agent/utils/mcp_client.py +++ b/trae_agent/utils/mcp_client.py @@ -68,8 +68,8 @@ async def connect_and_discover( for tool in mcp_tools.tools: mcp_tool = MCPTool(self, tool, model_provider) mcp_tools_container.append(mcp_tool) - except Exception as e: - raise e + except Exception: + raise async def connect_to_server(self, mcp_server_name, transport): """Connect to an MCP server