Set CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND to keep MCP tasks in the foreground.
What's wrong with this entry?
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.
- Documented alongside the other disable-style environment variables.
CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1 claudeCLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.234
Background task notifications arrive inside a system-reminder
Both mention task background
-
v2.1.235
Several finished background tasks now report as one line
Both mention task background
-
v2.1.236
Background-task notices no longer look like user approval
Both mention task background