fastmcp/tests
Jeremiah Lowin 9f486e5e0c
Add register_with_docket() and add_to_docket() to all components (#2657)
Refactors docket/background task support to be encapsulated within each
component rather than requiring external coordination:

- Move task_config to FastMCPComponent base class (default: forbidden)
- Add register_with_docket(docket) method that components use to register
  themselves, checking task_config internally
- Add add_to_docket() method that handles component-specific calling
  conventions (splatted kwargs vs positional dict)
- Simplify server registration to just call component.register_with_docket()
- Update task handlers to use component.add_to_docket()

This enables custom Tool/Resource/Prompt subclasses to support background
tasks by setting task_config and optionally overriding the docket methods.
2025-12-20 07:47:25 -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 Add register_with_docket() and add_to_docket() to all components (#2657) 2025-12-20 07:47:25 -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