Skip to main content
Glama

Fragment MCP Server

utils.ts300 B
export const escapeRegExp = (s: string) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); export const safeRegExp = (pattern: string) => { try { return new RegExp(escapeRegExp(pattern)); } catch { // Intentionally return a regex that matches nothing as a safe fallback return /$^/; } };

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/helenkwok/openbim-mcp'

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