Remove 3.x-era compatibility shims (#4661)

* Remove 3.x-era compatibility shims

* Require response_type in ctx.elicit()

* Name the utilities path for the two non-re-exported auth helpers

* Point sampling handler migration at its submodule
This commit is contained in:
Jeremiah Lowin 2026-07-27 14:59:43 -04:00 committed by GitHub
commit ea7fb8cb2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 150 additions and 285 deletions

View file

@ -250,7 +250,7 @@ Here's a minimal example:
from fastmcp.experimental.transforms.code_mode import CodeMode
from fastmcp.experimental.transforms.code_mode import GetToolCatalog, GetSchemas
from fastmcp.server.context import Context
from fastmcp.tools.tool import Tool
from fastmcp.tools import Tool
def list_all_tools(get_catalog: GetToolCatalog) -> Tool:
async def list_tools(ctx: Context) -> str: