{"name":"CLAUDE_CODE_MCP_APPS_HOST","slug":"claude-code-mcp-apps-host","family":"env","title":"Environment variables","noun":"environment variable","description":"With CLAUDE_CODE_MCP_APPS_HOST set to true, Claude Code tells MCP servers it accepts MCP App content","description_source":"entry","described_by":{"version":"2.1.281","anchor":"mcp-apps-host-capability-advertised-behind-claude-code-mcp-a"},"presence":{"first_seen":"2.1.281","removed_in":null,"in_current_build":true,"newest_mined":"2.1.283","builds":3,"mined_builds":126,"first_cited":{"version":"2.1.281","released_at":"2026-09-23 17:01:17","spans":3}},"aliases":[],"entries":[{"version":"2.1.281","anchor":"mcp-apps-host-capability-advertised-behind-claude-code-mcp-a","heading":"MCP Apps host capability advertised behind CLAUDE_CODE_MCP_APPS_HOST","line":"With CLAUDE_CODE_MCP_APPS_HOST set to true, Claude Code tells MCP servers it accepts MCP App content","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.281","anchor":"new-env-vars-claude-code-tether-live-and-claude-code-mcp-app","heading":"New env vars CLAUDE_CODE_TETHER_LIVE and CLAUDE_CODE_MCP_APPS_HOST added to the protected env-key set","line":"CLAUDE_CODE_TETHER_LIVE and CLAUDE_CODE_MCP_APPS_HOST join Claude Code's protected set of environment variables","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.281","anchor":"claude-code-mcp-apps-host-stripped-from-child-env","heading":"CLAUDE_CODE_MCP_APPS_HOST stripped from child env","line":"Claude Code now removes `CLAUDE_CODE_MCP_APPS_HOST` from the environment of programs it starts","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.281","anchor":"mcp-discovery-cache-now-keyed-on-whether-the-mcp-apps-host-i","heading":"MCP discovery cache now keyed on whether the MCP Apps host is enabled","line":"The MCP discovery cache is now kept separately depending on whether the MCP Apps host is enabled","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"}],"entries_total":4,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_MCP_ALLOWLIST_ENV","slug":"claude-code-mcp-allowlist-env","description":"Set to `1` to spawn stdio MCP servers with only a safe baseline environment plus the server's configured `env`, instead of inheriting your shell environment"},{"name":"CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS","slug":"claude-code-mcp-auto-background-ms","description":"Elapsed time in milliseconds before a still-running MCP tool call [moves to a background task](\/docs\/en\/mcp#automatic-backgrounding-of-long-tool-calls) (default: 120000, or 2 minutes). Set to `0` to turn automatic backgrounding off. Requires Claude Code v2.1.212 or later"},{"name":"CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS","slug":"claude-code-mcp-connector-prewait-ms","description":"New CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS environment variable overrides how long Claude Code waits for remote MCP servers to start"},{"name":"CLAUDE_CODE_MCP_MEMORY_CGROUP","slug":"claude-code-mcp-memory-cgroup","description":"On Linux you can force MCP servers into their own memory cgroup with an environment variable."},{"name":"CLAUDE_CODE_MCP_STARTUP_WAIT_MS","slug":"claude-code-mcp-startup-wait-ms","description":"How long in milliseconds the first turn of a [non-interactive](\/docs\/en\/headless) session waits for MCP servers that are still connecting, in place of the default [first-turn wait](\/docs\/en\/agent-sdk\/mcp#connection-timing). When set, the wait covers every pending server. Set to `0` to skip the wait. A [`--permission-prompt-tool`](\/docs\/en\/cli-reference#cli-flags) server keeps its own `MCP_TIMEOUT` wait regardless of the value. Requires Claude Code v2.1.274 or later"},{"name":"CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT","slug":"claude-code-mcp-tool-idle-timeout","description":"Idle timeout in milliseconds for MCP tool calls. When a stdio, HTTP, SSE, WebSocket, or [claude.ai connector](\/docs\/en\/mcp#use-mcp-servers-from-claude-ai) MCP server sends no response and no progress notification for this long, the tool call aborts with an error instead of waiting for the overall `MCP_TOOL_TIMEOUT`. Overrides the per-transport defaults of 300000 (5 minutes) for network servers and 1800000 (30 minutes) for stdio servers. Set to `0` to disable the idle check. Values below 1000 are raised to one second, and the value is capped at the effective `MCP_TOOL_TIMEOUT`. A per-server `timeout` in `.mcp.json` of at least 1000 raises that server's idle window to at least the `timeout` value. Doesn't apply to IDE servers or SDK in-process servers. Requires Claude Code v2.1.187 or later. Before v2.1.203, stdio servers were exempt from the idle timeout"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-mcp-apps-host","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}