Connect Claude Code to tools via MCP changedmcp
Nearest release: v2.1.332, published 2 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 24 Nov 2026 19:25 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 24 Nov 2026 19:37 UTC.
Upstream edited
Recorded here
Lines+19added
Lines−9removed
From line
486
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits124to this page, all time
#### Answer an MCP task's question in the cloud
The whole hunk
from line 486, old and new numbered
/
from line 486
486486
487487Some calls never move to the background:
488488
489* Calls from [subagents](https://code.claude.com/docs/en/sub-agents.md); Claude Code backgrounds only main-conversation calls
489* Calls from [subagents](https://code.claude.com/docs/en/sub-agents.md), except an [MCP task in the cloud](#mcp-tasks-in-the-cloud)
490490* Calls to IDE servers
491491* Calls in [non-interactive mode](https://code.claude.com/docs/en/headless.md), unless `CLAUDE_AUTO_BACKGROUND_TASKS` is set to `1`, since a one-shot run can end before the result arrives
492492
from line 494
494494
495495### MCP tasks that run on the server
496496
497An MCP task is a long job, such as a report export or a build, that an MCP server runs itself using the [MCP tasks extension](https://modelcontextprotocol.io/extensions/tasks/overview). Claude's tool call returns once the server accepts the job, so Claude keeps working unless you [make Claude wait](#make-claude-wait-for-the-result-of-an-mcp-task). When the job ends, the transcript says so and Claude gets the result. Ask Claude for it.
497An MCP task is a long job, such as a report export or a build, that an MCP server runs itself using the [MCP tasks extension](https://modelcontextprotocol.io/extensions/tasks/overview). In the main conversation, Claude's tool call returns once the server accepts the job, so Claude keeps working unless you [make Claude wait](#make-claude-wait-for-the-result-of-an-mcp-task). When the job ends, the transcript says so and Claude gets the result. Ask Claude for it.
498498
499499Meanwhile, the footer shows a count such as `1 MCP task`, and Claude Code follows the task by checking its status with the server. A task on a remote server keeps running after you exit. To follow it again, [resume the same session](#exit-clear-or-resume-while-an-mcp-task-runs).
500500
from line 512
512512MCP task <server task id> (<server>/<tool>) completed.
513513```
514514
515The result goes to Claude, not into the transcript, so ask Claude for it. If Claude is idle when the result arrives, Claude starts on it unprompted.
515The result goes to Claude, not into the transcript, so ask Claude for it. If Claude is idle when the result arrives, Claude starts on it unprompted. When a [subagent's call](#requirements-for-mcp-tasks) becomes a task in a terminal session, the subagent waits for the result.
516516
517517#### Answer a question from an MCP task
518518
from line 520
520520
521521Unless you've set Claude to [wait for the result](#make-claude-wait-for-the-result-of-an-mcp-task), press `Esc` in the dialog to answer later. To reopen the question, run `/tasks`, open the task's details, and press `Enter`. Answering later requires Claude Code v2.1.324 or later.
522522
523Use an interactive terminal session for tasks that ask questions, because no dialog opens in these other places:
523Outside an interactive terminal session, check whether you can answer, because some sessions cancel the task:
524524
525525* **[`claude -p`](https://code.claude.com/docs/en/headless) runs and Agent SDK sessions**: Claude Code asks the server to cancel the task, without running your [`Elicitation` hooks](https://code.claude.com/docs/en/hooks#elicitation) or calling the Agent SDK's `onElicitation` callback
526526* **VS Code and local desktop app sessions**: see [MCP tasks in VS Code and the desktop app](#mcp-tasks-in-vs-code-and-desktop)
527* **Cloud sessions and claude.ai chats**: see [Get an MCP task's result in the cloud](#mcp-task-results-in-the-cloud)
527* **Cloud sessions and claude.ai chats**: see [Answer an MCP task's question in the cloud](#mcp-task-questions-in-the-cloud)
528528
529529#### Exit, clear, or resume while an MCP task runs
530530
from line 548
548548 * Terminal CLI sessions, [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md) sessions, and [GitHub Actions](https://code.claude.com/docs/en/github-actions.md) runs have them on v2.1.304 or later
549549 * For the VS Code extension and local sessions in the desktop app, see [MCP tasks in VS Code and the desktop app](#mcp-tasks-in-vs-code-and-desktop)
550550* If [feature-flag fetching is off](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), for example on Amazon Bedrock or with telemetry turned off, you need an interactive terminal session on Claude Code v2.1.317 or later
551* The call comes from the main conversation, not from a [subagent](https://code.claude.com/docs/en/sub-agents.md)
551* The call comes from one of these:
552 * The main conversation
553 * A non-[fork](https://code.claude.com/docs/en/sub-agents.md#fork-the-current-conversation) [subagent](https://code.claude.com/docs/en/sub-agents.md) that the main conversation started, in an interactive terminal session that [fetches feature flags](https://code.claude.com/docs/en/env-vars.md#features-that-need-feature-flag-fetching), on v2.1.331 or later. The server can't be one [defined in the subagent's own file](https://code.claude.com/docs/en/sub-agents.md#scope-mcp-servers-to-a-subagent)
552554* Either the session is interactive, or an [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md) session or a `claude -p` run reading `--input-format stream-json` has:
553555 * [`CLAUDE_AUTO_BACKGROUND_TASKS`](https://code.claude.com/docs/en/env-vars) at `1`
554556 * `CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND` not `1`
from line 580
578580
579581#### MCP tasks in cloud sessions and claude.ai chats
580582
581MCP tasks work in the cloud with [claude.ai connectors](#use-mcp-servers-from-claude-ai) that support them on [protocol revision 2026-07-28](#mcp-client-runtimes). Calls from the main conversation can become tasks in these places:
583MCP tasks work in the cloud with [claude.ai connectors](#use-mcp-servers-from-claude-ai) that support them on [protocol revision 2026-07-28](#mcp-client-runtimes). Tool calls can become tasks in these places:
582584
583585* [Cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) you start yourself in Anthropic-hosted environments
584586* New chats in the [unified Claude experience](https://support.claude.com/en/articles/16761823-claude-cowork-and-chat-are-one-claude) on Pro, Max, Ultra, and Team plans
from line 603
601603* Incognito chats
602604* Claude Code's [cloud scheduled tasks](https://code.claude.com/docs/en/routines.md)
603605
606In cloud sessions and chats that have tasks, a [subagent](https://code.claude.com/docs/en/sub-agents.md)'s call can become a task too. This needs a subagent that the main conversation started and that isn't a [fork](https://code.claude.com/docs/en/sub-agents.md#fork-the-current-conversation). The subagent gets the result if the task ends within two minutes. For a longer task, expect Claude to pick up the result in the main conversation.
607
608#### Answer an MCP task's question in the cloud
609
610When a task asks you a question in a cloud session or chat, select **Allow** on the permission prompt, then answer in the form that opens. If the prompt is denied, or if the form closes before you answer, the task keeps waiting, so ask Claude to show the question again.
611
612You can't answer in the **Cowork** option or in recurring work that you schedule. If Claude reports there, or in any other session or chat, that the question cancelled the task, start the task again from an interactive terminal session.
613
604614#### Check or stop an MCP task in the cloud
605615
606616To check on or stop a running MCP task, ask Claude in the cloud session or claude.ai chat that started it, for example `stop the export task`. In a claude.ai chat on a computer, you can also hover over the tool call that started the task and select **Stop** if it appears.
from line 623
613623
614624If Claude reports one of these problems with the task, take the step that matches its report:
615625
616* **The task was cancelled because it asked you a question**: cloud sessions and chats can't show a task's questions, so run that tool from an interactive terminal session
626* **The task was cancelled because it asked you a question**: you [can't answer](#mcp-task-questions-in-the-cloud) in that session or chat, so start the task again from an interactive terminal session
617627* **Tracking stopped after failed status checks**: the job can still be running, so ask Claude to check it again. If no result follows, ask Claude to find the outcome with the server's other tools
618628* **The server no longer knows the task**: the result may be lost, so ask Claude to find the outcome with the server's other tools before you run the job again
619629* **The task reached the seven-day tracking limit**: the job can still be running. In a cloud session, ask Claude to check it again. In a chat, ask Claude to find the outcome with the server's other tools
from line 729
719729| `failed` | Tells Claude the `message` of the top-level `error` object `{ code, message, data }`, which the tasks extension requires on a failed task. Without that `message`, Claude gets `statusMessage` instead, or else `Task failed` |
720730| `cancelled` | Tells Claude `statusMessage`, or else `Task was cancelled by the server` |
721731| `input_required` | Reads `inputRequests`, an object that maps a key you choose to `{ method, params }`. Claude Code answers each key once through `tasks/update` with `{ taskId, inputResponses }`, where `inputResponses` maps the same key to that request's result. Keys beyond 16 per task are ignored |
722| Methods in `inputRequests` | `elicitation/create` reaches a person only in interactive terminal sessions. `roots/list` is served outside the cloud. Don't depend on it in [cloud sessions and claude.ai chats](#mcp-tasks-in-the-cloud). When Claude Code can't serve a request, it asks the server to cancel the task |
732| Methods in `inputRequests` | `elicitation/create` reaches a person in interactive terminal sessions. For the cloud, see [where a person can answer](#mcp-task-questions-in-the-cloud). `roots/list` is served outside the cloud. Don't depend on it in [cloud sessions and claude.ai chats](#mcp-tasks-in-the-cloud). When Claude Code can't serve a request, it asks the server to cancel the task |
723733| Another `status` value | Claude Code asks the server to cancel the task and reports it to Claude as failed |
724734| JSON-RPC error `-32602` | Read as an unknown task ID. For a task in the background outside the cloud, Claude Code keeps asking for up to five minutes, then reports the outcome to Claude as unknown. In cloud sessions and claude.ai chats, expect about five minutes of retries too, then a report that [the server no longer knows the task](#mcp-task-results-in-the-cloud) |
725735| `tasks/cancel` | Sent, for example, when Claude or the person stops the task while the server is connected. Not sent on exit |
No line in this hunk matches that.