π The fast, Pythonic way to build MCP servers and clients.
Remove deprecated proxy creation (#1186)
Jeremiah Lowin1c20ad77c9fa
diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.pyindex 626fbe53a..240c29a26 100644--- a/src/fastmcp/server/server.py+++ b/src/fastmcp/server/server.py@@ -1662,8 +1662,7 @@ class FastMCP(Generic[LifespanResultT]):resource_separator: Deprecated. Separator character for resource URIs.prompt_separator: Deprecated. Separator character for prompt names."""- from fastmcp.client.transports import FastMCPTransport- from fastmcp.server.proxy import FastMCPProxy, ProxyClient+ from fastmcp.server.proxy import FastMCPProxy# Deprecated since 2.9.0# Prior to 2.9.0, the first positional argument was the prefix and the@@ -1715,7 +1714,7 @@ class FastMCP(Generic[LifespanResultT]):as_proxy = server._has_lifespanif as_proxy and not isinstance(server, FastMCPProxy):- server = FastMCPProxy(ProxyClient(transport=FastMCPTransport(server)))+ server = FastMCP.as_proxy(server)# Delegate mounting to all three managersmounted_server = MountedServer(