mcp-prompt-optimizer-local
Version:
Advanced Local Prompt Intelligence Engine - Complete privacy with sophisticated content analysis and optimization
60 lines (52 loc) โข 2.2 kB
JavaScript
/**
* Simplified Setup for MCP Prompt Optimizer Local
*/
console.log('๐๏ธ MCP Prompt Optimizer Local - Setup\n');
const hasApiKey = process.env.OPTIMIZER_API_KEY;
if (hasApiKey) {
console.log('โ
API key found in environment');
console.log('๐งช Testing license validation...\n');
const SimplifiedLicenseManager = require('./lib/license-manager');
const manager = new SimplifiedLicenseManager();
manager.validateLicense()
.then(result => {
if (result.valid) {
console.log('โ
License validation successful!');
console.log(`๐ Type: ${result.type}`);
console.log(`๐ Features: ${result.features.join(', ')}`);
console.log('\n๐ Ready to use: mcp-prompt-optimizer-local');
console.log('\n๐ Claude Desktop configuration:');
console.log(`{
"mcpServers": {
"prompt-optimizer-local": {
"command": "mcp-prompt-optimizer-local",
"env": {
"OPTIMIZER_API_KEY": "${hasApiKey.substring(0, 20)}..."
}
}
}
}`);
} else {
console.log('โ License validation failed:', result.error);
showSetupInstructions();
}
})
.catch(error => {
console.log('โ ๏ธ License validation error:', error.message);
console.log('๐ก This might work in offline mode or with cached validation');
});
} else {
console.log('โ No API key found');
showSetupInstructions();
}
function showSetupInstructions() {
console.log('\n๐ Setup Steps:');
console.log('1. ๐ Get your license: https://promptoptimizer-blog.vercel.app/local-license');
console.log('2. ๐ง Set environment variable:');
console.log(' export OPTIMIZER_API_KEY=your-license-key');
console.log('3. ๐งช Test setup: npm run setup');
console.log('4. ๐ Start server: mcp-prompt-optimizer-local');
console.log('\n๐ก The license enables all features: content analysis, debugging enhancement,');
console.log(' technical preservation, template management, and optional LLM integration.');
}