bash

Stop MCP tool output from being truncated

Claude Code caps tool output at 25,000 tokens by default — raise MAX_MCP_OUTPUT_TOKENS when a server's responses get cut off.

  • claude-code
  • config
  • env
bash
# default is 25000 tokens
export MAX_MCP_OUTPUT_TOKENS=50000

# related startup / per-call timeouts (milliseconds)
export MCP_TIMEOUT=30000       # server startup
export MCP_TOOL_TIMEOUT=60000  # per tool call
← All tech bits