@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface DiagnoseOptions

    Options for runAuthDiagnosis. Most callers pass an AgentConfig and accept the defaults.

    interface DiagnoseOptions {
        allowPrivateIp?: boolean;
        skipToolCall?: boolean;
        probeToolName?: string;
        probeToolArgs?: Record<string, unknown>;
        skipRefresh?: boolean;
        timeoutMs?: number;
        includeTokens?: boolean;
    }
    Index

    Properties

    allowPrivateIp?: boolean

    Allow http:// and private-IP probe targets. Default false.

    skipToolCall?: boolean

    Skip the tools/call probe (e.g. if the agent doesn't expose a no-op tool).

    probeToolName?: string

    Name of the tool to exercise in the tools/call probe. Default: get_products. This default is AdCP-specific; for non-AdCP MCP agents, pass a tool name that exists.

    probeToolArgs?: Record<string, unknown>

    Arguments to send with the probe tool call. Default: { brief: 'diagnose-auth probe' }.

    skipRefresh?: boolean

    Skip the token-refresh attempt even when a refresh_token is available.

    timeoutMs?: number

    Replace the default timeout for individual HTTP probes (ms). Default inherits from ssrfSafeFetch (10s).

    includeTokens?: boolean

    Include raw access_token / refresh_token / id_token values in the report. Default false — tokens are replaced with <redacted length=N> markers so that --json output is safe to paste into bug reports and log aggregators.