#!/bin/bash # MCP Video Editor Startup Script (Minimal Version) # This script launches the MCP Video Editor server in minimal mode for fast startup set -e # Exit on any error # Get the directory where this script is located SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Change to the project directory cd "$SCRIPT_DIR" echo "đŸŽŦ Starting MCP Video Editor (Minimal Mode)..." echo "📁 Working directory: $SCRIPT_DIR" # Check if uv is installed if ! command -v uv &> /dev/null; then echo "❌ Error: UV is not installed or not in PATH" echo "Please install UV: curl -LsSf https://astral.sh/uv/install.sh | sh" exit 1 fi # Check if dependencies are installed if [ ! -d ".venv" ] && [ ! -f "uv.lock" ]; then echo "đŸ“Ļ Installing minimal dependencies with UV..." uv sync fi echo "â„šī¸ Running in minimal mode - video processing features require additional dependencies" echo "â„šī¸ To install full features: uv sync --extra video" # Launch the minimal MCP Video Editor server with UV echo "🚀 Launching MCP Video Editor server (minimal mode)..." exec uv run python test_minimal.py