Skip to main content
Glama
LarouTech

MCP Server TypeScript Boilerplate

by LarouTech
logger.ts642 B
// src/utils/logger.ts - Logging utility export const logger = { info: (message: string, ...args: any[]) => { console.log(`[INFO] ${new Date().toISOString()}: ${message}`, ...args); }, error: (message: string, ...args: any[]) => { console.error(`[ERROR] ${new Date().toISOString()}: ${message}`, ...args); }, warn: (message: string, ...args: any[]) => { console.warn(`[WARN] ${new Date().toISOString()}: ${message}`, ...args); }, debug: (message: string, ...args: any[]) => { if (process.env.LOG_LEVEL === "debug") { console.debug(`[DEBUG] ${new Date().toISOString()}: ${message}`, ...args); } }, };

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/LarouTech/mcp-server-boilerplate'

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