INNER CODE UNIT · Rust

run_cross_app_access_client

modelcontextprotocol/rust-sdk · conformance/src/bin/client.rs:843

async fn run_cross_app_access_client(
    server_url: &str,
    ctx: &ConformanceContext,
) -> anyhow::Result<()> {
    // For now, fall back to standard auth flow
    // The cross-app-access test is an extension scenario
    run_auth_client(server_url, ctx).await
}

// ─── Helpers ────────────────────────────────────────────────────────────────

/// Fetch an authorization URL headlessly, returning the callback parameters.
async fn headless_authorize(auth_url: &str) -> anyhow::Result<AuthorizationCallback> {
    let http = reqwest::Client::builder()
        .redirect(reqwest::redirect::Policy::none())
        .build()?;
    let resp = http.get(auth_url).send().await?;
    let location = resp

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…