start-production.shā¢1.8 kB
#!/bin/bash
# EuConquisto Composer MCP Server - Production Startup
# Version: 5.1.0 JIT (Just-In-Time Educational Content Generation)
# Features: Token-efficient workflow, 7-step JIT process, 65% token reduction
echo "š Starting EuConquisto Composer MCP Server v5.1.0"
echo "š JIT Features:"
echo " ⢠Token-efficient workflow (65% reduction)"
echo " ⢠7-step JIT process with smart guidance"
echo " ⢠Universal educational topic support"
echo " ⢠Auto-fix validation and error prevention"
echo " ⢠Claude Desktop optimized integration"
echo ""
# Change to the project directory
cd "$(dirname "$0")/.."
# Check if Playwright browsers are installed
if [ ! -d "node_modules/playwright/chromium*" ] && [ ! -d "$HOME/Library/Caches/ms-playwright/chromium*" ]; then
echo "ā ļø Warning: Playwright browsers may not be installed."
echo " Run './bin/fix-playwright-browsers.sh' to install them."
echo " Without browsers, compositions will save but won't open automatically."
echo ""
fi
# Start JWT redirect server silently in background
echo "š Starting JWT authentication server..."
node tools/servers/jwt-redirect-server-v1.0.2.js >/dev/null 2>&1 &
JWT_PID=$!
# Give JWT server time to start
sleep 2
# Start the JIT MCP server
echo "šÆ JIT Tools Available:"
echo " ⢠get_smart_guidance"
echo " ⢠analyze_content_for_widgets"
echo " ⢠get_widget_requirements"
echo " ⢠validate_lesson_data"
echo " ⢠format_for_composer"
echo " ⢠save_composition_api"
echo " ⢠open_composition_editor"
echo ""
echo "š Ready for efficient lesson creation!"
echo ""
# Use the JIT implementation
node --max-old-space-size=4096 dist/browser-automation-api-jit-v5.1.0.js
# Cleanup JWT server on exit
trap "kill $JWT_PID 2>/dev/null" EXIT