Skip to content

AI Compass / News

Claude Code 2.1.319: long MCP calls now keep running in the background

Automation Prompting

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.

Technical drawing: Claude Code keeps going as one continuous arrow while an MCP task runs separately below it and hands back its result at the end.Technical drawing: Claude Code keeps going as one continuous arrow while an MCP task runs separately below it and hands back its result at the end.

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:

What you can do:

  1. Check your version with claude --version and update to 2.1.319 or later, if only for the security fixes.
  2. Look at the docs for your MCP servers to see whether they support tasks. If they don’t, nothing changes for you.
  3. If you let Claude Code run unattended, for example in scripts, check whether permissions.denyInsteadOfPrompting suits 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