What probably matters to youSection of the release
What
The character limit used to truncate MCP (Model Context Protocol) tool output and instructions was previously a fixed, hardcoded number. It can now be set with the environment variable CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH. If the variable isn't set, Claude Code falls back to the same default length as before.
Why
This lets users or teams with MCP tools that produce longer descriptions or output raise the truncation limit instead of being stuck with the built-in default.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on Connect Claude Code to tools via MCP touched a line naming CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH after this was published.Descriptions and instructions from some of the MCP servers that Anthropic hosts at `api.anthropic.com` reach Claude in full. To change the limits for the other MCP servers in your session, set [`CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH`](/do…mcpsee the edit
Confirmed sinceAnthropic's documentation has since written up CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH, on Connect Claude Code to tools via MCP.To change the limits for every MCP server in your session, set [`CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH`](/docs/en/env-vars#variables) to a number of characters. The number you set replaces both limits: `8192`, for example, raises the shor…mcpsee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH, on Connect Claude Code to tools via MCP.
Anthropic's release notes agreeAdded CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH to change the 2,048-character cap on MCP tool descriptions and server instructions for every…
The name it cites is new in this buildNew in this build: CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH