Skip to main content
Glama

JSON MCP Server

MIT License
80
78
  • Apple
  • Linux
isEmpty.js626 B
define(['./isArray', './keys', './_getLength', './isArguments', './isString'], function (isArray, keys, _getLength, isArguments, isString) { // Is a given array, string, or object empty? // An "empty" object has no enumerable own-properties. function isEmpty(obj) { if (obj == null) return true; // Skip the more expensive `toString`-based type checks if `obj` has no // `.length`. var length = _getLength(obj); if (typeof length == 'number' && ( isArray(obj) || isString(obj) || isArguments(obj) )) return length === 0; return _getLength(keys(obj)) === 0; } return isEmpty; });

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