Claude Code v2.1.332: MCP server skills beta, PreSkillShellCommand hook
- ID: 15aa96a9
- 原文链接: https://github.com/anthropics/claude-code/releases/tag/v2.1.332
- 作者: anthropics/claude-code
- 日期: 2026-11-25
- 更新: N/A
- 分类: coding
- 来源类型: github
- 标签: claude-code, mcp, skills, hooks, release
- 质量评分: 4/5
- 抓取时间: 2026-11-26T15:44:07Z
中文导读
Claude Code v2.1.332(11 月 25 日):MCP 服务器 skills 进入 beta,斜杠菜单显示 server:skill 形态;新增 PreSkillShellCommand hook,skill 或命令加载阶段即可拒绝内联 shell,旧版 settings 命名该事件会触发弹窗;跨会话被挂起消息新增 Always deliver另修一批 Code Mode 与稳定性问题(resume 丢最后回复subagent 长脚本 stalled超限输入静默跳过等)技能分发与加载期权限是本版主轴,升级后应检查菜单与 settings 里的 hook 声明
为什么值得关注
Claude Code v2.1.332: MCP server skills beta (server:skill) plus a PreSkillShellCommand hook blocking inline shell at load
Release body hydrated from the vault research package (01-dump-releases, fetched from GitHub releases 2026-11-26; release time 2026-11-25T01:32:14Z) and cross-checked against the last30days 2026-11-26 brief.
关键信息
- 标题: Claude Code v2.1.332: MCP server skills beta, PreSkillShellCommand hook
- 作者: anthropics/claude-code
- 链接: https://github.com/anthropics/claude-code/releases/tag/v2.1.332
- 发布时间: 2026-11-25
- 分类: coding
- 关联标签: claude-code, mcp, skills, hooks, release
English Summary
Claude Code v2.1.332 (released 2026-11-25T01:32Z) makes MCP server skills a beta feature: skills mounted by MCP servers appear in the slash menu as server:skill entries. A new PreSkillShellCommand hook can block inline shell commands before a skill's injected command runs (matcher: Bash/PowerShell); naming this event in settings on 2.1.331 or older triggers a migration dialog. Cross-session suspended messages gain Always deliver. The release also fixes a batch of Code Mode and stability issues: input lists over 4096 silently skipped, slow commands backgrounded without notice, stopped commands still waiting minutes, subagent scripts over ten minutes hitting Agent stalled, resumes dropping the last reply, auth failures reporting success. Skill distribution plus load-time permission gating is the release's main axis.
Source Excerpts
Release body v2.1.332 (vault dump, fetched 2026-11-26)
MCP server skills beta;菜单里显示 server:skill。PreSkillShellCommand:skill / command 加载时内联 shell 可拒;2.1.331 及更旧 settings 命名该事件会启动弹窗。Code Mode 修复节选:输入 list >4096 静默跳过;慢命令进后台空输出未通知;已 stop 的命令仍等数分钟;subagent 脚本 >10 分钟 Agent stalled;Agent SDK / claude -p resume 丢最后回复。
Hooks docs (code.claude.com/docs/en/hooks, vault dump)
Before a skill's injected shell command runs. Can block the command. matcher: Bash / PowerShell. 与 Code Mode 不同层:skill 加载时 shell,不是 REPL 批工具。