fastmcp/tests
Jeremiah Lowin b98b080c98 Implement TokenVerifier protocol for mcp-python-sdk compatibility
Fixes breaking changes from mcp-python-sdk PR #982 which updated
BearerAuthBackend to use TokenVerifier protocol instead of OAuth providers.

Changes:
- Add verify_token() method to BearerAuthProvider implementing TokenVerifier protocol
- Add verify_token() method to InMemoryOAuthProvider implementing TokenVerifier protocol
- Update BearerAuthBackend usage in setup_auth_middleware_and_routes() to pass TokenVerifier
- Add comprehensive unit tests for TokenVerifier implementations
- Add integration tests for BearerAuthBackend with TokenVerifier
- Add tests for HTTP auth setup functions

All existing functionality preserved with full backwards compatibility.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-26 15:08:31 -04:00
..
auth Implement TokenVerifier protocol for mcp-python-sdk compatibility 2025-06-26 15:08:31 -04:00
cli Alias streamable-http as http 2025-06-22 20:00:11 -04:00
client Update test_streamable_http.py 2025-06-22 20:08:36 -04:00
contrib Add audio support 2025-06-14 08:59:48 -04:00
deprecated Add http as an alias for streamable http 2025-06-22 18:35:28 -04:00
prompts Fix pyright type checking issues in tests 2025-06-22 09:55:40 -04:00
resources Update docs and tests 2025-06-19 17:06:54 -04:00
server Implement TokenVerifier protocol for mcp-python-sdk compatibility 2025-06-26 15:08:31 -04:00
test_servers Update tests for prompts 2025-06-04 16:37:41 -04:00
tools Update types and tests for upcoming SDK release 2025-06-20 09:56:21 -04:00
utilities Fix external schema reference handling in OpenAPI parser 2025-06-25 21:25:06 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Only apply log config to FastMCP loggers 2025-04-14 15:45:05 -04:00
test_examples.py Update test typing 2025-05-31 20:41:18 -04:00