fastmcp/tests/contrib
Jeremiah Lowin 9af56e5fe4
[3.x] Include resource metadata in component manager auth challenges (#5435)
The component manager's auth wrapper now builds its `RequireAuthMiddleware` with the same protected-resource metadata URL as the MCP endpoint, so a request without credentials receives a `WWW-Authenticate` challenge that includes `resource_metadata` for OAuth-backed servers that have a `base_url` or `resource_base_url`. Servers without one still return a plain 401. When the serving app is not a FastMCP app there is no known MCP path, so no metadata URL is added.

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-04 10:04:26 -04:00
..
__init__.py Updates based on PR Feedback 2025-04-16 23:30:09 -05:00
test_bulk_tool_caller.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00
test_component_manager.py [3.x] Include resource metadata in component manager auth challenges (#5435) 2026-10-04 10:04:26 -04:00
test_mcp_mixin.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00