HttpEndpoint

The parsed components of an MCP endpoint URL, shared by every raw-TCP request path so host/port/scheme parsing lives in exactly one place. tls is true for an https:///wss:// scheme; port defaults to the scheme's well-known port (443 when tls, else 80) when the URL omits it, so a TLS URL can never be silently treated as plaintext on port 80.

struct HttpEndpoint {
string host;
ushort port;
string path;
bool tls;
}