耗时十分钟的工具调用,在 MCP 上从来没有真正顺畅运行过。阻塞式请求会超时,连接会中断,而直到本周,每个服务器都不得不靠变通办法勉强应付。Anthropic 刚刚推出了真正的解决方案:MCP Tasks 和 Elicitations,现已在 Claude 上线,并率先在 Claude Code CLI 中推出。 它解决的问题很不起眼,却无处不在。长时间运行的任务,或是需要人类在中途批准某个操作的任务,都会打破每个 MCP 集成暗中依赖的那个假设:请求会在连接超时之前收到响应。Tasks 的解决方式是让服务器返回一个持久有效的任务 ID,而不是阻塞等待。客户端进行轮询,任务处于 working、input_required 或 completed 状态;如果中途需要你介入,elicitation 就会呈现请求,你通过 tasks/update 作答。断开连接、重启,再用同一个 ID 重新连接,什么都不会丢失。 这就是你的后端团队十年前就已经用 Celery 或 Sidekiq 解决的任务队列模式,只不过现在才出现在让智能体与工具通信的协议层。CI 流水线、批量导入、模型训练运行,以及任何云 API 已经当作带 ID 的任务来处理的工作,现在 MCP 服务器都可以用同样的方式封装。 值得把它与 Google 的 A2A 协议放在一起看,后者的支持组织刚刚超过 150 家,而且已经内置于 Azure AI Foundry 和 Bedrock AgentCore。A2A 负责跨公司的智能体间交接。MCP 负责智能体与工具之间的交互。层级不同,方向一致:默认就是异步、持久、可中断,而不是每个团队各自搭建一套变通方案。 我想指出的一个实质性取舍是:取消操作是协作式的。调用 tasks/cancel 只是提出请求,并不是强制终止开关,服务器仍然可能把任务执行完。持久并不意味着可控,把它接入任何会产生副作用的操作的团队,都应该把这一点读两遍。 不过,方向是对的。长时间运行、需要人工审批、持续数小时的智能体工作,不再需要每个团队用自己的轮询层来曲线实现,而是成为协议本身就能处理的事情。 https://x.com/ClaudeDevs/status/2113698001889927608
看原文
A tool call that takes ten minutes has never really worked over MCP. Blocking requests time out, connections drop, and until this week every server had to fake its way around it. Anthropic just shipped the real fix: MCP Tasks and Elicitations, live in Claude and first in the Claude Code CLI. The problem it solves is boring and everywhere. A long job, or one that needs a human to approve something halfway through, breaks the assumption every MCP integration quietly made: that a request gets a response before the connection times out. Tasks fix this by having the server hand back a durable task ID instead of blocking. The client polls, the task sits in working or input_required or completed, and if it needs you mid-flight, an elicitation surfaces the request and you answer through tasks/update. Disconnect, restart, reconnect with the same ID, nothing is lost. This is the job queue pattern your backend team already solved a decade ago with Celery or Sidekiq, just showing up now at the protocol layer that lets agents talk to tools. CI pipelines, batch imports, model training runs, anything a cloud API already treats as a job with an ID, MCP servers can now wrap the same way. Worth placing next to Google's A2A protocol, which just passed 150 supporting organizations and is already built into Azure AI Foundry and Bedrock AgentCore. A2A handles agent to agent handoffs across companies. MCP handles agent to tool. Different layers, same direction: async, durable, interruptible by default instead of a hack every team builds for itself. The part I'd flag as a real tradeoff: cancellation is cooperative. Calling tasks/cancel is a request, not a kill switch, the server can finish anyway. Durable doesn't mean controllable, and teams wiring this into anything with side effects should read that line twice. Still, the direction is right. Long-running, human-gated, multi-hour agent work stops being something every team hacks around with their own polling layer and becomes something the protocol just does. https://x.com/ClaudeDevs/status/2113698001889927608