Skip to main content
Glama

JSON MCP Server

MIT License
80
78
  • Apple
  • Linux
toArray.js694 B
import isArray from './isArray.js'; import { slice } from './_setup.js'; import isString from './isString.js'; import isArrayLike from './_isArrayLike.js'; import map from './map.js'; import identity from './identity.js'; import values from './values.js'; // Safely create a real, live array from anything iterable. var reStrSymbol = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; export default function toArray(obj) { if (!obj) return []; if (isArray(obj)) return slice.call(obj); if (isString(obj)) { // Keep surrogate pair characters together. return obj.match(reStrSymbol); } if (isArrayLike(obj)) return map(obj, identity); return values(obj); }

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/GongRzhe/JSON-MCP-Server'

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