oag-mcp
    Preparing search index...

    Interface Principal

    An authenticated caller of the MCP server. Created by MCP authentication, checked by the authorization policy, and carried through the runtime, the request broker and credential providers.

    interface Principal {
        clientId?: string;
        expiresAt?: number;
        id: string;
        kind: "oauth" | "local" | "anonymous" | "static";
        name?: string;
        scopes: string[];
    }
    Index
    clientId?: string

    OAuth client id, when present.

    expiresAt?: number

    Token expiry (seconds since epoch), when known.

    id: string

    Stable opaque identifier used in logs and policies.

    kind: "oauth" | "local" | "anonymous" | "static"
    name?: string

    Configured name (static bearer / stdio), when not personal data.

    scopes: string[]