Skip to main content
Glama
logger.ts552 B
export class Logger { static info(message: string, meta?: any) { console.log(`[INFO] ${new Date().toISOString()} - ${message}`, meta ? JSON.stringify(meta) : ''); } static error(message: string, error?: any) { console.error(`[ERROR] ${new Date().toISOString()} - ${message}`, error || ''); } static debug(message: string, meta?: any) { if (process.env.NODE_ENV === 'development') { console.debug(`[DEBUG] ${new Date().toISOString()} - ${message}`, meta ? JSON.stringify(meta) : ''); } } }

Latest Blog Posts

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/compiledwithproblems/file-context-mcp'

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