pub fn authority_of(endpoint: &str) -> String
The Host authority (host[:port]) of an MCP endpoint URL — the @authority AAuth signs over. localhost for non-TCP endpoints. Best-effort (a parse failure yields an empty string).
Host
@authority
localhost