Skip to main content

detect_host_app

Function detect_host_app 

Source
pub fn detect_host_app<I, K, V>(
    transport_host: Option<&str>,
    agent_type: Option<&str>,
    env: I,
    client_name: Option<&str>,
) -> String
where I: IntoIterator<Item = (K, V)>, K: AsRef<str>, V: AsRef<str>,
Expand description

Host app of a session, from the hints in order of trust: the MCP handshake’s identified host, the ctx_agent agent type, the process environment, then mcp-client:<clientInfo.name>.