Skip to main content

handler

Function handler 

Source
pub async fn handler(
    __arg0: State<ProxyState>,
    __arg1: Path<String>,
    req: Request<Body>,
) -> Response
Expand description

The single entry point for every /mcp/{server} request. Mounted on the main proxy router (feature-gated in proxy::start_proxy), so it shares ProxyState — the upstream client and the registry snapshot.