Skip to main content
Glama

Google Workspace MCP Server

logger.ts1.08 kB
// Mock logger that respects LOG_MODE setting const LOG_MODE = (process.env.LOG_MODE || 'normal') as 'normal' | 'strict'; const isJsonRpc = (msg: any): boolean => { if (typeof msg !== 'string') return false; return msg.startsWith('{"jsonrpc":') || msg.startsWith('{"id":'); }; export default { error: (...args: any[]) => process.stderr.write(args.join(' ') + '\n'), warn: (...args: any[]) => { if (LOG_MODE === 'strict' || isJsonRpc(args[0])) { process.stderr.write(args.join(' ') + '\n'); } else { process.stdout.write('[WARN] ' + args.join(' ') + '\n'); } }, info: (...args: any[]) => { if (LOG_MODE === 'strict' || isJsonRpc(args[0])) { process.stderr.write(args.join(' ') + '\n'); } else { process.stdout.write('[INFO] ' + args.join(' ') + '\n'); } }, debug: (...args: any[]) => { if (!process.env.DEBUG) return; if (LOG_MODE === 'strict' || isJsonRpc(args[0])) { process.stderr.write(args.join(' ') + '\n'); } else { process.stdout.write('[DEBUG] ' + args.join(' ') + '\n'); } } };

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/aaronsb/google-workspace-mcp'

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