Configuration for OAuth endpoints and metadata.

interface OAuthConfig {
    agentId: string;
    baseUrl: string;
    environment: EnvironmentName;
    oauthUrls?: Partial<OAuthUrls>;
    prompts?: string[];
    protocolVersion?: string;
    resources?: string[];
    scopes?: string[];
    serverName?: string;
    tools?: string[];
}

Hierarchy (view full)

Properties

agentId: string

Agent ID (client_id) for OAuth flows

baseUrl: string

Base URL of the MCP server (e.g., http://localhost:5001)

environment: EnvironmentName

Nevermined environment to derive OAuth URLs

oauthUrls?: Partial<OAuthUrls>

Custom OAuth URLs (overrides environment defaults)

prompts?: string[]

List of prompt names exposed by this server

protocolVersion?: string

MCP protocol version

resources?: string[]

List of resource names exposed by this server

scopes?: string[]

Scopes supported by this server

serverName?: string

Server name for MCP protocol

tools?: string[]

List of tool names exposed by this server