mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Remove deprecated fastmcp.server.proxy shim (3.0)
This commit is contained in:
parent
6621024ce4
commit
e89763d709
1 changed files with 0 additions and 43 deletions
|
|
@ -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",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue