@adcp/sdk API Reference - v14.0.0-beta.6
    Preparing search index...

    Interface AgentConfig

    interface AgentConfig {
        id: string;
        name: string;
        agent_uri: string;
        protocol: "mcp" | "a2a";
        auth_token?: string;
        oauth_tokens?: AgentOAuthTokens;
        oauth_client?: AgentOAuthClient;
        oauth_resource?: string;
        oauth_client_credentials?: AgentOAuthClientCredentials;
        headers?: Record<string, string>;
        request_signing?: AgentRequestSigningConfig;
    }
    Index

    Properties

    id: string
    name: string
    agent_uri: string
    protocol: "mcp" | "a2a"
    auth_token?: string

    Static authentication token Use this for API keys or pre-issued bearer tokens

    oauth_tokens?: AgentOAuthTokens

    OAuth tokens for dynamic authentication The client will automatically refresh tokens when they expire

    oauth_client?: AgentOAuthClient

    OAuth client registration info Stored after dynamic client registration

    oauth_resource?: string

    Operator-supplied RFC 8707 resource override for authorization-code OAuth flows. When present, this takes precedence over protected-resource metadata and is reused for authorization, code exchange, and refresh.

    Prefer standards-compliant protected-resource metadata. This escape hatch exists for legacy or non-conformant integrations whose canonical token audience cannot be discovered from the agent endpoint.

    oauth_client_credentials?: AgentOAuthClientCredentials

    OAuth 2.0 client credentials grant configuration (M2M). When present, tokens in oauth_tokens are refreshed by re-exchanging these credentials against token_endpoint — there is no user-facing authorization flow.

    headers?: Record<string, string>

    Additional HTTP headers to include in every request to this agent. Useful for sending API keys, org IDs, or other vendor-specific headers alongside the standard authorization token.

    Example:

    headers: {
    'x-api-key': 'quota-key',
    'x-org-id': 'org-123'
    }
    request_signing?: AgentRequestSigningConfig

    Optional — when set, outbound requests to this agent are signed per RFC 9421 for operations the agent advertises in its request_signing capability block (fetched once via get_adcp_capabilities and cached by the client). See AgentRequestSigningConfig.