Skip to main content
Glama

MCP FishAudio Server

by da-okazaki
logger.ts924 B
/** * Logger utility for MCP environment * Writes debug messages to stderr only when DEBUG environment variable is set * This prevents interfering with MCP's JSON communication */ const isDebug = process.env.DEBUG === 'true' || process.env.DEBUG === '1'; export const logger = { debug: (message: string, ...args: any[]) => { if (isDebug) { process.stderr.write(`[DEBUG] ${message} ${args.length > 0 ? JSON.stringify(args) : ''}\n`); } }, error: (message: string, error?: any) => { if (isDebug) { const errorInfo = error instanceof Error ? `${error.message}\n${error.stack}` : error ? JSON.stringify(error) : ''; process.stderr.write(`[ERROR] ${message} ${errorInfo}\n`); } }, info: (message: string, ...args: any[]) => { if (isDebug) { process.stderr.write(`[INFO] ${message} ${args.length > 0 ? JSON.stringify(args) : ''}\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/da-okazaki/mcp-fish-audio-server'

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