Skip to main content
Glama
util-map-includes.js428 B
import { isScalar } from '../nodes/identity.js'; function mapIncludes(ctx, items, search) { const { uniqueKeys } = ctx.options; if (uniqueKeys === false) return false; const isEqual = typeof uniqueKeys === 'function' ? uniqueKeys : (a, b) => a === b || (isScalar(a) && isScalar(b) && a.value === b.value); return items.some(pair => isEqual(pair.key, search)); } export { mapIncludes };

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