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

    Function McpTokenManagement

    • Management panel for creating, listing, and revoking MCP tokens.

      Opens a creation dialog where the user can set a name, select permissions, and choose an expiry period. The raw token value is displayed once after creation and can be copied to the clipboard.

      Parameters

      Returns Element

      Key Features:

      • Create tokens with name, permissions, and expiry configuration
      • Raw token displayed once after creation with copy-to-clipboard
      • List active tokens with permission badges and usage counts
      • Revoke individual tokens
      • Configurable permission options and expiry presets
      • Customizable labels, colors, styles, and icons
      <McpTokenManagement
      availablePermissions={['mcp:data:read', 'mcp:data:write']}
      expiryOptions={[
      { label: '30 days', value: '30d' },
      { label: '1 year', value: '365d' },
      ]}
      onError={(err) => console.error('Token error:', err)}
      />