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
{{ message }}
Repository navigation
Commit d19037a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(everything): refuse task tools and tasks/* without the extension with -32021
Copilot round 2 on #5131: the tasks extension requires a -32021 error, with
the extension in data.requiredCapabilities, for a client that does not
declare it, both on a request that cannot be served without a task handle
and on tasks/get, tasks/update and tasks/cancel. McpServer reports a thrown
error from a tool handler as an isError result, so guardTaskTools wraps the
tools/call handler McpServer installs; the factory no longer declares the
tools capability in the constructor (the first registerTool advertises the
same one), so the handler is installed after the guard. The sampling and
form-elicitation requirements of the async task tools are answered the same
way, replacing the isError results added in round 1.
Part of #4852
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
Copy file name to clipboardExpand all lines: src/everything/docs/features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,6 @@ Logging is deprecated as of 2026-07-28 (SEP-2577) and remains available on both
94
94
-`tasks/update`: the client's `inputResponses` to the outstanding input requests;
95
95
-`tasks/cancel`: stop a task that has not finished.
96
96
97
-
An unknown or expired task, an update to a task that is not waiting for input or that answers a request it did not make, and a cancel of a finished task are refused with `-32602`. The task id is a server-minted UUID, so a task lives across requests (each 2026-07-28 HTTP request is served by a fresh server instance) and is reached only through its handle. A task's progress is computed from the clock when it is read, so nothing runs in the background.
97
+
A task tool called by a client whose request does not declare the extension, or the capability its task asks for input with (`sampling` for `trigger-sampling-request-async`, form-mode `elicitation` for `trigger-elicitation-request-async`), is refused with `-32021` (missing required client capability), naming what is missing in `data.requiredCapabilities`; so is a `tasks/*` request from a client without the extension. An unknown or expired task, an update to a task that is not waiting for input or that answers a request it did not make, and a cancel of a finished task are refused with `-32602`. The task id is a server-minted UUID, so a task lives across requests (each 2026-07-28 HTTP request is served by a fresh server instance) and is reached only through its handle. A task's progress is computed from the clock when it is read, so nothing runs in the background.
98
98
99
99
The 2025-11-25 core task methods (`tasks/result`, `tasks/list`, task-augmented requests) are not served: SDK v2 removed the experimental layer they were built on.
0 commit comments