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
tasks/get examples under "Task Execution Errors" use "resultType": "task"; prose and schema require "complete" #23
Two example responses in Task Execution Errors show a tasks/get result with "resultType": "task":
specification/2026-07-28/tasks.md:846, in "Example: Task with JSON-RPC execution error"
specification/2026-07-28/tasks.md:870, in "Example: Tool call completed with tool error (isError: true)"
specification/draft/tasks.md has the same text at the same line numbers.
Both are tasks/get responses. The section says so (tasks.md:835: "The tasks/get response SHOULD include a statusMessage…"), and the text after the second example calls it "The tasks/get endpoint" (:889).
The normative text says the opposite:
tasks.md:338: "The resultType field MUST be set to "complete" on this object as it is the standard result shape for the tasks/get request."
tasks.md:102: "Servers MUST NOT set resultType to "task" on result types other than CreateTaskResult."
schema/2026-07-28/schema.ts:224 and schema/draft/schema.ts:224: GetTaskResult has resultType: "complete";.
The other tasks/get examples in the same file already use "complete" (:577, :610, :655, :733, :762).
Why it matters
Implementers copy examples. A client that switches on resultType and treats "task" as "this is a CreateTaskResult, start polling" would handle a terminal tasks/get response as a new task handle. A server built from these examples would break the MUST at :338.
Disclosure per the MCP AI_POLICY.md: this issue was drafted primarily with Claude Code; I reviewed it and checked the cited lines against the spec and schema. The fix is in #25.
Activity
davidscotttufts commentedon Sep 26, 2026
Disclosure per the MCP AI_POLICY.md: this issue was drafted primarily with Claude Code; I reviewed it and checked the cited lines against the spec and schema. The fix is in #25.
docs: tasks/get examples under Task Execution Errors use resultType "…
LucaButBoring commentedon Oct 9, 2026
Apologies for the delay - looks good, thanks for handling this issue 😄