mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
* Add supports_tasks() method to replace string mode checks Consolidates task config mode checks into a readable method on TaskConfig. Instead of `task_config.mode == "forbidden"` or `task_config.mode != "forbidden"`, code now uses `task_config.supports_tasks()` for clearer intent. Updated 20 instances across the codebase and added type assertions in tests to resolve type checker warnings. * Update test to match new error message |
||
|---|---|---|
| .. | ||
| cli | ||
| client | ||
| contrib | ||
| deprecated | ||
| experimental | ||
| integration_tests | ||
| prompts | ||
| resources | ||
| server | ||
| tools | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_mcp_config.py | ||