From e89763d7093d228a96a7c5e5381e976faec0bf98 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 6 Jul 2026 21:22:16 -0400 Subject: [PATCH] Remove deprecated fastmcp.server.proxy shim (3.0) --- fastmcp_slim/fastmcp/server/proxy.py | 43 ---------------------------- 1 file changed, 43 deletions(-) delete mode 100644 fastmcp_slim/fastmcp/server/proxy.py diff --git a/fastmcp_slim/fastmcp/server/proxy.py b/fastmcp_slim/fastmcp/server/proxy.py deleted file mode 100644 index fccfd5041..000000000 --- a/fastmcp_slim/fastmcp/server/proxy.py +++ /dev/null @@ -1,43 +0,0 @@ -"""Backwards compatibility - import from fastmcp.server.providers.proxy instead. - -This module re-exports all proxy-related classes from their new location -at fastmcp.server.providers.proxy. Direct imports from this module are -deprecated and will be removed in a future version. -""" - -from __future__ import annotations - -import warnings - -from fastmcp.exceptions import FastMCPDeprecationWarning - -warnings.warn( - "fastmcp.server.proxy is deprecated. Use fastmcp.server.providers.proxy instead.", - FastMCPDeprecationWarning, - stacklevel=2, -) - -# Re-export everything from the new location -from fastmcp.server.providers.proxy import ( # noqa: E402 - ClientFactoryT, - FastMCPProxy, - ProxyClient, - ProxyPrompt, - ProxyProvider, - ProxyResource, - ProxyTemplate, - ProxyTool, - StatefulProxyClient, -) - -__all__ = [ - "ClientFactoryT", - "FastMCPProxy", - "ProxyClient", - "ProxyPrompt", - "ProxyProvider", - "ProxyResource", - "ProxyTemplate", - "ProxyTool", - "StatefulProxyClient", -]