Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ from smolagents.mcp_client import MCPClient
|
|
| 5 |
|
| 6 |
# Use a 'with' block to ensure proper disconnection
|
| 7 |
# Use 'with' for safe connection/disconnection
|
| 8 |
-
|
| 9 |
-
"url": "https://abidlabs-mcp-tools.hf.space",
|
| 10 |
-
"transport": "
|
| 11 |
}) as mcp_client: # Fetch the available tools from the remote MCP server
|
| 12 |
tools = mcp_client.get_tools()
|
| 13 |
|
|
|
|
| 5 |
|
| 6 |
# Use a 'with' block to ensure proper disconnection
|
| 7 |
# Use 'with' for safe connection/disconnection
|
| 8 |
+
MCPClient({
|
| 9 |
+
"url": "https://abidlabs-mcp-tools.hf.space/gradio_api/mcp",
|
| 10 |
+
"transport": "streamable-http"
|
| 11 |
}) as mcp_client: # Fetch the available tools from the remote MCP server
|
| 12 |
tools = mcp_client.get_tools()
|
| 13 |
|