Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.251 ·

Environment variable to stop MCP tasks running in the background

Set CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND to keep MCP tasks in the foreground.

Use it now Notable No documentation found New Features
JSON All of v2.1.251
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
MCPArea: what it touches
New FeaturesKind: in v2.1.251,
What probably matters to youSection of the release
What

CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND joins the recognised CLAUDE_CODE_DISABLE_* toggles. Backgrounding of MCP tasks is on unless you set it, so this is the opt-out for people who want those tasks to run in the foreground.

Details
  • Documented alongside the other disable-style environment variables.
Usage
CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1 claude
Evidence

CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
How sure we are
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND

See this entry in the whole of v2.1.251 →

Feedback