@aurracloud/mcp-cli
Version:
A command-line tool to install, manage, and setup MCP (Model Context Protocol) servers with Docker support
26 lines • 950 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.logoutCommand = logoutCommand;
const logger_1 = require("../utils/logger");
const auth_1 = require("../utils/auth");
/**
* Command to logout from the MCP registry
*/
async function logoutCommand(options) {
const registry = options.registry || 'https://elizacloud-app.vercel.app';
logger_1.logger.info(`Logging out from ${registry}...`);
if (!(0, auth_1.isAuthenticated)(registry)) {
logger_1.logger.warn('You are not currently logged in to this registry.');
return;
}
try {
(0, auth_1.removeAuth)(registry);
logger_1.logger.success('✅ Successfully logged out!');
logger_1.logger.info('Your API key has been removed from local configuration.');
}
catch (error) {
logger_1.logger.error('Logout failed:', error.message);
process.exit(1);
}
}
//# sourceMappingURL=logout.js.map