π The fast, Pythonic way to build MCP servers and clients.
Remove deprecated fastmcp.server.apps / server.app shims (3.2)
Jeremiah Lowind1c51ea4db22
diff --git a/docs/apps/low-level.mdx b/docs/apps/low-level.mdxindex 3dd386a65..01eca739e 100644--- a/docs/apps/low-level.mdx+++ b/docs/apps/low-level.mdx@@ -43,7 +43,7 @@ def chart_view() -> str:## AppConfig-`AppConfig` controls how a tool or resource participates in the Apps extension. Import it from `fastmcp.server.apps`:+`AppConfig` controls how a tool or resource participates in the Apps extension. Import it from `fastmcp.apps`:```pythonfrom fastmcp.apps import AppConfigdiff --git a/docs/development/v3-notes/v3-features.mdx b/docs/development/v3-notes/v3-features.mdxindex 74ac5b082..87b8ff762 100644--- a/docs/development/v3-notes/v3-features.mdx+++ b/docs/development/v3-notes/v3-features.mdx@@ -444,7 +444,7 @@ async def dashboard(ctx: Context) -> dict:**Future phases** will add a component DSL for building UIs declaratively, an in-repo renderer, and a `FastMCPApp` class.-Implementation: `fastmcp_slim/fastmcp/server/apps.py` (models and constants), with integration points in `server.py` (decorator parameters), `low_level.py` (extension advertisement), and `context.py` (`client_supports_extension` method).+Implementation: `fastmcp_slim/fastmcp/apps/config.py` (models and constants), with integration points in `server.py` (decorator parameters), `low_level.py` (extension advertisement), and `context.py` (`client_supports_extension` method).---diff --git a/fastmcp_slim/fastmcp/server/app.py b/fastmcp_slim/fastmcp/server/app.pydeleted file mode 100644index ad15d59b1..000000000--- a/fastmcp_slim/fastmcp/server/app.py+++ /dev/null@@ -1,19 +0,0 @@-"""Backward-compatible re-exports from fastmcp.apps.app.--.. deprecated:: 3.2.0- Import from ``fastmcp.apps.app`` or ``fastmcp`` instead.-"""--import warnings--from fastmcp.apps.app import FastMCPApp as FastMCPApp-from fastmcp.apps.app import _dispatch_decorator as _dispatch_decorator-from fastmcp.apps.app import _make_resolver as _make_resolver-from fastmcp.exceptions import FastMCPDeprecationWarning--warnings.warn(- "'fastmcp.server.app' is deprecated. "- "Use 'fastmcp.apps.app' or 'from fastmcp import FastMCPApp' instead.",- FastMCPDeprecationWarning,- stacklevel=2,-)diff --git a/fastmcp_slim/fastmcp/server/apps.py b/fastmcp_slim/fastmcp/server/apps.pydeleted file mode 100644index 57e95ebf7..000000000--- a/fastmcp_slim/fastmcp/server/apps.py+++ /dev/null@@ -1,22 +0,0 @@-"""Backward-compatible re-exports from fastmcp.apps.--.. deprecated:: 3.2.0- Import from ``fastmcp.apps`` instead.-"""--import warnings--from fastmcp.apps.config import UI_EXTENSION_ID as UI_EXTENSION_ID-from fastmcp.apps.config import AppConfig as AppConfig-from fastmcp.apps.config import ResourceCSP as ResourceCSP-from fastmcp.apps.config import ResourcePermissions as ResourcePermissions-from fastmcp.apps.config import app_config_to_meta_dict as app_config_to_meta_dict-from fastmcp.exceptions import FastMCPDeprecationWarning-from fastmcp.utilities.mime import UI_MIME_TYPE as UI_MIME_TYPE-from fastmcp.utilities.mime import resolve_ui_mime_type as resolve_ui_mime_type--warnings.warn(- "'fastmcp.server.apps' is deprecated. Use 'from fastmcp.apps import ...' instead.",- FastMCPDeprecationWarning,- stacklevel=2,-)