fastmcp/tests/server/tasks
Jeremiah Lowin 87b4a6fb99 Refactor Client class into mixins for better organization
Split the monolithic Client class into focused mixin classes:
- ClientToolsMixin (tools_client.py)
- ClientPromptsMixin (prompts.py)
- ClientResourcesMixin (resources.py)
- ClientTaskManagementMixin (task_management.py)

Also:
- Extract timeout normalization helpers to utilities/timeout.py
- Split SSETransport into its own module (transports/sse.py)
- Clean up unused imports across client modules
- Fix bare except clauses to catch specific McpError

Note: ty reports unresolved-attribute errors on mixin classes because
it doesn't understand that mixins will be composed with Client. This is
a known limitation of mixin typing in Python. The code is functionally
correct and all tests pass.
2026-01-19 09:21:38 -05:00
..
__init__.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
conftest.py Remove enable_tasks setting, enable task protocol by default 2025-12-09 09:34:42 -05:00
test_custom_subclass_tasks.py Add component versioning and VersionFilter transform (#2894) 2026-01-16 20:53:18 -05:00
test_progress_dependency.py Remove enable_docket setting; Docket is now always on 2025-12-05 11:40:04 -05:00
test_resource_task_meta_parameter.py Add task_meta to prompts and centralize fn_key enrichment (#2751) 2025-12-26 15:04:25 -05:00
test_server_tasks_parameter.py Add component versioning and VersionFilter transform (#2894) 2026-01-16 20:53:18 -05:00
test_sync_function_task_disabled.py Decorators return functions instead of component objects (#2856) 2026-01-12 21:58:07 -05:00
test_task_capabilities.py Fix task capabilities location (issue #2870) 2026-01-13 22:26:13 -05:00
test_task_config.py Unify component storage in LocalProvider (#2680) 2025-12-23 19:24:09 -05:00
test_task_dependencies.py Add loq file size limits and clean up type ignores (#2859) 2026-01-13 07:29:12 -05:00
test_task_meta_parameter.py Add loq file size limits and clean up type ignores (#2859) 2026-01-13 07:29:12 -05:00
test_task_metadata.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_methods.py Bump pydocket to 0.16.2 for task cancellation support 2025-12-23 14:43:09 -05:00
test_task_mount.py Add task_meta to prompts and centralize fn_key enrichment (#2751) 2025-12-26 15:04:25 -05:00
test_task_prompts.py Refactor Client class into mixins for better organization 2026-01-19 09:21:38 -05:00
test_task_protocol.py Remove enable_tasks setting, enable task protocol by default 2025-12-09 09:34:42 -05:00
test_task_proxy.py Refactor FastMCPProxy into ProxyProvider (#2669) 2025-12-21 21:30:03 -05:00
test_task_resources.py Refactor Client class into mixins for better organization 2026-01-19 09:21:38 -05:00
test_task_return_types.py Introduce ResourceResult as canonical resource return type (#2734) 2025-12-25 21:21:55 -05:00
test_task_security.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_status_notifications.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_tools.py Refactor Client class into mixins for better organization 2026-01-19 09:21:38 -05:00
test_task_ttl.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00