Skip to main content
Glama
array.js207 B
/** * Removes nullish values from an array. * * @template T * @param {Array<T>} arr */ export function compact(arr) { return arr.filter(/** @returns {val is NonNullable<T>} */ (val) => val != null); }

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/MatheusgVentura/Project-One'

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