Skip to main content

MCP_MAX_RESOURCE_BYTES

Constant MCP_MAX_RESOURCE_BYTES 

Source
pub const MCP_MAX_RESOURCE_BYTES: usize = _; // 16_777_216usize
Expand description

Hardening cap (same review finding): the maximum joined size of resources/read’s concatenated text contents McpClient::read_resource will return before erroring out instead of buffering an unbounded string.