AI Compass / News
Claude Code 2.1.319: long MCP calls now keep running in the background
Since the 6 November release, Claude Code no longer waits on MCP servers that handle a call as a task. The update also adds a setting against stalled permission prompts and several security fixes.
Source: Claude Code Changelog, Version 2.1.319,
Note: I use Claude and Claude Code for my own work. Anthropic does not pay me, and the links are not affiliate links.


What happened: On 6 November 2026, Anthropic released version 2.1.319 of Claude Code, its coding assistant for the terminal. The main change concerns MCP servers, the extensions that connect Claude Code to other programs and services through the Model Context Protocol.
MCP tasks in the background: Since late 2025, the MCP standard has included tasks, which the specification still marks as experimental. A server can accept a tool call as a task, return an ID straight away and deliver the result later. Tasks are meant for expensive computations and batch processing. Claude Code now moves such a call to the background immediately and tells Claude the result once it is done. Your session keeps working in the meantime.
This only applies to servers that offer tasks. They have to announce it when the connection is set up, and each tool decides whether it may run as a task. Nothing changes for other servers. If you would rather wait for the task to finish, set the environment variable CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND. Setting CLAUDE_CODE_DISABLE_MCP_TASKS=1 turns tasks off completely.
Also new:
- Deny instead of waiting: with the
permissions.denyInsteadOfPromptingsetting, a tool call that would wait for a permission prompt is denied and Claude carries on. This applies in the terminal, to subagents and to teammates. Useful when Claude runs unattended and would otherwise get stuck on a prompt. - Security fixes, among them: a crafted environment-variable prefix could hide part of a Bash command from the permission check. Creating a worktree (an extra working copy of a Git repository) could escape the sandbox, the isolated area commands run in. And a
sedcommand could skip the permission check in the mode that accepts file edits automatically and in auto mode.
What you can do:
- Check your version with
claude --versionand update to 2.1.319 or later, if only for the security fixes. - Look at the docs for your MCP servers to see whether they support tasks. If they don’t, nothing changes for you.
- If you let Claude Code run unattended, for example in scripts, check whether
permissions.denyInsteadOfPromptingsuits you.
Context: This is based on Anthropic’s changelog. It doesn’t say which MCP servers already offer tasks, and I couldn’t find a list. It also doesn’t say how serious the three security issues were.
My workshops show you how to bring AI into your team. See the workshops