@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
51 lines (40 loc) • 1.89 kB
JavaScript
// Write to stderr instead of stdout - this is more likely to be shown
const message = `
════════════════════════════════════════════════════════════════════
✅ Optimizely MCP Server installed successfully!
════════════════════════════════════════════════════════════════════
🚀 Quick Start:
npx optly --help # See all available commands
npx optly health # Test your API connection
📋 Claude Desktop Setup:
Add this to your Claude Desktop config:
{
"mcpServers": {
"optimizely": {
"command": "npx",
"args": ["@simonecoelhosfo/optimizely-mcp-server"],
"env": {
"OPTIMIZELY_API_TOKEN": "your-api-token-here"
}
}
}
}
📖 Documentation:
View docs at: https://npmjs.com/package/@simonecoelhosfo/optimizely-mcp-server
Local docs: node_modules//optimizely-mcp-server/package-docs/
════════════════════════════════════════════════════════════════════
`;
// Check if we should be silent based on npm config
const npmLogLevel = process.env.npm_config_loglevel;
const isSilent = npmLogLevel === 'silent' ||
npmLogLevel === 'error' ||
process.env.npm_config_silent === 'true';
if (!isSilent) {
// Write to stderr - more likely to be shown
process.stderr.write(message);
// Also try stdout
console.log(message);
}
// Don't exit with error code - that would make install fail
process.exit(0);