Skip to main content
Glama
argsOrArgArray.ts•297 B
const { isArray } = Array; /** * Used in operators and functions that accept either a list of arguments, or an array of arguments * as a single argument. */ export function argsOrArgArray<T>(args: (T | T[])[]): T[] { return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]); }

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/samihalawa/brevo-mcp'

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