UNPKG

@auth0/auth0-mcp-server

Version:

Auth0 Model Context Protocol (MCP) Server (Beta) — A secure and extendable implementation of an MCP server that provides AI assistants with controlled access to the Auth0 Management API through natural language. This project is in beta and not intended fo

28 lines • 758 B
import debug from 'debug'; // Set up debug logger export const log = debug('auth0-mcp'); // Make sure debug output goes to stderr debug.log = (...args) => { const msg = `[DEBUG:auth0-mcp] ${args.join(' ')}\n`; process.stderr.write(msg); return true; }; export const logInfo = (...args) => { if (process.env.DEBUG == 'auth0-mcp') { return; } const msg = `[INFO:auth0-mcp] ${args.join(' ')}\n`; process.stderr.write(msg); return true; }; export const logError = (msg, error = undefined) => { const formattedMsg = `[ERROR:auth0-mcp] ${msg}`; if (error) { console.error(formattedMsg, error); } else { console.error(formattedMsg); } return true; }; //# sourceMappingURL=logger.js.map