fastmcp/tests
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
..
apps Add default prefill to FormInput.collect_input (#3937) 2026-04-14 13:23:36 -04:00
cli Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
client Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
conformance Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
contrib Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
deprecated Remove deprecated FastMCP server methods for 4.0 2026-07-07 07:53:10 -04:00
docs Fix broken code examples in docs (#3869) 2026-04-12 12:53:04 -04:00
experimental Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
fs fix(fs): isolate same-named package imports across providers (#4361) 2026-06-24 10:57:01 -04:00
integration_tests Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
prompts Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
resources Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
scripts Exempt maintainers from MRE auto-close (#4220) 2026-05-23 09:02:44 -04:00
server Drive the FastMCP lifespan through the SDK session manager (#4446) 2026-07-07 07:49:16 -04:00
telemetry Use standard traceparent/tracestate keys per OTel MCP semconv (#3221) 2026-02-18 15:51:24 -05:00
tools Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
utilities Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_apps.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_apps_prefab.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_compat.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_exceptions.py Emit one SERVER span per request and adopt spec-correct error codes (#4445) 2026-07-07 07:49:06 -04:00
test_fastmcp_app.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_json_schema_generation.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00
test_mcp_config.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_settings.py Add targeted coverage tests (#4230) 2026-05-25 18:57:28 -04:00