{"version":"2.1.251","anchor":"environment-variable-to-stop-mcp-tasks-running-in-the-backgr","canonical_anchor":"environment-variable-to-stop-mcp-tasks-running-in-the-backgr","heading":"Environment variable to stop MCP tasks running in the background","tier":"use","area":"MCP","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.251\/e\/environment-variable-to-stop-mcp-tasks-running-in-the-backgr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.251","markdown":"### Environment variable to stop MCP tasks running in the background\n\nSet CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND to keep MCP tasks in the foreground.\n\n**What**\n\n`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.\n\n**Details**\n\n- Documented alongside the other disable-style environment variables.\n\n**Usage**\n\n`CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1 claude` **Evidence** `CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND`\n\n- Area: MCP\n- Names: `CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5"}