UNPKG

@synvo_ai/mcp-server

Version:

Enterprise-grade MCP server for Synvo AI - File management and AI query capabilities for Claude Desktop, VSCode, and Cursor

44 lines 1.83 kB
#!/usr/bin/env node /** * Synvo MCP Server - License Deactivation CLI * Usage: synvo-deactivate */ import { deactivateLicense, loadLicense } from './license.js'; import * as readline from 'readline'; const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); function askConfirmation() { return new Promise((resolve) => { rl.question('Are you sure? (y/N): ', (answer) => { rl.close(); resolve(answer.toLowerCase() === 'y' || answer.toLowerCase() === 'yes'); }); }); } async function main() { console.log(` ╔═══════════════════════════════════════════════════════════════╗ ║ Synvo MCP Server - License Deactivation ║ ╚═══════════════════════════════════════════════════════════════╝ `); const license = loadLicense(); if (!license) { console.log('ℹ️ No license is currently activated.'); console.log(' You are already using the Free tier.\n'); process.exit(0); } console.log('⚠️ This will deactivate your license and revert to the Free tier:'); console.log(` Current License: ${license.license_key}`); console.log(` Current Tier: ${license.tier.toUpperCase()}\n`); const confirmed = await askConfirmation(); if (!confirmed) { console.log('\n❌ Deactivation cancelled.\n'); process.exit(0); } deactivateLicense(); console.log('\n🎯 You can reactivate anytime with: synvo-activate YOUR_LICENSE_KEY\n'); } main(); //# sourceMappingURL=cli-deactivate.js.map