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

The example called proxy.with_namespace("remote"), which is not defined
anywhere in the codebase and raises AttributeError. Namespacing a provider
is done via the add_provider() keyword argument.
This commit is contained in:
andrew-stelmach-fleet 2026-07-26 13:50:13 -04:00 committed by GitHub
commit caadfe6413
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")
```
"""