Skip to main content
Glama
logger.ts625 B
class Logger { private isDev: boolean constructor() { this.isDev = import.meta.env.DEV } public log(...message: any) { if (this.isDev) { console.log(...message) } } public debug(...message: any) { if (this.isDev) { console.debug(...message) } } public info(...message: any) { if (this.isDev) { console.info(...message) } } public warn(...message: any) { if (this.isDev) { console.warn(...message) } } public error(...message: any) { if (this.isDev) { console.error(...message) } } } export const logger = new Logger()

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/itcook/graphiti-mcp-pro'

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