Tasks support (SEP-1686) landed in #1645 for the lowlevel Server API only. MCPServer has no way to return a CreateTaskResult from a @tool()-decorated function, nor does it expose enable_tasks().
This was explicitly deferred during review of #1645 (comment).
Related
Note
The Tasks spec is expected to change significantly in the next spec revision — see the Multi Round-Trip Requests SEP draft, which reworks the Tasks workflow for server-initiated requests (new tasks/input_response method, InputRequests/InputResponses types, new ephemeral/persistent tool split).
AI Disclaimer
Tasks support (SEP-1686) landed in #1645 for the lowlevel
ServerAPI only.MCPServerhas no way to return aCreateTaskResultfrom a@tool()-decorated function, nor does it exposeenable_tasks().This was explicitly deferred during review of #1645 (comment).
Related
executionparameter for task support declaration (spec compliance gap) #2156 — closed; requestedexecutionparam onadd_tool(), but that alone is insufficient without the ability to returnCreateTaskResultexecutionparameter toadd_tool()for task support declaration #2157 — open PR for theexecutionparam (same limitation)enable_tasks()onMCPServer(also insufficient on its own)Note
The Tasks spec is expected to change significantly in the next spec revision — see the Multi Round-Trip Requests SEP draft, which reworks the Tasks workflow for server-initiated requests (new
tasks/input_responsemethod,InputRequests/InputResponsestypes, new ephemeral/persistent tool split).AI Disclaimer