# Claude Code 2.1.186: CLI MCP auth, `!` bash output now answered by default, retry cap

> MCP servers can now be authenticated from the CLI without the interactive menu, including over SSH. Two default-behavior changes to watch: `!` bash commands now automatically trigger a model response, and `CLAUDE_CODE_MAX_RETRIES` is capped at 15. Also fixes Agent deny rules and allowed-types restrictions not being enforced on named subagent spawns.

| | |
|---|---|
| **Tool** | Claude Code |
| **Version** | 2.1.186 |
| **Kind** | release |
| **Published** | 2026-06-22 |
| **Observed** | 2026-08-11 |
| **Significance** | 4/5 |
| **Breaking** | yes |
| **Categories** | feature, breaking, fix, security |

## What changed


- `claude mcp login <name>` / `claude mcp logout <name>` authenticate MCP servers from the CLI; `--no-browser` stdin redirect supports completing over SSH
- Behavior change: `!` bash commands now trigger a model response to the output — set `"respondToBashCommands": false` for the previous context-only behavior
- Changed: `CLAUDE_CODE_MAX_RETRIES` capped at 15; use `CLAUDE_CODE_RETRY_WATCHDOG` for unattended sessions
- Changed: background subagents surface permission prompts in the main session instead of auto-denying; the dialog names the asking agent, Esc denies that tool only
- Changed: `/review <pr>` uses the same engine as `/code-review medium`
- Fix: `Agent(type)` deny rules and `Agent(x,y)` allowed-types restrictions not enforced for named subagent spawns
- Fix: streaming requests failing with "Content block not found" or JSON parse errors after wake from sleep
- Fix: Workflow `agent({schema})` subagents looping forever on repeated schema validation failures — now aborts after 5 attempts
- Fix: `--tools` letting feature-gated tools through on a cold first launch
- Fix: session cost not showing for usage-based Enterprise and Team subscribers
- Fix: tmux/pane teammates not inheriting the leader's `--effort`
- New: status filtering (`f`) in `/workflows` agent detail; "Skills" section in `/plugin` Installed; `teammateMode: "iterm2"`; AWS credential refresh option in `/login`
- Improved: skill frontmatter accepts kebab-case, snake_case, and camelCase for `display-name`, `default-enabled`, `fallback`, `metadata.*`; malformed `SKILL.md` YAML loads the body with empty metadata instead of failing silently
- Improved: memory compaction reminder when `MEMORY.md` nears the size limit
- Numerous `claude agents` and agent-panel fixes


## Sources

- [changelog_md](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md) — retrieved 2026-08-11

## Community

_No curated reactions recorded. Facts and community takes are kept in separate layers
and never blended._

---
Canonical: https://changelogs.info/claude-code/2-1-186
Entity: https://changelogs.info/claude-code
Event ID: `evt_2026-06-22_claude-code_2-1-186`
Licence: event synthesis © changelogs.info, CC BY 4.0. Linked sources belong to their vendors.
