mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-10-15 09:23:20 +02:00
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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_caching.py | ||
| test_dereference.py | ||
| test_error_handling.py | ||
| test_initialization_middleware.py | ||
| test_logging.py | ||
| test_middleware.py | ||
| test_middleware_nested.py | ||
| test_ping.py | ||
| test_rate_limiting.py | ||
| test_response_limiting.py | ||
| test_timing.py | ||
| test_tool_injection.py | ||