Claude Code v2.1.335: add a claude.ai MCP connector from the terminal, /access, and an MCP-only remote host#

Published by

Part of the Claude Code Version Tracker series. | Official Env Vars | Official Changelog

Claude Code 2.1.335, the release after 2.1.334, adds claude mcp add --web, which registers an HTTPS MCP server as a claude.ai connector straight from the terminal on paid plans.[1] A new /access command shows the verification programs your account is in, a new Interrupt hook event fires when a turn is stopped, and CLAUDE_CODE_REMOTE_TOOLS_MCP_ONLY lets a remote-control host decline full sessions and take MCP tool calls only.

A terminal path to a claude.ai connector#

claude mcp add --web <name> <url> takes a name and an https:// address and adds the server as a claude.ai connector.[1] The help text's own example is claude mcp add --web notion https://mcp.notion.com/mcp. The command validates before it writes: the name must be 1 to a fixed length with no leading or trailing spaces and no control characters, and the address must be https://, ASCII-hostnamed, and free of credentials, fragments, or ${...}. Pass an http:// address and it points you to --transport http for a local-config entry instead. This sits alongside the existing --transport, -e, and -H forms of claude mcp add.

New commands for access and older-model code#

/access is a claude.ai command described as "View the verification programs your account is in".[1] /claude-api harness-audit finds agent code written for earlier models and proposes fixes; the release bundles a harness-audit reference beside the other eval and migration guides.[1] On Linux, /desktop and claude --desktop now work, matching the Windows and macOS entry points.[1]

New environment variables#

VariableWhat It Does
CLAUDE_CODE_REMOTE_TOOLS_MCP_ONLYWhen set on a claude remote-control host, sessions sent to that computer are declined with the reason "MCP tool calls only" (tool_calls_only), so the host answers MCP tool calls without running a full session. Its value is a comma-separated list of names, and it cannot be combined with --spawn=session, --session-id, or --continue.[1]
CLAUDE_CODE_LAUNCH_FOLDER_PLUGINS_TRUSTEDRead once at launch and then unset. It takes effect only when the process runs as a hosted worker started at the checkout root, where it marks that launch folder's plugins trusted; other states log plugin_launch_folder_grant with the reason it was skipped.[1]

Hooks, computer use, and managed settings#

A new Interrupt hook event runs when a turn is stopped, and a mod's session.stop event now carries source and via fields.[1] Computer use approvals now expire sooner.[1] On Windows, the disableWindowsBashCommandSplit managed setting controls Bash command splitting, and local MCP servers stop under certain managed-organization settings unless the organization allows them.[1] Alongside those, the release carries a long list of fixes across the CLI, the VS Code extension, MCP OAuth token refreshes, /resume with special characters, /diff, and /context.[1]

Connecting the terminal to connectors and remote hosts#

The through line is where a Claude Code session reaches beyond its own terminal. claude mcp add --web writes a claude.ai connector from the command line, /access reports the account's verification programs, and CLAUDE_CODE_REMOTE_TOOLS_MCP_ONLY narrows what a remote-control host will accept to tool calls alone. CLAUDE_CODE_LAUNCH_FOLDER_PLUGINS_TRUSTED draws the matching boundary for a hosted worker: the trust decision keys on the checkout root, so a worker launched anywhere else gets no implicit plugin grant.

One implication for anyone running an unattended host: an MCP-only host and a trust check pinned to the checkout root mean a remote machine can serve tools without ever admitting a full interactive session, which keeps the host's surface to exactly the tool calls it was set up to answer.

This analysis is conducted for educational and research purposes under fair use principles. All trademarks and software referenced belong to their respective owners.

Sources#

  1. Claude Code Official Changelog, v2.1.335 release notes

Previous Claude Code analysis: v2.1.334 (December 1, 2026)

All 96 Claude Code analyses: Claude Code Version Tracker · Official Claude Code changelog

Get the weekly digest

New Claude Code, Codex, Gemini CLI and OpenCode guides and release analyses, once a week, plus occasional notes.

One email a week plus occasional notes. Confirm by email; unsubscribe from any issue. Privacy