We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cloudflare-mcp-apps/ads-roi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
utils.js•450 B
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeRegExp = escapeRegExp;
exports.castArray = castArray;
/**
* Escapes a string for use in a regular expression.
*/
function escapeRegExp(str) {
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
/**
* Casts a value to an array if it's not one.
*/
function castArray(value) {
return (Array.isArray(value) ? value : value != null ? [value] : []);
}