Repoint tests and examples off removed deprecations

Replaces FastMCP.as_proxy() helper calls with create_proxy(), rewrites the
mount() as_proxy=/prefix= kwarg tests to plain mount() (the params are gone),
and deletes deprecation-only tests for as_proxy() and remove_tool().
This commit is contained in:
Jeremiah Lowin 2026-07-06 21:32:54 -04:00
commit 6a6fdcb2bb
No known key found for this signature in database
11 changed files with 39 additions and 176 deletions

View file

@ -719,8 +719,9 @@ class TestProxy:
@pytest.fixture
def proxy_server(self, mcp_server: FastMCP) -> FastMCP:
from fastmcp.client.transports import FastMCPTransport
from fastmcp.server import create_proxy
proxy = FastMCP.as_proxy(FastMCPTransport(mcp_server))
proxy = create_proxy(FastMCPTransport(mcp_server))
return proxy
async def test_transform_proxy(self, proxy_server: FastMCP):