normalize_mcp_server_name

Function normalize_mcp_server_name 

Source
pub fn normalize_mcp_server_name(input: &str) -> String
Expand description

Convert an arbitrary registry name into a safe, stable tool identifier.

Lowercases all ASCII letters, keeps alphanumerics and _/-, and replaces runs of other characters with a single -. Leading/trailing dashes are stripped. Returns "mcp-server" if the result would be empty.