Skip to main content
Glama

MCP Template

by pidanmeng
logger.ts511 B
import type { SerializableValue } from 'fastmcp'; type Log = { debug: (message: string, data?: SerializableValue) => void; error: (message: string, data?: SerializableValue) => void; info: (message: string, data?: SerializableValue) => void; warn: (message: string, data?: SerializableValue) => void; }; let logger: Log; export function useLogger(log?: Log) { if (log) { logger = log; } if (!logger) { throw new Error('Logger not initialized'); } return logger; }

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/pidanmeng/mcp-template'

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