fastmcp/tests/deprecated
Jeremiah Lowin e5d9d1f17d
Remove deprecated FastMCP server methods for 4.0
Removes deprecations that shipped replacements in 3.0:
- FastMCP.as_proxy() classmethod -> create_proxy()
- import_server() -> mount()
- mount(prefix=) -> namespace=
- mount(as_proxy=) -> now meaningless; mounts always invoke lifespan/middleware
- add_tool_transformation() -> add_transform(ToolTransform({...}))
- remove_tool_transformation() -> pure no-op that warned callers it had no
  effect; removed entirely
- FastMCP.remove_tool() -> mcp.local_provider.remove_tool()

Also drops the now-unused URI_PATTERN/re import and FastMCPDeprecationWarning
import. The _REMOVED_KWARGS TypeError shim is retained.
2026-07-07 07:53:10 -04:00
..
openapi Move OpenAPI to providers/openapi submodule (#2672) 2025-12-22 11:13:33 -05:00
server Remove deprecated FastMCP() constructor kwargs (#3148) 2026-02-11 11:39:34 -05:00
__init__.py Simplify .key as computed property (#2648) 2025-12-18 14:48:47 -05:00
conftest.py Simplify .key as computed property (#2648) 2025-12-18 14:48:47 -05:00
test_deprecated.py Remove deprecated FastMCP() constructor kwargs (#3148) 2026-02-11 11:39:34 -05:00
test_elicitation.py Deprecate ctx.elicit() without response_type (#3916) 2026-04-13 21:23:31 -04:00
test_exclude_args.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00
test_function_component_imports.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00
test_openapi_deprecations.py perf: reduce PBKDF2 iterations in tests, fix warnings and timeouts (#3504) 2026-03-14 16:42:06 -04:00
test_settings.py Remove deprecated FastMCP() constructor kwargs (#3148) 2026-02-11 11:39:34 -05:00
test_tool_injection_middleware.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_tool_serializer.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00