Under the hood
MCP tool and notification names are now truncated and sanitized before appearing in logs
What
When Claude Code's internal MCP (Model Context Protocol) host logs which tool is executing or which notification method was received, it now truncates the name to 64 characters and converts it to a safe JSON string before writing it to the debug or info log, instead of inserting the raw name directly.
Why
This prevents an MCP server from injecting unexpected or oversized content into Claude Code's logs via a crafted tool or notification name.