UNPKG

@benborla29/mcp-server-mysql

Version:

MCP server for interacting with MySQL databases based on Node

16 lines (15 loc) 404 B
const ENABLE_LOGGING = ["true", "1"].includes(process.env.ENABLE_LOGGING || 'false'); export function log(type = 'info', ...args) { if (!ENABLE_LOGGING) return; switch (type) { case 'info': console.info(...args); break; case 'error': console.error(...args); break; default: console.log(...args); } }