# Claude Code v2.1.335 adds remote MCP server command and interrupt hook event

published: 2026-12-03T01:05:22.167Z
topic: infrastructure
source: https://github.com/anthropics/claude-code/releases/tag/v2.1.335
url: https://aiagentnews.io/stories/claude-code-v2-1-335-adds-remote-mcp-server-command-and-interrupt-hook-event

Anthropic released Claude Code v2.1.335 with a new claude mcp add --web command for adding remote MCP servers as claude.ai connectors from the terminal, on paid plans. The release also adds an Interrupt hook event and many fixes across the terminal, Windows, and VS Code extension.

The release adds claude mcp add --web, which adds a remote MCP server as a claude.ai connector from the terminal on paid plans. Mods can now call on() inside their session.start hook, and the session.stop event reports source and via, showing who sent the Stop and how it arrived.

A new Interrupt hook event fires when a turn is interrupted and reports whether a person, another session or the system stopped it. The claude plugin list --json output also includes requiredByOrganization for plugins an organization requires.

Among the fixes, MCP servers with five-minute OAuth access tokens no longer refresh before every request, since short-lived tokens are now used for half their lifetime. Changes to Bash handling on Windows, computer use on macOS and Bitbucket SSH source handling are also included in the notes.

## Why it matters if you build agents

If your agent connects to remote MCP servers, you can now register them from the terminal instead of through the web interface, on paid plans.

Hooks can now detect interrupted turns and their cause, which helps agent code decide whether to resume or clean up.

Self-hosted runners using --git-ssh-rewrite for ssh.bitbucket.org need updating, or they may clone over https once CLIs update.
