4 pages for max_mcp_output_tokens.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…ad the output back in portions. To change the token limit, set the [`MAX_MCP_OUTPUT_TOKENS`](/docs/en/env-vars) environment variable. Unless the tool declares `anthropic/maxResultSizeChars`, a succes…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…tput to 25,000 tokens by default. To change the token limit, set the `MAX_MCP_OUTPUT_TOKENS` environment variable, for example `MAX_MCP_OUTPUT_TOKENS=50000`. The warning threshold is fixed. Unless the…
Build an MCP server for Claude
Claude Documentation · in the page
connectors/building/index
…esult size | \~150,000 characters | 25,000 tokens, configurable with `MAX_MCP_OUTPUT_TOKENS` | | Tool call timeout | 240 seconds per tool call | Configurable with `MCP_TOOL_TIMEOUT` | ### Decide whet…
Troubleshoot MCP Apps
Claude Documentation · in the page
connectors/building/mcp-apps/troubleshooting
…ode uses a separate 25,000-token default limit, configurable through `MAX_MCP_OUTPUT_TOKENS`. To stay under the threshold, keep initial tool result payloads lean: * **Paginate large results**: retur…