fastmcp.server.tasks.handlers
SEP-1686 task execution handlers.
Handles queuing tool/prompt/resource executions to Docket as background tasks.
Functions
submit_to_docket
task_type: Component type for task key constructionkey: The component key as seen by MCP layer (with namespace prefix)component: The component instance (Tool, Resource, ResourceTemplate, Prompt)arguments: Arguments/params (None for Resource which has no args)task_meta: Task execution metadata. If task_meta.ttl is provided, it overrides the server default (docket.execution_ttl).
- Task stub with proper Task object

