Claude Code: Shell Commands Now Trigger Automatic Responses, Plus CLI MCP Login

Claude Code

Claude Code v2.1.186 ships two workflow improvements. The ! bash command shorthand now automatically prompts Claude to respond to the command output, turning one-way execution into a conversational loop, with an opt-out via "respondToBashCommands": false. Separately, claude mcp login and claude mcp logout become standalone CLI commands for MCP server authentication without opening the interactive /mcp menu, including a --no-browser flag for headless SSH workflows.


Two workflow upgrades in v2.1.186

Claude Code v2.1.186 lands two changes that tighten everyday loops: automatic responses to inline shell commands, and command-line authentication for MCP servers.

! shell commands now trigger a response

Previously, running a command with the ! shorthand executed it and stopped there. Now Claude automatically responds to the output, turning a one-way command run into a conversational debugging loop. Users who prefer the old passive behavior can set "respondToBashCommands": false in settings.json to keep command execution silent.

claude mcp login and claude mcp logout

MCP server authentication no longer requires opening the interactive /mcp menu. The new claude mcp login <name> and claude mcp logout <name> commands handle OAuth directly from the CLI. A --no-browser flag routes the OAuth handshake through stdin, which makes the flow usable over SSH and on headless cloud VMs. Typo suggestions for claude mcp get and claude mcp remove reduce friction in large configurations.

Also in this release

Sleep-wake streaming stability is fixed, resolving streaming failures that occurred after a machine went to sleep.