fastmcp/tests/server/middleware
Jeremiah Lowin de14ed1b7c
Audit mode="legacy" pins in server tests and top-level stragglers
Removes pins added while making the auto-default suite pass that weren't
actually testing older-protocol-only behavior, and keeps (with a stated
reason) the ones that are. Along the way, fixes two real defects the audit
surfaced in the modern protocol path: PingMiddleware could leak a
_active_sessions entry when a connection's exit_stack closed before its
keepalive task got its first scheduler turn, and FastMCP(experimental_
capabilities=...) was silently dropped from server/discover responses
(it only ever reached the legacy initialize handshake).
2026-07-20 16:00:27 -04:00
..
__init__.py Add single-component methods 2025-06-18 19:47:19 -04:00
test_caching.py Default fastmcp.Client to mode="auto"; surface extensions=/result_claims= 2026-07-19 21:22:49 -04:00
test_dereference.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_error_handling.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_initialization_middleware.py Audit mode="legacy" pins in server tests and top-level stragglers 2026-07-20 16:00:27 -04:00
test_logging.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_message_visibility.py Audit mode="legacy" pins in server tests and top-level stragglers 2026-07-20 16:00:27 -04:00
test_middleware.py Audit mode="legacy" pins in server tests and top-level stragglers 2026-07-20 16:00:27 -04:00
test_middleware_nested.py Audit mode="legacy" pins in server tests and top-level stragglers 2026-07-20 16:00:27 -04:00
test_ping.py Audit mode="legacy" pins in server tests and top-level stragglers 2026-07-20 16:00:27 -04:00
test_rate_limiting.py Make the unit suite fast: in-process HTTP tests, no real sleeps, parallel Windows CI (#4554) 2026-07-20 10:51:14 -04:00
test_response_limiting.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_timing.py Consolidate test fixtures and refactor large test files (#2941) 2026-01-19 15:18:35 -05:00
test_tool_injection.py Default fastmcp.Client to mode="auto"; surface extensions=/result_claims= 2026-07-19 21:22:49 -04:00