Omniscio

OmniscioGuides2.1.319

Claude Code 2.1.319: MCP tasks without feature flags

Two of this release's changes are about the same thing: not standing still. A long MCP call no longer holds the turn, and a session that would wait forever at a permission prompt can now refuse and move on.

Below: what an MCP task is and how to turn the behaviour off, what the new permission setting does and where it is honoured, and the rest of the release.

Last checked against Anthropic's changelog entry for 2.1.319 and its documentation on November 25, 2026. By the Omniscio team. Updated .

MCP tasks in the terminal

An MCP task is a long job that an MCP server runs itself, such as a report export or a build, using the MCP tasks extension. The changelog's line for this release is that terminal sessions now support them: when a server runs a tool call as a task, Claude Code moves it to the background right away and tells Claude the result when it finishes. Two minutes is the default for that move, set by CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS.

Anthropic's MCP page describes what you see. Claude's tool call returns once the server accepts the job, 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, and resuming the same session picks the thread back up. To stop one, select it in /tasks and press x, or ask Claude to; Claude Code stops following it and asks the server to cancel, though the server may still finish the work.

Two switches shape the behaviour, and the first is subtler than it sounds. CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND makes Claude wait for the task's result instead of moving it to the background right away — but while automatic backgrounding is on, it still moves the call after two minutes, and the moved call is a plain background call rather than an MCP task — which matters because a plain call does not survive exiting the session, while a task on a remote server does. To wait for every MCP call, set CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=0. CLAUDE_CODE_DISABLE_MCP_TASKS=1 turns MCP tasks off, which the changelog gives for sessions without feature-flag fetching.

Three details are easy to miss. Anthropic says MCP tasks require Claude Code v2.1.304 or later, and terminal sessions have had them since then, so this entry is not where terminal support begins — its own line says "added support for MCP tasks in the terminal", while the MCP page says terminal sessions have had them on v2.1.304 or later. Where the two disagree, the changelog is the newer statement. What this entry does add is support without feature-flag fetching, which covers sessions on Bedrock, Vertex, Foundry, an LLM gateway, or with DISABLE_TELEMETRY set. And subagent calls never move to a background task, except an MCP task in the cloud.

The background tasks guide covers /tasks, and MCP setup covers the server side.

Sources: the "Added support for MCP tasks in the terminal" and "Changed MCP tasks to work in the terminal without feature-flag fetching" lines in the 2.1.319 entry of Claude Code changelog, and "MCP tasks that run on the server" in Connect Claude Code to tools via MCP, read November 25, 2026.

Denying instead of prompting

permissions.denyInsteadOfPrompting is a setting with one job: a tool call that would wait on a permission prompt is denied instead, and the turn continues. Anthropic documents it for terminal sessions, subagents and teammates, and the changelog describes the same scope.

It is for the unattended case. A session that nobody is watching does not gain anything from a prompt it will never get an answer to; with this setting it fails that one call, tells Claude, and keeps going. The cost is that a call which would have been allowed after a yes is now refused, so it suits a session whose prompts are noise more than one where each prompt matters.

Anthropic's settings page is specific about where it is honoured: true from ~/.claude/settings.json or a --settings file, and honoured even when a managed source sets it to false. A project settings file is not one of the places named.

The permission modes guide covers what each mode allows, and approvals covers where a prompt comes from.

Sources: the "Added `permissions.denyInsteadOfPrompting` setting" line in the 2.1.319 entry of Claude Code changelog, and the setting's row in Settings, read November 25, 2026.

Auto mode behind a gateway

Auto mode's classifier decides whether an action may run. Behind an LLM gateway with telemetry or feature flags off, the server-side version of that check cannot run, and this release changes what happens then: calls the server cannot check are asked about or denied, with no fallback to the built-in classifier.

If you want the server-side check anyway, CLAUDE_CODE_AUTO_MODE_SERVER=1 turns it on even with CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS set. The changelog adds a limit in the other direction: a project's settings files, or a plugin, can no longer switch that check back on once you have switched it off outside the project.

The practical effect is that a gateway session is no longer quietly reviewed by a weaker local check: it is either reviewed by the server or it asks. Auto mode unavailable covers the messages, and permission modes covers what auto mode permits.

Sources: the "Changed auto mode with telemetry or feature flags off" and "Changed auto mode behind an LLM gateway" lines in the 2.1.319 entry of Claude Code changelog, read November 25, 2026.

