pinnedEndpointHost

Resolve, classify and PIN the host of an MCP client transport endpoint to a numeric address, returning the address to connectTCP to. The endpoint is user-configured (the URL the host passed to McpClient), so the allowUserConfigured SSRF policy is used: the address is resolved and pinned for TOCTOU stability, but loopback/private/link-local targets are permitted (a developer may legitimately point the client at localhost or an internal service). Only a fail-closed classification (unresolvable / malformed host) throws. The original ep.host is still used for the TLS SNI / Host header by openClientStream/buildHttpRequest; only the connect target changes. @safe.

@safe
string
pinnedEndpointHost