Skip to main content
Glama
browser-buffer-encode.jsโ€ข501 B
"use strict"; // eslint-disable-next-line node/no-unsupported-features/node-builtins const textEncoder = typeof TextEncoder === 'undefined' ? null : new TextEncoder('utf-8'); const { Buffer } = require('buffer'); function stringToBuffer(str) { if (typeof str !== 'string') { return str; } if (textEncoder) { return Buffer.from(textEncoder.encode(str).buffer); } return Buffer.from(str); } exports.stringToBuffer = stringToBuffer; //# sourceMappingURL=browser-buffer-encode.js.map

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/consigcody94/office-whisperer'

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