/**
 * Logger that writes exclusively to stderr — safe for stdio MCP transport.
 * console.log is FORBIDDEN in stdio servers as it corrupts JSON-RPC messages.
 */
export const logger = {
    info: (msg, ...args) => console.error(`[enfusion-mcp] ${msg}`, ...args),
    warn: (msg, ...args) => console.error(`[enfusion-mcp] WARN: ${msg}`, ...args),
    error: (msg, ...args) => console.error(`[enfusion-mcp] ERROR: ${msg}`, ...args),
    debug: (msg, ...args) => {
        if (process.env.ENFUSION_MCP_DEBUG)
            console.error(`[enfusion-mcp] DEBUG: ${msg}`, ...args);
    },
};
//# sourceMappingURL=logger.js.map