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

54 lines (50 loc) 2.01 kB
#!/usr/bin/env node /** * Synvo MCP Server - License Activation CLI * Usage: synvo-activate <LICENSE_KEY> */ import { activateLicense } from './license.js'; const args = process.argv.slice(2); if (args.length === 0) { console.log(` ╔═══════════════════════════════════════════════════════════════╗ ║ Synvo MCP Server - License Activation ║ ╚═══════════════════════════════════════════════════════════════╝ Usage: synvo-activate <LICENSE_KEY> Example: synvo-activate SYNVO-A1B2-C3D4-E5F6-G7H8 Get your license key: 🔗 https://synvo.ai/pricing Need help? 📧 support@synvo.ai 💬 https://discord.gg/synvo `); process.exit(1); } const licenseKey = args[0].trim(); // Validate license key format const LICENSE_PATTERN = /^SYNVO-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$/; if (!LICENSE_PATTERN.test(licenseKey)) { console.error('❌ Invalid license key format.'); console.error(' Expected format: SYNVO-XXXX-XXXX-XXXX-XXXX'); console.error('\n Please check your license key and try again.'); process.exit(1); } // Activate license console.log(''); activateLicense(licenseKey) .then(() => { console.log('\n🎉 Ready to use!'); console.log(' Restart your MCP client (Claude Desktop, VSCode, etc.) to apply changes.\n'); }) .catch((error) => { console.error(`\n❌ Activation failed: ${error.message}`); console.log('\nTroubleshooting:'); console.log(' 1. Check your internet connection'); console.log(' 2. Verify your license key is correct'); console.log(' 3. Ensure your subscription is active'); console.log('\nNeed help? Visit: https://synvo.ai/support\n'); process.exit(1); }); //# sourceMappingURL=cli-activate.js.map