fastmcp/tests/deprecated
Jeremiah Lowin 0f8d1b9e26
[3.x] Resolve injected tools through the server's tool lookup (#5432)
Backports `security/injected-tool-authorization` from main. Tools from `ToolInjectionMiddleware` are listed and resolved by the server's tool lookup, so a tool's `auth` check and every middleware in the chain, including `AuthMiddleware`, apply to them as they do to registered tools, wherever the injection middleware sits. Injected tools also follow their task configuration like registered tools. This also covers the deprecated `PromptToolMiddleware` and `ResourceToolMiddleware`, which build on `ToolInjectionMiddleware`.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-04 10:39:55 -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_add_tool_transformation.py Remove deprecated FastMCP() constructor kwargs (#3148) 2026-02-11 11:39:34 -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_import_server.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 [3.x] Resolve injected tools through the server's tool lookup (#5432) 2026-10-04 10:39:55 -04:00
test_tool_serializer.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00