- Fix TOML syntax error in pyproject.toml configuration - Simplify dependencies to only FastMCP by default - Create optional 'video' dependency group for full features - Add minimal test server (test_minimal.py) for fast startup - Add graceful import handling for optional video libraries - Create both full and minimal startup scripts - Ensure MCP server starts quickly without heavy dependencies Server now successfully starts and connects to Claude Code!
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/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 |