mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-12 00:29:11 +02:00
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. |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_client_prompt_tasks.py | ||
| test_client_resource_tasks.py | ||
| test_client_task_notifications.py | ||
| test_client_task_protocol.py | ||
| test_client_tool_tasks.py | ||
| test_task_context_validation.py | ||
| test_task_result_caching.py | ||