6 6
7> Authenticate MCP servers from your shell with claude mcp login, get a response to shell mode command output with the ! prefix, and resume a conversation from before /clear with /rewind.7> Authenticate MCP servers from your shell with claude mcp login, get a response to shell mode command output with the ! prefix, and resume a conversation from before /clear with /rewind.
8 8
9<div className="digest-meta">9Releases [v2.1.185 → v2.1.193](/docs/en/changelog#2-1-185)
10 <span>Releases <a href="/docs/en/changelog#2-1-185">v2.1.185 → v2.1.193</a></span>102 features · June 22–26
11 <span>2 features · June 22–26</span>11
12</div>12Authenticate MCP servers from the CLI
13 13v2.1.186
14<div className="digest-feature">14
15 <div className="digest-feature-header">15New `claude mcp login <name>` and `claude mcp logout <name>` commands authenticate a configured MCP server from your shell instead of the interactive `/mcp` menu. `claude mcp login` runs the server's OAuth flow directly, and `claude mcp logout` clears the stored credentials.
16 <span className="digest-feature-title">Authenticate MCP servers from the CLI</span>16
17 <span className="digest-feature-pill">v2.1.186</span>17Run the OAuth flow for a configured server without opening a session:
18 </div>18
19 19```bash terminal theme={null}
20 <p className="digest-feature-lede">New `claude mcp login <name>` and `claude mcp logout <name>` commands authenticate a configured MCP server from your shell instead of the interactive <code>/mcp</code> menu. `claude mcp login` runs the server's OAuth flow directly, and `claude mcp logout` clears the stored credentials.</p>20claude mcp login sentry
21 21```
22 <p className="digest-feature-try">Run the OAuth flow for a configured server without opening a session:</p>22
23 23[Authenticate from the command line](/docs/en/mcp#authenticate-from-the-command-line)
24 ```bash terminal theme={null}24
25 claude mcp login sentry25Shell mode responds to command output
26 ```26v2.1.186
27 27
28 <a className="digest-feature-link" href="/docs/en/mcp#authenticate-from-the-command-line">Authenticate from the command line</a>28Commands you run with the `!` prefix now get a response from Claude once the output lands in the transcript, so you can run `! npm test` and get an explanation of the failures without a second prompt. The response costs the same as sending a normal prompt. To keep the earlier behavior, where the output is added to context without a response, set `respondToBashCommands` to `false` in `settings.json`.
29</div>29
30 30Run a command and get a response to its output:
31<div className="digest-feature">31
32 <div className="digest-feature-header">32```text Claude Code theme={null}
33 <span className="digest-feature-title">Shell mode responds to command output</span>33> ! npm test
34 <span className="digest-feature-pill">v2.1.186</span>34```
35 </div>35
36 36[Shell mode with the ! prefix](/docs/en/interactive-mode#shell-mode-with-prefix)
37 <p className="digest-feature-lede">Commands you run with the <code>!</code> prefix now get a response from Claude once the output lands in the transcript, so you can run <code>! npm test</code> and get an explanation of the failures without a second prompt. The response costs the same as sending a normal prompt. To keep the earlier behavior, where the output is added to context without a response, set <code>respondToBashCommands</code> to <code>false</code> in <code>settings.json</code>.</p>37
38 38Other wins
39 <p className="digest-feature-try">Run a command and get a response to its output:</p>39
40 40`/rewind` can now resume a conversation from before `/clear` was runNew `sandbox.credentials` setting blocks sandboxed commands from reading credential files and secret environment variablesOrg-configured model restrictions now apply to the model picker, `--model`, `/model`, and `ANTHROPIC_MODEL`, with a "restricted by your organization's settings" message when a restricted model is selectedNew `autoMode.classifyAllShell` setting routes all Bash and PowerShell commands through the auto-mode classifier, and denial reasons now show in the transcript, the denial toast, and `/permissions`New `claude_code.assistant_response` OpenTelemetry log event carries the model's response text; deployments that already log prompt content start receiving it on upgrade, so set `OTEL_LOG_ASSISTANT_RESPONSES=0` to keep prompts onlyBackground subagents now surface permission prompts in the main session instead of auto-denying; the dialog shows which agent is asking, and Esc denies only that tool`/install-github-app` can now install only the GitHub App and skip the Actions workflow and secret stepsHosts you allow in the sandbox network permission dialog are remembered for the rest of the session instead of re-prompting on every connectionStreaming responses use about 37% less CPU, and long-session memory growth from the terminal output cache is reduced`/review <pr>` now uses the same review engine as `/code-review medium`Bash mode `!` commands get live file path autocomplete
41 ```text Claude Code theme={null}
42 > ! npm test
43 ```
44
45 <a className="digest-feature-link" href="/docs/en/interactive-mode#shell-mode-with-prefix">Shell mode with the ! prefix</a>
46</div>
47
48<div className="digest-wins">
49 <p className="digest-wins-title">Other wins</p>
50
51 <div className="digest-wins-grid">
52 <div><code>/rewind</code> can now resume a conversation from before <code>/clear</code> was run</div>
53 <div>New <code>sandbox.credentials</code> setting blocks sandboxed commands from reading credential files and secret environment variables</div>
54 <div>Org-configured model restrictions now apply to the model picker, `--model`, <code>/model</code>, and <code>ANTHROPIC\_MODEL</code>, with a "restricted by your organization's settings" message when a restricted model is selected</div>
55 <div>New <code>autoMode.classifyAllShell</code> setting routes all Bash and PowerShell commands through the auto-mode classifier, and denial reasons now show in the transcript, the denial toast, and <code>/permissions</code></div>
56 <div>New <code>claude\_code.assistant\_response</code> OpenTelemetry log event carries the model's response text; deployments that already log prompt content start receiving it on upgrade, so set <code>OTEL\_LOG\_ASSISTANT\_RESPONSES=0</code> to keep prompts only</div>
57 <div>Background subagents now surface permission prompts in the main session instead of auto-denying; the dialog shows which agent is asking, and Esc denies only that tool</div>
58 <div><code>/install-github-app</code> can now install only the GitHub App and skip the Actions workflow and secret steps</div>
59 <div>Hosts you allow in the sandbox network permission dialog are remembered for the rest of the session instead of re-prompting on every connection</div>
60 <div>Streaming responses use about 37% less CPU, and long-session memory growth from the terminal output cache is reduced</div>
61 <div>`/review <pr>` now uses the same review engine as <code>/code-review medium</code></div>
62 <div>Bash mode <code>!</code> commands get live file path autocomplete</div>
63 </div>
64</div>
65 41
66[Full changelog for v2.1.185–v2.1.193 →](/docs/en/changelog#2-1-185)42[Full changelog for v2.1.185–v2.1.193 →](/docs/en/changelog#2-1-185)