Skip to main content
Glama

Google Sheets MCP Server

by stephenyu
GPL 3.0
logger.js1.12 kB
export class Logger { constructor() { this.logLevel = process.env.LOG_LEVEL || 'info'; this.debugMode = process.env.DEBUG === 'true'; } _log(level, message, ...args) { const timestamp = new Date().toISOString(); const prefix = `[${timestamp}] [${level.toUpperCase()}]`; if (args.length > 0) { console.error(prefix, message, ...args); } else { console.error(prefix, message); } } debug(message, ...args) { if (this.debugMode || this.logLevel === 'debug') { this._log('debug', message, ...args); } } info(message, ...args) { if (['debug', 'info'].includes(this.logLevel)) { this._log('info', message, ...args); } } warn(message, ...args) { if (['debug', 'info', 'warn'].includes(this.logLevel)) { this._log('warn', message, ...args); } } error(message, ...args) { if (['debug', 'info', 'warn', 'error'].includes(this.logLevel)) { this._log('error', message, ...args); } } // Special method for MCP-specific logging mcp(message, ...args) { this.debug(`[MCP] ${message}`, ...args); } }

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/stephenyu/mcp-googlesheet'

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