仅保留mcp2.x行为

This commit is contained in:
Sakura-RanChen committed 2026-10-29 14:17:38 +08:00
1 parent ef2fcdbcb1
commit 01289b8fd4
1 file changed
+1 -1
@@ -107,7 +107,7 @@ class ServerMCPClient:
"function": { "function": {
"name": name, "name": name,
"description": tool.description, "description": tool.description,
"parameters": getattr(tool, "input_schema", None) or getattr(tool, "inputSchema", {}), "parameters": tool.input_schema,
}, },
} }
for name, tool in self.tools_dict.items() for name, tool in self.tools_dict.items()