hotel-mcp
Version:
Hotel MCP Server - Read-only hotel information with rich media support for Claude Desktop
58 lines (47 loc) • 1.4 kB
JavaScript
/**
* Hotel MCP - Pre-uninstall script
*
* Clean uninstallation with helpful guidance for users.
*/
const colors = {
reset: '\x1b[0m',
bright: '\x1b[1m',
red: '\x1b[31m',
green: '\x1b[32m',
yellow: '\x1b[33m',
blue: '\x1b[34m',
cyan: '\x1b[36m'
};
function log(message, color = 'reset') {
console.log(`${colors[color]}${message}${colors.reset}`);
}
function displayUninstallMessage() {
log('', 'reset');
log('🏨 Hotel MCP Server - Uninstalling', 'cyan');
log('═'.repeat(40), 'blue');
log('👋 Thank you for using Hotel MCP!', 'green');
log('', 'reset');
log('📋 Manual Cleanup (if needed):', 'yellow');
log(' • Remove hotel-mcp from Claude Desktop config', 'reset');
log(' • Delete any .env files with credentials', 'reset');
log(' • Clear any cached data if desired', 'reset');
log('', 'reset');
log('🔄 Reinstall anytime with:', 'blue');
log(' npx hotel-mcp', 'cyan');
log('', 'reset');
log('📚 Feedback welcome at:', 'yellow');
log(' https://github.com/hotel-mcp/hotel-mcp/issues', 'reset');
log('', 'reset');
}
function main() {
try {
displayUninstallMessage();
} catch (error) {
log(`❌ Pre-uninstall error: ${error.message}`, 'red');
}
}
if (require.main === module) {
main();
}
module.exports = { main };