The Claude Code Changelog
All Episodes
Claude Code 2.1.332: MCP Server Skills and PreSkillShellCommand

Claude Code 2.1.332: MCP Server Skills and PreSkillShellCommand

0:00|0:00

Explore how beta MCP server skills work in the slash menu and how the new PreSkillShellCommand hook lets you inspect or block inline shell commands during skill loading. We also cover quality-of-life fixes for failed login exit codes, 20-second named pipe timeouts, terminal freezes, and cross-session messaging.


Chapter 1

Claude Code v2.1.332: MCP Skills and PreSkillShellCommand

James Turner

Claude Code version 2.1.332 dropped on November 25, 2026, brought to you by Jellypod AI. If you use MCP servers or custom skills, there is a pair of connected updates in this release you need to know about. First, MCP servers can now expose skills directly inside Claude Code as a beta feature. They show up in your slash menu using the server colon skill naming format, while your local, personal, project, and plugin skills keep their existing names.

Lachlan Reed

And the second half of that pair is a new hook lifecycle event called PreSkillShellCommand. It fires right before a skill or command's inline shell command executes as the skill loads, which lets your hook refuse or block that command before it ever runs. It is basically the bouncer at the door for skill loading.

James Turner

Here is why that matters in practice. Skills can run inline shell commands to inject live context, like git diffs or environment state, straight into the prompt when they load. Because those inline commands execute during skill loading, they happen BEFORE the agentic tool call loop where PreToolUse fires. So if you are connecting an MCP server that ships its own skills into your slash menu, PreToolUse will not catch those inline commands. PreSkillShellCommand gives developers and admins a dedicated gate to inspect or block them first.

Lachlan Reed

Using it is straightforward if you have configured hooks before. For MCP server skills, just connect an MCP server that provides them, and they appear automatically in your slash menu under server colon skill. For the hook, add a PreSkillShellCommand entry under hooks in your user settings at tilde slash dot claude slash settings dot json, your project dot claude slash settings dot json, or in managed policy settings. You use the standard hook structure with a matcher group and a command, HTTP, or MCP tool handler. Your handler receives JSON context on standard input and can return a decision to block the injected shell command.

James Turner

There are two caveats to watch out for before you roll this out to a team. First, backward compatibility. On Claude Code version 2.1.331 and older, any settings file that references PreSkillShellCommand will open a dialog at startup because older clients do not recognize the event yet. Second, skills from MCP servers are explicitly marked as beta in 2.1.332, so expect edges.

Lachlan Reed

Beyond skills and hooks, 2.1.332 also cleans up a bunch of annoying paper cuts. Claude auth login no longer falsely prints Login successful when a claude.ai login cannot actually be saved. It now exits with code 1 and tells you what to check, like a leftover lock file or a full disk. Also, Read, at mentions, and compaction will no longer hang forever on an unwritten named pipe, such as a dot env file mounted by a locked secrets manager. The read now times out and fails after 20 seconds.

James Turner

They also fixed terminal freezes when a local MCP server floods standard output or when a hook prints endless output. Hook failure logs over roughly 50,000 characters are now shortened so they do not blow up your context window. Finally, for cross session messaging, there is a new Always deliver option for held messages from other sessions, plus a persistent footer line whenever a flagged message has your session on a different model, staying there until you switch with slash model. Solid, practical release all around.