Event ·Official first-hand

Claude Code 发布 v2.1.332:支持 MCP 服务器技能加载与 PreSkillShellCommand 钩子

Anthropic 发布 Claude Code v2.1.332,新增两项关键能力:MCP 服务器提供的技能(beta)会以 server:skill 形式出现在 / 菜单中;同时加入 PreSkillShellCommand 钩子事件,可在技能加载时拦截其内联 shell 命令。企业用户可以通过该钩子对技能执行命令做安全审计。 本版本还新增 OpenTelemetry 的 assistant_response 事件,用于记录 Claude 通过 SendUserMessage 或 Cowork 消息工具发出的文本,响应日志开启时生效。针对 VS Code 与 Desktop 的 Code 标签页,新增会话部分内容未保存时的警告提示,以及恢复会话时早期消息未加载的通知。 修复清单覆盖了大量稳定性问题:读取无人写入的命名管道(如被锁定的 secrets manager 挂载的 .env)时改为 20 秒后失败返回;多次自动压缩失败导致 Prompt is too long 的问题;本地 MCP 服务器刷爆标准输出导致终端冻结且 Ctrl+C 失效;SSE 类型 MCP 服务器在事件流中断重连后拒绝所有工具调用等问题均得到处理。另外 claude auth login 在登录未保存成功时现在会以退出码 1 结束并说明原因,而不是误报 Login successful。

Current read

这版把 Claude Code 和 MCP 生态打通了:别人在 MCP 服务器里写的技能现在能直接挂进你的斜杠菜单。运维和企业用户重点看 PreSkillShellCommand 钩子,可以在技能执行 shell 命令前做拦截。用终端版、IDE 插件或 Agent SDK 的开发者建议升级,修了十几个卡死和内存泄漏问题。

11 sources52° AI heatLast updated 2026/11/25 01:32:14

Evidence

11 sources
Primary sourceClaude Code: GitHub Releases
View source
Related source 2Boris Cherny
View source
Related source 3claudedevs
View source
Related source 4TestingCatalog
View source
Related source 8marktechpost
View source
Related source 9Tech in Asia
View source
Related source 10Techsauce
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.