From caadfe641334d6aff92b234cec332919ffbf79a3 Mon Sep 17 00:00:00 2001 From: andrew-stelmach-fleet Date: Sun, 26 Jul 2026 13:50:13 -0400 Subject: [PATCH] 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. --- fastmcp_slim/fastmcp/server/providers/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") ``` """