Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

docs: fix ProxyProvider docstring example using nonexistent with_namespace() (#4633)

andrew-stelmach-fleetcaadfe641334
diff --git a/fastmcp_slim/fastmcp/server/providers/proxy.py b/fastmcp_slim/fastmcp/server/providers/proxy.py
index 32745d36a..78f1b1f17 100644
--- a/fastmcp_slim/fastmcp/server/providers/proxy.py
+++ b/fastmcp_slim/fastmcp/server/providers/proxy.py
@@ -708,8 +708,8 @@ class ProxyProvider(Provider):
mcp = FastMCP("Proxy Server")
mcp.add_provider(proxy)
- # Can also add with namespace
- mcp.add_provider(proxy.with_namespace("remote"))
+ # Can also add with a namespace
+ mcp.add_provider(proxy, namespace="remote")
```
"""