Skip to main content
Glama
strip-quotes.js•555 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StripQuotes = void 0; /** * Strips quotes around commands so that they can run on the current shell. */ class StripQuotes { parse(commandInfo) { let { command } = commandInfo; // Removes the quotes surrounding a command. if (/^"(.+?)"$/.test(command) || /^'(.+?)'$/.test(command)) { command = command.slice(1, command.length - 1); } return { ...commandInfo, command }; } } exports.StripQuotes = StripQuotes;

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/samihalawa/brevo-mcp'

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