@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
28 lines (21 loc) • 557 B
JavaScript
/**
* OptlyCLI Query Entry Point
* Wraps the OptlyCLI functionality for querying and management
*/
const { OptlyCLI } = require('./OptlyCLI.js');
async function main() {
const cli = new OptlyCLI();
try {
// Execute with remaining arguments
const args = process.argv.slice(2);
await cli.execute(['optly', ...args]);
} catch (error) {
console.error('CLI command failed:', error.message);
process.exit(1);
}
}
if (require.main === module) {
main().catch(console.error);
}
module.exports = { main };