fastmcp/tests/server
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
..
http Implement TokenVerifier protocol for mcp-python-sdk compatibility 2025-06-26 15:08:31 -04:00
middleware Add production-ready middleware examples with comprehensive tests 2025-06-22 21:57:49 -04:00
openapi Merge branch 'main' into protocol-update 2025-06-26 09:25:39 -04:00
__init__.py restore 1.x code 2025-04-09 11:54:42 -04:00
test_app_state.py Update docs and test 2025-06-20 13:06:48 -04:00
test_auth_integration.py Add audio support 2025-06-14 08:59:48 -04:00
test_context.py Fix formatting per pre-commit hooks 2025-06-19 18:22:02 -04:00
test_file_server.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_import_server.py Fix import prefix behavior 2025-06-19 15:19:31 -04:00
test_logging.py Use anyio.event 2025-05-31 18:12:17 -04:00
test_mount.py Update docs and test 2025-06-20 13:06:48 -04:00
test_proxy.py Update docs and test 2025-06-20 13:06:48 -04:00
test_resource_prefix_formats.py Update tests 2025-06-19 14:05:19 -04:00
test_run_server.py Update tests for prompts 2025-06-04 16:37:41 -04:00
test_server.py Fix import prefix behavior 2025-06-19 15:19:31 -04:00
test_server_interactions.py Fix pyright type checking issues in tests 2025-06-22 09:55:40 -04:00
test_tool_annotations.py Update tests 2025-06-19 14:05:19 -04:00
test_tool_exclude_args.py Update tests 2025-06-19 14:05:19 -04:00