fastmcp/tests
Jeremiah Lowin fc8ba728a8
Use CreateTaskResult for background task creation (#2660)
* Use CreateTaskResult for background task creation

Move result conversion logic to components (convert_result methods) and
return proper CreateTaskResult SDK type from task handlers. Consolidates
MCP protocol handler overrides into server.py with documentation.

* Address CodeRabbit nitpicks

- Add type annotation for resource parameter in handle_resource_as_task
- Move RootModel import to module level in client.py

* Document intentionally unused task_meta parameters

Prefix with underscore to suppress lint warnings. Client TTL will be
configurable via TaskConfig in the future; keeping parameter for API stability.
2025-12-20 20:19:11 -05:00
..
cli Remove enable_docket setting; Docket is now always on 2025-12-05 11:40:04 -05:00
client Convert mounted servers to MountedProvider (#2635) 2025-12-17 22:21:51 -05:00
contrib feat: Add title, annotations and meta to mixin decorators 2025-10-10 14:23:02 +05:30
deprecated Simplify .key as computed property (#2648) 2025-12-18 14:48:47 -05:00
experimental Unify SamplingHandler and promote OpenAI handler (#2616) 2025-12-14 15:22:43 -05:00
integration_tests Improve rate limit detection for integration tests 2025-12-04 11:52:40 -05:00
prompts Revert "Revert "Refactor prompt behavior and add meta support (#2600)" (#2608)" (#2610) 2025-12-14 21:52:20 -05:00
resources Simplify .key as computed property (#2648) 2025-12-18 14:48:47 -05:00
server Use CreateTaskResult for background task creation (#2660) 2025-12-20 20:19:11 -05:00
tools Simplify .key as computed property (#2648) 2025-12-18 14:48:47 -05:00
utilities Simplify .key as computed property (#2648) 2025-12-18 14:48:47 -05:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Use WindowsSelectorEventLoopPolicy to fix Windows test warnings (#2607) 2025-12-14 08:39:44 -05:00
test_mcp_config.py Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00