Skip to content

Commit 2011866

Browse files
committed
update gradio page with hf mp server
1 parent 3f8c6f6 commit 2011866

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

units/en/unit1/gradio-mcp.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ When you set `mcp_server=True` in `launch()`, several things happen:
114114

115115
4. **Hosted MCP Servers on 🤗 Spaces**: You can publish your Gradio application for free on Hugging Face Spaces, which will allow you to have a free hosted MCP server. Here's an example of such a Space: https://huggingface.co/spaces/abidlabs/mcp-tools
116116

117+
## Use MCP-compatible Spaces from your client
118+
119+
You can connect any MCP-compatible Space to your assistant via Hugging Face MCP settings:
120+
121+
1. Explore MCP-compatible Spaces: https://huggingface.co/spaces?search=mcp
122+
2. Open https://huggingface.co/settings/mcp (logged in) and add the Space.
123+
3. Restart or refresh your MCP client so it discovers the new tools.
124+
125+
These Spaces expose their functions as tools with arguments and descriptions, so your assistant can call them directly.
126+
117127
## Troubleshooting Tips
118128

119129
1. **Type Hints and Docstrings**: Ensure you provide type hints and valid docstrings for your functions. The docstring should include an "Args:" block with indented parameter names.

0 commit comments

Comments
 (0)