
A long job on an MCP server, like a report export or a build, no longer holds up your session. When the server runs a tool call as a task, Claude Code moves it to the background right away, Claude keeps working, and the result comes back when the job ends.
See and stop tasks in /tasks. A task on a remote server keeps running after you exit, and resuming the same session picks it up again.
MCP tasks are in public beta in the Claude Code terminal, with a server that supports them and is connected on protocol revision 2026-07-28. VS Code and the desktop app don't have them yet. To make Claude wait instead, set CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND.
