{"version":"2.1.336","anchor":"claude-mcp-serve-refuses-to-start-when-restricted-mode-is-on","canonical_anchor":"claude-mcp-serve-refuses-to-start-when-restricted-mode-is-on","heading":"claude mcp serve now refuses to start in restricted mode","tier":"notice","area":"MCP","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/claude-mcp-serve-refuses-to-start-when-restricted-mode-is-on","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### claude mcp serve now refuses to start in restricted mode\n\n`claude mcp serve` now reads the restricted option and stops with an error instead of serving when restricted mode is active\n\n**What**\n\n`claude mcp serve` runs Claude Code as an MCP server, so other programs can use its tools over MCP (Model Context Protocol, a standard way for tools and programs to talk to each other). Restricted mode is the locked-down session mode turned on with `--restricted` or `CLAUDE_CODE_RESTRICTED`.\n\n- The `mcp serve` command now reads a `restricted` option and applies restricted mode when it is set. Before, it applied only `strictMcpConfig`.\n\n- A new check runs before serving over standard input and output. When restricted mode is active, it waits for your organization's policy limits to load and then stops with: `Error: claude mcp serve cannot enforce restricted mode, so it did not start.` The message tells you to start without `--restricted` and to set `CLAUDE_CODE_RESTRICTED=0`.\n\n- The check is controlled by the server-side flag `tengu_wiggly_teacup`, whose built-in default is to run the check, and a kill switch can turn it off. No reading of this flag's server value has been taken.\n\n**Why**\n\nIf you run `claude mcp serve` in an environment where restricted mode is on, it now fails to start where it used to serve, because the server cannot enforce the restrictions.\n\n- Flag `tengu_wiggly_teacup`: Not enough to say (read for one account on one subscription tier against v2.1.336; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: MCP\n- Names: `claude mcp serve`, `--restricted`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: yes"}