Skip to content

Commit 4937594

Browse files
Update gradio-client.mdx
MCPClient has no close() method
1 parent 45b5063 commit 4937594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/en/unit2/gradio-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ try:
104104

105105
demo.launch()
106106
finally:
107-
mcp_client.close()
107+
mcp_client.disconnect()
108108
```
109109

110110
You'll notice that we're closing the MCP Client in the `finally` block. This is important because the MCP Client is a long-lived object that needs to be closed when the program exits.

0 commit comments

Comments
 (0)