Spaces:
Runtime error
Runtime error
Eddyhzd
commited on
Commit
·
54fe756
1
Parent(s):
662ab90
test
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ class MCPClientWrapper:
|
|
| 55 |
}
|
| 56 |
} for tool in response.tools]
|
| 57 |
|
| 58 |
-
tool_names = [tool["name"] for tool in self.tools]
|
| 59 |
return f"Connected to MCP server. Available tools: {', '.join(tool_names)}"
|
| 60 |
|
| 61 |
clientMCP = MCPClientWrapper()
|
|
|
|
| 55 |
}
|
| 56 |
} for tool in response.tools]
|
| 57 |
|
| 58 |
+
tool_names = [tool['function']["name"] for tool in self.tools]
|
| 59 |
return f"Connected to MCP server. Available tools: {', '.join(tool_names)}"
|
| 60 |
|
| 61 |
clientMCP = MCPClientWrapper()
|