@adcp/client API Reference - v4.19.0
    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;
        headers?: Record<string, string>;
    }
    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

    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'
    }