Claude CodeMCP 与集成约 2 分钟

让 Claude Code 体检 MCP 任务

Audit your MCP servers for Tasks

要点

  1. MCP Tasks 目前只在终端 CLI(v2.1.304 及以上)公测,VS Code 扩展和桌面版没有。
  2. 子代理发起的调用不会变成任务,长任务要从 CLI 主对话里发起。
  3. 让 Claude Code 先读官方 MCP 文档的 Tasks 与 Elicitation 章节,再检查你连接的服务器和仓库里的服务端代码。
  4. 找出跑几分钟的工具改为返回任务,找出会自动补参数或做不可逆操作的工具改为先发 Elicitation 问你。
  5. 要求逐条列出工具名、现状和最小改动,先看建议,不让它直接改。

原帖开头

Anthropic just added MCP Tasks and Elicitations to Claude Code. You can have Claude Code use the official docs to go through the MCP servers you're connected to and any server code you've written. A server that supports Tasks takes on the long job (running tests, exporting a rep …