Skip to main content
Glama
scopes.ts695 B
import { TOOLS } from '../tools/index.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 const DEFAULT_SCOPES: string[] = []; /** * Returns a unique list of all required scopes across all tools. * * @returns {string[]} - An array of unique scopes required by all tools. */ export function getAllScopes(): string[] { // Use flatMap to extract and flatten all scopes, with empty fallback const allScopes = TOOLS.flatMap((tool) => tool._meta?.requiredScopes ?? []); // Create unique set from collected scopes return [...new Set(allScopes)]; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/auth0/auth0-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server