Skip to content

Commit 3b87be4

Browse files
authored
Merge pull request #72 from neonwatty/main
Unit 1 update gradio mcp client endpoint to work around mcp 1.9.0 breaking change
2 parents 1578e8c + 860758e commit 3b87be4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

units/vi/unit1/mcp-clients.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Chúng ta cũng có thể kết nối đến Server MCP được host trên máy
302302
from smolagents.mcp_client import MCPClient
303303

304304
with MCPClient(
305-
{"url": "https://abidlabs-mcp-tools.hf.space/gradio_api/mcp/sse"}
305+
{"url": "https://abidlabs-mcp-tools2.hf.space/gradio_api/mcp/sse"}
306306
) as tools:
307307
# Tools from the remote server are available
308308
print("\n".join(f"{t.name}: {t.description}" for t in tools))
@@ -312,7 +312,7 @@ with MCPClient(
312312
from smolagents.mcp_client import MCPClient
313313

314314
with MCPClient(
315-
{"url": "https://abidlabs-mcp-tools.hf.space/gradio_api/mcp/sse"}
315+
{"url": "https://abidlabs-mcp-tools2.hf.space/gradio_api/mcp/sse"}
316316
) as tools:
317317
# Tools from the remote server are available
318318
print("\n".join(f"{t.name}: {t.description}" for t in tools))
@@ -419,4 +419,4 @@ Giờ bạn đã hiểu về MCP Client, hãy sẵn sàng để:
419419
* Tìm hiểu về cách tạo MCP Client tùy chỉnh
420420
* Đi sâu vào các mẫu tích hợp MCP nâng cao
421421

422-
Hãy tiếp tục hành trình của chúng ta vào thế giới của Giao Thức Ngữ Cảnh Mô Hình!
422+
Hãy tiếp tục hành trình của chúng ta vào thế giới của Giao Thức Ngữ Cảnh Mô Hình!

0 commit comments

Comments
 (0)