[MCP] Adopt MCP Tasks so long run_agent can outlive the host session
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start by reading #74 and #83, then inspect the MCP server and existing run_agent tests to find the pinned MCP version, capability handling, and cancellation path. First determine whether MCP Tasks are possible on MCP 1.x; if not, record the blocker. Done means task-capable clients get task status and cancellation for run_agent, other clients retain synchronous behavior, contract tests cover both paths, and docs/skills.md documents verified host settings.
索引モデルが issue の本文から書いたものです。
説明
Why
#83 (merged) keeps a long run_agent inside the current host request: progress notifications, a bounded lock wait, cancellation, and documented host timeout settings. That still assumes the tool call is one open request the host waits on.
In late October 2026 hosts moved past that model. Claude Code v2.1.304+ (public beta, protocol revision 2026-07-28) can turn a long MCP tool into a server-side task: the tools/call returns as soon as the server accepts the job, the job keeps running on the server, and the client polls status (including across /resume). Coverage and the six host-side config decisions: MCP tasks landed in Claude Code (2026-10-26). Related industry notes on progress resetting client timeouts (still useful alongside tasks): MCP “Request timed out” (-32001) on long tools (tested 2026-10-09).
run_agent is exactly the long call (Allrecipes budgets 300 s; the README chat-model Allrecipes run was 138.7 s). Today s1a-mcp is pinned to mcp>=1.26,<2 because openjiuwen / fastmcp still need mcp 1.x (#74). MCP Tasks need the 2026-07-28 revision and a server that answers with a task when the client declares io.modelcontextprotocol/tasks.
Proposed scope (one PR, opt-in)
- Spike whether Tasks can land while staying on mcp 1.x, or whether the mcp 2 / fastmcp 4 move from #74 is a hard prerequisite; record the blocker in the issue if so.
- If feasible: make
run_agent(and only that tool) return an MCP task when the client advertises task support; keep today's synchronous path when it does not. - Progress / status updates on the task; cancel maps to the existing cancellation path from #83.
- Document Claude Code / Codex settings for Tasks vs plain tool timeouts in
docs/skills.md(link the host docs; do not invent host flags). - Contract tests with a fake client capability blob: task path vs sync path; no live browser required.
Acceptance criteria
- With a client that does not advertise tasks, behaviour matches today (existing MCP tests pass).
- With a client that does,
run_agentaccepts and reports a task id / status without holding the original request open for the full browser budget. - Cancel stops the agent within the same bounds as #83.
- Skills / README name which hosts were verified and which still need a raised
tool_timeoutonly.
Out of scope
- Reworking
decide/list_agentsinto tasks. - Lifting the mcp pin for its own sake (only if Tasks require it; otherwise leave #74's follow-up alone).
- Guaranteeing every host (Codex, Cursor, Claude desktop) supports Tasks — document what does.
References
- Claude Code MCP tasks write-up: https://dev.to/piekwerk/mcp-tasks-landed-in-claude-code-a-tool-call-can-now-outlive-your-session-and-6-config-decisions-2l5k
- Progress / timeout reset measurements: https://nandanpriyadarshi.medium.com/mcp-request-timed-out-32001-on-long-tools-when-progress-notifications-help-6ebbdb9234ab
- Related: #83 (in-session progress), #74 (mcp<2 pin), #82 (tool titles / schemas)
- 主要言語
- Python
- スター
- 120
- フォーク
- 21
- 平均マージ
- 17時間 13分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ThinkFlowLab/system1-agents のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
ThinkFlowLab/system1-agents#129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ThinkFlowLab/system1-agents#130 ·
メンテナーはふだん 1 日以内に返信
-
[Eval] Measure cross-question interference when decide_many bundles questions対応中かも @Birfy が 3 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
ThinkFlowLab/system1-agents#127 ·
メンテナーはふだん 1 日以内に返信
-
[Feat] Add Cloudflare Clef / Clef-flash as a System One decision backend対応中かも @Birfy が今日担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
ThinkFlowLab/system1-agents#126 ·
メンテナーはふだん 1 日以内に返信
-
[Eval] Measure a pre-execution tool-call gate (Jev noul on BEFORE_TOOL_CALL) on TS-Bench step-level labels対応中かも @Birfy が 10 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
ThinkFlowLab/system1-agents#122 ·
メンテナーはふだん 1 日以内に返信
ThinkFlowLab/system1-agents の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capture対応中かも @jianyx1 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
volcengine/OpenViking#8354 ·
メンテナーはふだん 1 日以内に返信
-
comp/tools P2 tool/skills type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#159541 ·
メンテナーはふだん 1 日以内に返信
-
bot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
request-theme
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
LizardByte/ThemerrDB#10167 · コメント 1 件 ·