Skip to main content
Glama
findmine

FindMine Shopping Stylist

Official
by findmine
logger.ts781 B
/** * Logger utility for the FindMine MCP server. * * Important: The MCP protocol expects only valid JSON on stdout. * We use process.stderr.write to avoid interfering with the protocol. */ const DEBUG_MODE = process.env.FINDMINE_DEBUG === 'true'; /** * Silent logger that only outputs in debug mode. * All output goes to stderr to avoid corrupting MCP JSON protocol on stdout. */ export const logger = { log: (message: string, ...args: unknown[]): void => { if (DEBUG_MODE) { process.stderr.write(`[INFO] ${message} ${args.map((a) => String(a)).join(' ')}\n`); } }, error: (message: string, ...args: unknown[]): void => { if (DEBUG_MODE) { process.stderr.write(`[ERROR] ${message} ${args.map((a) => String(a)).join(' ')}\n`); } }, };

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/findmine/findmine-mcp'

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