Skip to main content

MAX_URL_LEN

Constant MAX_URL_LEN 

Source
pub const MAX_URL_LEN: usize = _; // 8_192usize
Expand description

Maximum byte length for the HTTP/Sse transport url.

Generous headroom over any realistic endpoint URL (including a long query string), while still bounding a hostile or hand-edited mcp.json entry (denial-of-service protection, CWE-400).

ยงExamples

use mcp_execution_core::MAX_URL_LEN;

assert!(MAX_URL_LEN > 0);