The smaller changes worth knowing

  • /tasks remembers finished subagents. An "Earlier in this session" row lists finished subagents, so you can reopen one and message it even after it leaves the list or you restart.
  • Self-paced /loop ends sooner. A self-paced loop now ends when a turn finishes without rescheduling, instead of scheduling a fallback wakeup; CLAUDE_CODE_LOOP_KEEPALIVE=1 keeps the old behaviour. See scheduled tasks.
  • Hooks after an interruption. PostToolUse hooks now run, with up to 10 seconds to finish, on tool calls that complete after a new message interrupts the turn. See hooks.
  • A narrower ask. A session's exact Bash or PowerShell ask rule is refused rather than asked about when a broader deny rule already covers the command, and the Bash tool now asks before running which with flags outside a lookup and display set.
  • Feature flags can be frozen. CLAUDE_CODE_DISABLE_FEATURE_FLAGS stops feature-flag fetching without turning telemetry off; every flag then uses its built-in default.
  • A latency command. /claude-api latency-optimize finds where your Claude API code makes people wait and tries faster settings against your eval.

Sources: the "Added an \"Earlier in this session\" row", "Changed self-paced `/loop`", "Changed PostToolUse hooks", "Changed a session's exact Bash or PowerShell ask rule", "Added the `CLAUDE_CODE_DISABLE_FEATURE_FLAGS`" and "Added `/claude-api latency-optimize`" lines in the 2.1.319 entry of Claude Code changelog, read November 25, 2026.

What got fixed

The entry's bug-fix list holds 90 items. These are the ones most likely to have been your problem:

  • MCP servers on the older handshake. A server on the older handshake could fail to connect, or return empty results, because Claude Code declared an extension it only uses with newer servers.
  • A result that never arrived. A long-running MCP tool call on a claude.ai connector sometimes never reported its result after --resume.
  • A diff that would not load. The /diff pane opened blank in sessions where 64 or more turns edited files, and showed "Diff unavailable" when a repository had a file or folder named HEAD at its top level.
  • A slash command sent as text. A slash command typed after a leading space, tab or newline was sent to Claude as plain text instead of running.
  • A 401 loop. A request that kept failing with a 401 refreshed your login on every retry and caused 401s in your other sessions.

Sources: the "Fixed" lines under "90 bug fixes" in the 2.1.319 entry of Claude Code changelog, read November 25, 2026.

Who 2.1.319 matters to

If you…Read this part
Run MCP servers with long jobsMCP tasks in the terminal
Leave sessions running with nobody watchingDenying instead of prompting
Use auto mode behind a gateway or with telemetry offAuto mode behind a gateway
Run loops, or write hooksThe smaller changes

Everyone else can update and read nothing, with 90 fixes behind them.

If you are not on this version yet, claude --version prints the version you have and claude update updates the install; the update guide covers each install type. Newer releases exist: Anthropic's changelog lists them.

This table is our summary of the sections above; every row rests on the changelog and documentation lines cited in those sections, read November 25, 2026.

Where these answers come from

No Claude Code release was installed on this site's machine to check this page. Every claim about 2.1.319 is taken from Anthropic's changelog entry and the documentation pages named above.

Common questions

What changed in Claude Code 2.1.319?

MCP tasks arrived in the terminal: when an MCP server runs a tool call as a task, Claude Code moves it to the background and tells Claude the result when it finishes. The release also added permissions.denyInsteadOfPrompting, which denies a call that would wait at a prompt and lets the turn continue.

How do I make Claude Code wait for an MCP task instead?

Set CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND, which makes Claude Code wait for the task inside the tool call instead of moving it to the background. CLAUDE_CODE_DISABLE_MCP_TASKS=1 turns MCP tasks off entirely.

What does permissions.denyInsteadOfPrompting do?

A tool call that would wait on a permission prompt is denied instead, and the turn continues. Anthropic documents it in terminal sessions, subagents and teammates, and it is set in user settings or a --settings file.

Does auto mode behave differently behind a gateway now?

Behind an LLM gateway, with telemetry or feature flags off, calls the server cannot check are asked about or denied rather than falling back to the built-in classifier. Bedrock, Vertex and Foundry are unchanged, and CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps the built-in classifier; =1 turns the server-side check on.