validate_reference_url_https_only

Function validate_reference_url_https_only 

Source
pub fn validate_reference_url_https_only(url: &str) -> Result<()>
Expand description

Validate MCP add_reference input:

  • Reject SSH and http://
  • Reject subpaths
  • Accept GitHub web or clone URLs (https://github.com/org/repo[.git])
  • Accept generic https://*.git clone URLs