UNPKG

@auth0/auth0-mcp-server

Version:

Auth0 Model Context Protocol (MCP) Server (Beta) — A secure and extendable implementation of an MCP server that provides AI assistants with controlled access to the Auth0 Management API through natural language. This project is in beta and not intended fo

21 lines (20 loc) • 834 B
import type { Tool } from './types.js'; /** * Default scopes to be used when no specific scopes are provided. * This is an empty array, meaning no scopes are required by default to * promote security by default. */ export declare const DEFAULT_SCOPES: string[]; /** * Returns a unique list of all required scopes across all tools. */ export declare function getAllScopes(): string[]; /** * Returns all tools whose required scopes are fully satisfied by the provided scopes. * Tools without declared requiredScopes are excluded. * * @param {string[]} scopes - The set of OAuth scopes available to the caller. * @returns {Tool[]} - Tools that declare requiredScopes and whose every required * scope is present in the provided set. */ export declare function getToolsForScopes(scopes: string[]): Tool[];