Skip to content

Commit 64a7231

Browse files
authored
Update gradio-client.mdx
The URL referenced, not only in the first section, but in all sections is incorrect, at first it is a link that does not exist anymore, and then localhost is referenced although we have never built this server in previous sections, changed it to the remove server (corrected link) instead.
1 parent 1e6a195 commit 64a7231

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

units/en/unit2/gradio-client.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Let's connect to an example MCP Server that is already running on Hugging Face.
2020
from smolagents.mcp_client import MCPClient
2121

2222
with MCPClient(
23-
{"url": "https://abidlabs-mcp-tools2.hf.space/gradio_api/mcp/sse"}
23+
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse"}
2424
) as tools:
2525
# Tools from the remote server are available
2626
print("\n".join(f"{t.name}: {t.description}" for t in tools))
@@ -64,7 +64,7 @@ Next, we'll connect to the MCP Server and get the tools that we can use to answe
6464

6565
```python
6666
mcp_client = MCPClient(
67-
{"url": "http://localhost:7860/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
67+
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
6868
)
6969
tools = mcp_client.get_tools()
7070
```
@@ -116,7 +116,7 @@ from smolagents import InferenceClientModel, CodeAgent, ToolCollection, MCPClien
116116

117117
try:
118118
mcp_client = MCPClient(
119-
{"url": "http://localhost:7860/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
119+
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
120120
)
121121
tools = mcp_client.get_tools()
122122

@@ -153,7 +153,7 @@ To deploy your Gradio MCP client to Hugging Face Spaces:
153153

154154
```python
155155
mcp_client = MCPClient(
156-
{"url": "http://localhost:7860/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
156+
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
157157
)
158158
```
159159

0 commit comments

Comments
 (0)