Source: github.com/anthropics/claude-code/releases/tag/v2.1.335
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.
Get stories like this every weekday
One short email with the day's agent tooling news.