mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +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. |
||
|---|---|---|
| .. | ||
| cli | ||
| client | ||
| contrib | ||
| deprecated | ||
| experimental | ||
| fs | ||
| integration_tests | ||
| prompts | ||
| resources | ||
| server | ||
| telemetry | ||
| tools | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_mcp_config.py | ||