Hiyve Components - v1.0.0
    Preparing search index...

    An MCP (Model Context Protocol) token for programmatic API access.

    MCP tokens are long-lived credentials with configurable permissions and optional IP restrictions. The raw token value is only available at creation time and cannot be retrieved afterward.

    interface MCPToken {
        brandOrgId: string;
        createdAt: string;
        createdBy: string;
        expiresAt: string;
        id: string;
        isRevoked: boolean;
        lastUsed?: string;
        metadata: { description?: string; ipRestriction?: string[]; name?: string };
        permissions: string[];
        scope: string;
        updatedAt: string;
        usageCount: number;
    }
    Index

    Properties

    brandOrgId: string

    Organization ID

    createdAt: string

    When the token was created

    createdBy: string

    User who created the token

    expiresAt: string

    When the token expires

    id: string

    Token record ID

    isRevoked: boolean

    Whether the token has been revoked

    lastUsed?: string

    When the token was last used

    metadata: { description?: string; ipRestriction?: string[]; name?: string }

    Token metadata

    Type Declaration

    • Optionaldescription?: string

      Token description

    • OptionalipRestriction?: string[]

      CIDR ranges restricting token usage

    • Optionalname?: string

      Human-readable token name

    permissions: string[]

    Granted permissions (e.g., ['mcp:data:read'])

    scope: string

    Token scope (always 'mcp')

    updatedAt: string

    When the token record was last updated

    usageCount: number

    Total number of times the token has been used