mcp-video-editor/start-mcp-video-editor-minimal.sh
Ryan Malloy 9ccdc7782e Fix MCP server startup issues and create minimal mode
- 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!
2025-09-05 02:50:34 -06:00

35 lines
1.1 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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