tasks/get examples under "Task Execution Errors" use "resultType": "task"; prose and schema require "complete"
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 95/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- markdown, typescript
調査の方向性
この issue は、specification/2026-07-28/tasks.md と specification/draft/tasks.md の特定の2行を指摘しています。これらの例では誤って "resultType": "task" が使用されています。修正は、diff に示されているように、それらを "resultType": "complete" に変更することです。変更を確認するには、周囲の例と規範的なテキストを確認してください。ドキュメントの linting または検証スクリプトがあれば実行してください。
索引モデルが issue の本文から書いたものです。
説明
What's wrong
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: "TheresultTypefield MUST be set to"complete"on this object as it is the standard result shape for thetasks/getrequest."tasks.md:102: "Servers MUST NOT setresultTypeto"task"on result types other thanCreateTaskResult."schema/2026-07-28/schema.ts:224andschema/draft/schema.ts:224:GetTaskResulthasresultType: "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.
Suggested fix (docs only)
--- a/specification/2026-07-28/tasks.md
+++ b/specification/2026-07-28/tasks.md
@@ -843,7 +843,7 @@
"jsonrpc": "2.0",
"id": 4,
"result": {
- "resultType": "task",
+ "resultType": "complete",
"taskId": "786512e2-9e0d-44bd-8f29-789f820fe840",
"status": "failed",
@@ -867,7 +867,7 @@
"jsonrpc": "2.0",
"id": 5,
"result": {
- "resultType": "task",
+ "resultType": "complete",
"taskId": "786512e2-9e0d-44bd-8f29-789f820fe840",
"status": "completed",
Apply the same two changes to specification/draft/tasks.md (same line numbers). Nothing normative changes.
- 主要言語
- TypeScript
- スター
- 46
- フォーク
- 9
- 平均マージ
- 14日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelcontextprotocol/ext-tasks のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
modelcontextprotocol/ext-tasks#22 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
modelcontextprotocol/ext-tasks#20 · コメント 2 件 ·
-
Stalled tasks オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
modelcontextprotocol/ext-tasks#11 · コメント 2 件 ·
modelcontextprotocol/ext-tasks の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·