Skip to main content

validate_import_url

Function validate_import_url 

Source
pub async fn validate_import_url(url: &str) -> Result<(), MCPError>
Expand description

Validate a user-supplied import URL and return the resolved, allowed host:port authority. Rejects non-http(s) schemes and any host that resolves to a blocked address.