Skip to main content
Glama
string-builder.jsโ€ข649 B
"use strict"; // StringBuilder - a way to keep string memory operations to a minimum // while building the strings for the xml files class StringBuilder { constructor() { this.reset(); } get length() { return this._buf.length; } toString() { return this._buf.join(''); } reset(position) { if (position) { while (this._buf.length > position) { this._buf.pop(); } } else { this._buf = []; } } addText(text) { this._buf.push(text); } addStringBuf(inBuf) { this._buf.push(inBuf.toString()); } } module.exports = StringBuilder; //# sourceMappingURL=string-builder.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