Last updated: December 3, 2026
Claude Code 2.1.335 lets you add a remote MCP server to your claude.ai account from the terminal with claude mcp add –web, brings /desktop to Linux desktops, and adds /claude-api harness-audit for agent code written for older models. It also adds Tab completion, click to view and a new Interrupt hook.
Contents
- What is new in 2.1.335
- Add an MCP server as a claude.ai connector
- Open sessions in Desktop on Linux
- Audit agent harness code with harness-audit
- Tab completion and click to view
- Hooks, mods and admin changes
- Notable fixes
- 2.1.335 compared with 2.1.334
- Frequently asked questions
What is new in 2.1.335
Anthropic’s documentation changelog dates version 2.1.335 December 3, 2026 (Claude Code changelog). The same notes are on the GitHub release page. It follows Claude Code 2.1.334, which raised the auto-compact window to about 400K tokens.
| Feature | What it does | Requirements |
|---|---|---|
claude mcp add --web |
Adds a remote MCP server as a claude.ai connector | claude.ai login, paid plan |
/desktop on Linux |
Moves the current CLI session into the Claude desktop app | Linux graphical desktop, Claude subscription |
/claude-api harness-audit |
Flags harness code written for older models and proposes a diff | v2.1.335 or later |
| Tab completion | Completes arguments for /model, /effort, /mcp, /advisor, /tui, /color |
None stated |
| Click to view | Opens a file path from a reply beside the chat | Fullscreen, git repo, window 110+ columns, outside VS Code |
Interrupt hook |
Fires when a turn is interrupted and reports who stopped it | None stated |
Add an MCP server as a claude.ai connector
Until now, claude mcp add changed your local Claude Code configuration. The new --web flag instead adds the server to your claude.ai account as a connector (Claude Code MCP docs).
The 2.1.335 changelog lists the flag as new. The MCP documentation gives minimum versions of 2.1.330 on Pro, Max or Ultra and 2.1.332 on Team or Enterprise, so updating to 2.1.335 covers both. For scopes, headers or OAuth options, keep using claude mcp add --transport http.
- Run
claude mcp add --webwith a name and the server’shttps://address, for exampleclaude mcp add --web notion https://mcp.notion.com/mcp. Quote the address if it contains?or&. - Claude Code opens claude.ai in your browser; over SSH, open the link it prints. Use the account and organization Claude Code is signed in to.
- On claude.ai, click Connect if the address matches a verified Anthropic Directory listing. Otherwise, check the name and address on the form, and add the connector only if you trust the server.
- Wait. The command ends by itself once the connector is connected, for up to 10 minutes. Press Enter to check right away.
- Run
/reload-pluginsin an open session, or start a new one, then run/mcpto confirm the connector is listed.
On Team and Enterprise plans, Claude Code checks the address against your organization’s connectors. You cannot remove a connector with claude mcp remove; remove it at claude.ai/customize/connectors instead.
Open sessions in Desktop on Linux
The /desktop command saves your terminal session, opens it in the Claude desktop app and exits the CLI. Version 2.1.335 adds Linux support (Desktop application reference).
On Linux it needs a graphical desktop and a Claude subscription sign-in, and it is not available in Docker, over SSH or in a background session. It is also unavailable with API key authentication or on Amazon Bedrock, Google Cloud’s Agent Platform and Microsoft Foundry.
The Linux desktop app itself is in beta for Ubuntu 22.04 or later and Debian 12 or later, on x86_64 or arm64, installed with apt (Claude Desktop on Linux). On Fedora or Arch, Anthropic says to use the CLI instead.
To open Desktop without a terminal session, run claude --desktop. Add --continue for the latest conversation in the directory, or --resume <session-id> for a specific one. See our guide to resuming a Claude Code session.
Audit agent harness code with harness-audit
The bundled /claude-api skill loads Claude API and Managed Agents reference material for your project’s language. The new harness-audit subcommand flags agent harness code written for older models and proposes fixes as a diff (Claude Code skills docs).
The changelog lists what it looks for: loop limits, sub-agents, context management, injected reminders and session-start code. Run /claude-api harness-audit at the prompt in your repository, then review the diff before accepting it.
It complements prompt-audit, which checks prompts, skills and tool descriptions. If you build on the Claude Agent SDK or Claude Managed Agents on Amazon Bedrock, run harness-audit before changing models.
Tab completion and click to view
Tab now completes arguments for /model, /effort, /mcp, /advisor, /tui and /color. In those commands and in the /plugin and /config menus, Enter runs what you typed unless you arrow to a row.
Click to view works in fullscreen mode outside VS Code, inside a git repository, in a window at least 110 columns wide. Click a file path in a reply or tool row and the file opens beside the chat at the line named.
Hooks, mods and admin changes
- Interrupt hook. A new
Interruptevent fires when a turn is interrupted. It says whether a person, another session or the system stopped it. - Mods. Mods can call
on()inside theirsession.starthook, andsession.stopnow includessourceandvia. - Plugins.
claude plugin list --jsonaddsrequiredByOrganization. Cloud sessions now load plugins and mods from a repository’s.claude/skills, but a hook that reaches outside its plugin folder with../fails there. - Sign-in.
/logincan finish gateway sign-in through your identity provider over SSH or on Linux with no display./accesslists verification programs your account is in.
Notable fixes
Among the many bug fixes:
~/.claude.jsonbeing replaced with defaults at startup after a drive I/O error or timeout./importdestroying an existingCLAUDE.mdthat was not saved as UTF-8.- MCP servers with five-minute OAuth tokens refreshing before every request; short-lived tokens are now used for half their lifetime.
2.1.335 compared with 2.1.334
| Area | 2.1.334 | 2.1.335 |
|---|---|---|
| Headline | Auto-compact near 400K tokens on current 1M models | Connectors from the terminal, /desktop on Linux |
| /desktop | Added Windows ARM64 | Added Linux desktops |
| Command input | Search in /model | Tab completion for six commands |
| /claude-api | No new subcommand | harness-audit |
Both releases install the same way. See our guide on how to update Claude Code, then confirm with claude --version.
Frequently asked questions
What is new in Claude Code 2.1.335?
The headline additions are claude mcp add –web for adding a remote MCP server as a claude.ai connector, /desktop and claude –desktop on Linux desktops, the /claude-api harness-audit subcommand, Tab completion for several slash-command arguments, click to view files in fullscreen, and a new Interrupt hook event.
How do I add an MCP server as a claude.ai connector from the terminal?
Run claude mcp add –web followed by a name and the server’s https:// address, for example claude mcp add –web notion https://mcp.notion.com/mcp. Finish on claude.ai in the browser, then run /reload-plugins and /mcp. It needs a claude.ai login on a paid plan.
Does /desktop work on Linux?
Yes, from version 2.1.335 on a Linux graphical desktop when you sign in with a Claude subscription. It is not available in Docker, over SSH, in a background session, or with API key authentication. The Claude desktop app on Linux is in beta for Ubuntu 22.04+ and Debian 12+.
What does /claude-api harness-audit do?
It flags agent harness code written for older Claude models, such as loop limits, subagents, context management, injected reminders and session-start code, and proposes fixes as a diff. Type /claude-api harness-audit at the Claude Code prompt in your project. It requires version 2.1.335 or later.
How do I update to Claude Code 2.1.335?
Native installs update automatically in the background, or you can run claude update. Then run claude –version to confirm you are on 2.1.335.
Sources
- Claude Code v2.1.335 release notes (GitHub, Anthropic)
- Claude Code changelog (Anthropic docs)
- Connect Claude Code to tools via MCP (Anthropic docs)
- Claude Code Desktop application reference (Anthropic docs)
- Extend Claude with skills: Work on Claude API projects (Anthropic docs)
Image: Claude logo by Anthropic, public domain, via Wikimedia Commons. Claude is a trademark of Anthropic. FreeAnswers is not affiliated with Anthropic.