fastmcp/tests/server/middleware
Chris Guidry 0afa02908e Make read_resource test flexible for MCP version differences
MCP 1.26+ includes "meta":null in serialization, earlier versions don't.
Parse JSON and check the meaningful fields instead of exact string match.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 16:48:23 -05:00
..
__init__.py Add single-component methods 2025-06-18 19:47:19 -04:00
test_caching.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_error_handling.py fix: check the cause of the tool error (#2674) 2025-12-23 18:00:25 -05:00
test_initialization_middleware.py feat: handle error from the initialize middleware (#2531) 2025-12-10 15:51:51 -05:00
test_logging.py refactor: move task attribute to function-based variants only [SEP-1686] (#2560) 2025-12-05 21:05:42 -05:00
test_middleware.py Support initialize requests in middleware (#1546) 2025-10-05 10:20:13 -04:00
test_rate_limiting.py Support initialize requests in middleware (#1546) 2025-10-05 10:20:13 -04:00
test_timing.py Use lowercase namespace for fastmcp logger (#1791) 2025-09-26 12:13:02 -04:00
test_tool_injection.py Make read_resource test flexible for MCP version differences 2026-01-25 16:48:23 -05:00