mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
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:
parent
2f992f71ea
commit
caadfe6413
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
```
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue