Skip to main content
Glama
note.jsโ€ข1.21 kB
"use strict"; const _ = require('../utils/under-dash'); class Note { constructor(note) { this.note = note; } get model() { let value = null; switch (typeof this.note) { case 'string': value = { type: 'note', note: { texts: [{ text: this.note }] } }; break; default: value = { type: 'note', note: this.note }; break; } // Suitable for all cell comments return _.deepMerge({}, Note.DEFAULT_CONFIGS, value); } set model(value) { const { note } = value; const { texts } = note; if (texts.length === 1 && Object.keys(texts[0]).length === 1) { this.note = texts[0].text; } else { this.note = note; } } static fromModel(model) { const note = new Note(); note.model = model; return note; } } Note.DEFAULT_CONFIGS = { note: { margins: { insetmode: 'auto', inset: [0.13, 0.13, 0.25, 0.25] }, protection: { locked: 'True', lockText: 'True' }, editAs: 'absolute' } }; module.exports = Note; //# sourceMappingURL=note.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