# Claude Code 2.1.319 adds background MCP tasks and a deny-instead-of-prompt setting

> Anthropic's 2.1.319 release lets Claude Code run MCP server tasks in the background and can automatically deny permission prompts that would otherwise pause a turn.

- Status: official (From the company, authors or authority themselves, with a link to their own page.)
- Topic: Products
- Published: 2026-11-06T00:00:00+00:00
- Updated: 2026-11-07T11:38:57.639325+00:00
- Web page: https://ai-news.ikangai.com/story/claude-code-2-1-319-adds-background-mcp-tasks-and-a-deny-instead-of-prompt-setti/
- Seen in: Claude Code changelog
- Change: capability (New capability)
- Takes effect: 2026-11-06
- Applies to: Claude Code 2.1.319, MCP, permissions.denyInsteadOfPrompting

## What changed

Claude Code 2.1.319 runs MCP server tasks in the background and adds a permissions.denyInsteadOfPrompting setting that denies tool calls instead of pausing the turn for approval.

Claude Code 2.1.319, dated November 6, 2026, adds two changes that affect how long a session waits. MCP server tasks can now run in the background, and a new permissions.denyInsteadOfPrompting setting can refuse a tool call instead of pausing the turn for approval. Anthropic's changelog for the release describes both, and it is the source for the features covered here.

The MCP change concerns long-running tool calls. When an MCP server runs a tool call as a task, Claude Code moves it to the background right away and reports the result to Claude once it finishes. The turn therefore does not have to stay open while the server works. The changelog says the behaviour is available in the terminal. Setting the environment variable CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND makes Claude Code wait for the task inside its tool call instead. A separate entry says MCP tasks now work without feature-flag fetching in several setups, including Bedrock, Vertex, Foundry, LLM gateways and sessions with DISABLE_TELEMETRY set. CLAUDE_CODE_DISABLE_MCP_TASKS=1 turns them off.

The permissions setting addresses a different wait. Normally, a tool call that needs approval stops until someone answers the prompt. With permissions.denyInsteadOfPrompting set, that call is denied and the turn carries on. The changelog says this applies in terminal sessions, subagents and teammates.

The release also includes smaller additions. The /claude-api latency-optimize command looks for places where a Claude API program makes users wait, then tries faster settings against the user's eval. The /usage command gains spend totals for today, this week and this month. These totals are for developers behind a Claude apps gateway who have no spend limit, provided the gateway runs this version or later. The new CLAUDE_CODE_DISABLE_FEATURE_FLAGS variable stops feature-flag fetching without turning off telemetry. Every flag then falls back to its built-in default.

The changelog lists many other items, including gateway log and policy warnings tied to Claude Desktop's November 10 change, several changes to auto mode, and 90 bug fixes. Those concern other parts of the product and are not covered here.

## Why it matters

Teams running unattended agents can now avoid stalled sessions caused by permission prompts. Auto-denial, however, means some tool calls will fail silently from the agent's point of view unless the workflow handles them.

## What you can do

Teams running Claude Code in automated pipelines should test denyInsteadOfPrompting and check how their agents handle denied tool calls before enabling it.

## Original source

- [Claude Code changelog - Claude Code Docs](https://code.claude.com/docs/en/changelog)
- [claude-code/CHANGELOG.md at main · anthropics/claude-code · GitHub](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "Claude Code 2.1.319 adds background MCP tasks and a deny-instead-of-prompt setting", 2026-11-06, https://ai-news.ikangai.com/story/claude-code-2-1-319-adds-background-mcp-tasks-and-a-deny-instead-of-prompt-setti/
