You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add typed client task functions in mcp.client.tasks
The private driver module becomes the public mcp.client.tasks: get_task,
wait_task, update_task, and cancel_task are typed free functions over
ClientSession, so manually driving a task no longer means hand-building
wire requests. wait_task accepts a bare task id (the persist-and-resume
shape -- task ids are bearer capabilities that survive reconnects) or
the CreateTaskResult, which additionally seeds the poll-interval
fallback; the polling loop now exists once, shared with the
TasksExtension claim resolver. update_task and cancel_task hide the
empty acknowledgement and return None. The task errors gain a common
TaskError base (one except arm for any non-completion) and pickle
support, since they are public API. The manual-driving docs, story leg,
and tutorial are rewritten onto the functions.
0 commit comments