/**
* Centralized logging utility for the Gemini MCP Server.
* Logs messages to stderr, optionally prefixed with a module name.
*
* @author Cline
*/
const DEBUG = process.env.DEBUG === 'true';
/**
* Logs a message to stderr.
* @param {string} message - The message to log.
* @param {string} [moduleName='gemini'] - The name of the module logging the message.
*/
function log(message, moduleName = 'gemini') {
if (DEBUG) {
console.error(`[${moduleName}] ${message}`);
}
}
module.exports = {
log,
};
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/Garblesnarff/gemini-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server