Skip to main content

MCP_MAX_RESPONSE_SIZE

Constant MCP_MAX_RESPONSE_SIZE 

Source
pub const MCP_MAX_RESPONSE_SIZE: Config<usize>;
Expand description

Maximum size (in bytes) of MCP tool response content after JSON serialization. Responses exceeding this limit are rejected with a clear error telling the agent to narrow its query. Keeps responses within LLM context window limits.