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.302 ·

MCP serve gains a workspace-root setting for registering a subfolder

CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT lets a host running claude mcp serve limit folder registration to a folder below the server's own

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

Unclear What CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT controls, and what value it expects, is not settled.

What

claude mcp serve runs Claude Code as an MCP server, a program another application (the host) connects to and drives. A new environment variable, CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT, lets the host name a workspace root for it. An environment variable is a setting passed to a program when it starts.

  • It is listed alongside the other CLAUDE_CODE_MCP_SERVE_* variables, such as CLAUDE_CODE_MCP_SERVE_AUTH_TOKEN and CLAUDE_CODE_MCP_SERVE_SETTINGS, and next to CLAUDE_CODE_REMOTE_TOOLS_FORWARD. One of these lists appears to hold sensitive variables and the other variables passed on to child processes.
  • mcp serve in HTTP mode reads the value once and then removes it from its environment.
  • The value must be a valid absolute path, must not be the current folder, and must not overlap a private folder (that refusal is reported as private_folder).
  • A valid root is added as an extra working folder for the tool that registers folders. Registering a folder that is not below that root fails with outside_scope.
  • An invalid value is ignored, with a warning that only a folder below the server's own can be registered.

Why

A host that launches claude mcp serve can now keep a session to one subfolder. Ordinary users who never set the variable see no difference.

Read from
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat `CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT` controls, and what value it expects, is not settled.
Anthropic's release notes agreeAdded CLAUDE_CODE_AUTO_MODE_MODEL to choose the model the client-side auto mode classifier uses; it does not change the model for…

See this entry in the whole of v2.1.302 →

Feedback