仅保留mcp2.x行为
This commit is contained in:
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()
|
||||||
|
|||||||
Reference in new issue
Block a user