---
title: "Claude Code v2.1.186：MCP CLI认证、工作流增强与大量修复"
source: "Claude Code：GitHub Releases（RSS）"
source_tier: "t1_5"
url: "https://github.com/anthropics/claude-code/releases/tag/v2.1.186"
permalink: "https://feed.astralor.com/items/itm_d3c0a1b37a551be484fa17ae"
published: "2026-06-22T20:37:34.000Z"
score: 66
channel: "ai"
tags: ["Bug修复","Claude Code","CLI认证","MCP","工作流增强"]
---

# Claude Code v2.1.186：MCP CLI认证、工作流增强与大量修复

## 速览

Claude Code v2.1.186 版本引入了多项新功能与改进。新增 `claude mcp login/logout` 命令，允许用户无需进入交互菜单即可通过CLI认证MCP服务器，并支持无浏览器SSH重定向。工作流代理详情视图新增状态过滤（按f键），插件安装选项卡新增“技能”部分。bash命令现在会自动触发Claude回复输出，可通过设置关闭。同时修复了睡眠唤醒后流式请求失败、子代理滚动位置污染、后台会话总结重复、Chrome标签组隔离失效等大量问题。还改进了MCP服务器名称建议、内存管理（提醒压缩MEMORY.md）、技能frontmatter多格式支持等。

## 关键点

- 新增 `claude mcp login/logout` CLI命令，支持无浏览器SSH重定向的MCP服务器认证
- 工作流代理视图新增状态过滤（f键），插件选项卡新增“技能”部分
- bash命令现在自动触发Claude响应输出（可通过设置关闭）
- 修复睡眠唤醒后流式请求失败、子代理滚动条污染、总结重复等大量问题

## 全文

What's changed Added claude mcp login <name> and claude mcp logout <name> to authenticate MCP servers from the CLI without opening the interactive /mcp menu, with --no-browser stdin redirect support for completing over SSH Added status filtering (press f) to the /workflows agent detail view Added a "Skills" section to the /plugin Installed tab Added teammateMode: "iterm2" setting with a warning when auto mode cannot find the it2 CLI Added "Claude Platform on AWS - refresh credentials" option to /login when awsAuthRefresh is configured ! bash commands now trigger Claude to respond to the output automatically; set "respondToBashCommands": false in settings.json to keep the previous context-only behavior Fixed streaming requests failing with "Content block not found" or JSON parse errors after the machine wakes from sleep Fixed subagent transcript scroll position bleeding into the main transcript on exit Fixed background task previews flashing raw tool names before the agent's plan loaded Fixed Chrome tab-group isolation not applying when the in-product permissions gate is off for concurrent CLI sessions Fixed background session recaps being duplicated; the agent's own end-of-turn summary now shows as the recap line Fixed opening a background session from claude agents leaving the previous screen painted behind it Fixed Agent(type) deny rules and Agent(x,y) allowed-types restrictions not being enforced for named subagent spawns Fixed Esc and Ctrl+C not responding while background agents are still running after the main turn ends Fixed misaligned option numbers in permission prompts when the option text overflows Fixed pressing x on a finished subagent in the agent panel not dismissing it Fixed a misleading "MCP server disconnected" notice for intentionally retired tools when resuming older sessions Fixed /plugin Installed showing a "more above" indicator when already scrolled to the top Fixed ~~strikethrough~~ showing literal tildes in assistant messages instead of rendering as strikethrough Fixed --tools allowing feature-gated tools to slip through before flags loaded on a cold first launch Fixed background job status in claude agents showing a stale "needs input" message after replying Fixed a dark-theme flash when opening a background session from claude agents on a light terminal Fixed mouse-selected text staying highlighted after deleting it in claude agents Fixed session cost not showing for usage-based Enterprise and Team subscribers Fixed agent teams: teammates spawned via tmux/pane backends now inherit the leader's --effort level Fixed Workflow agent({schema}) subagents looping forever on repeated schema validation failures instead of aborting after 5 attempts Improved claude mcp get and claude mcp remove to suggest the closest configured server name on a typo and truncate long server lists Improved memory: the agent is now reminded to compact its MEMORY.md index when nearing the size limit Improved skill frontmatter: display-name, default-enabled, fallback, and metadata.* keys now accept kebab-case, snake_case, and camelCase Improved malformed SKILL.md YAML frontmatter handling: loads the skill body with empty metadata instead of failing silently Changed CLAUDE_CODE_MAX_RETRIES to cap at 15; for unattended sessions, use CLAUDE_CODE_RETRY_WATCHDOG instead Changed background subagents to surface permission prompts in the main session instead of auto-denying; the dialog shows which agent is asking, and Esc denies just that tool Changed /review <pr> to use the same review engine as /code-review medium

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_d3c0a1b37a551be484fa17ae
