---
id: 20261126-T0-16
title: "Claude Code v2.1.332：支持MCP服务器技能，新增PreSkillShellCommand钩子"
title_en: "Claude Code v2.1.332 Adds MCP Server Skills and PreSkillShellCommand Hook"
url: https://ai.daily.yangsir.net/daily/20261126-T0-16
issue_date: 2026-11-26
publish_date: 2026-11-25T01:32:14.000Z
category: release
source_name: "Claude Code Releases"
source_url: https://github.com/anthropics/claude-code/releases/tag/v2.1.332
---

# Claude Code v2.1.332：支持MCP服务器技能，新增PreSkillShellCommand钩子

Claude Code发布v2.1.332，新增从MCP服务器引入技能（beta），在斜杠菜单中以server:skill形式显示，其他技能保留原名。同时新增PreSkillShellCommand钩子事件，可在技能或命令加载时拒绝其内联shell命令。在2.1.331及更早版本中，命名该钩子的设置文件会弹出一个对话框。

## English Version

**Claude Code v2.1.332 Adds MCP Server Skills and PreSkillShellCommand Hook**

Claude Code released v2.1.332, adding skills from MCP servers (beta) that appear as server:skill in the slash menu while other skills keep their names. It also adds a PreSkillShellCommand hook event that can refuse a skill's or command's inline shell commands as it loads. On 2.1.331 and older, a settings file naming this hook opens a dialog.

---

**来源**：[Claude Code Releases](https://github.com/anthropics/claude-code/releases/tag/v2.1.332)

**详情页**：https://ai.daily.yangsir.net/daily/20261126-T0-16

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*