- 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!
34 lines
785 B
Python
34 lines
785 B
Python
#!/usr/bin/env python3
|
|
"""Minimal MCP Video Editor test - just FastMCP without heavy dependencies."""
|
|
|
|
from fastmcp import FastMCP
|
|
|
|
# Initialize FastMCP server
|
|
mcp = FastMCP("MCP Video Editor - Minimal")
|
|
|
|
|
|
@mcp.tool()
|
|
def mcp_video_editor_status():
|
|
"""Get the status of the MCP Video Editor server."""
|
|
return {
|
|
"server_name": "MCP Video Editor",
|
|
"version": "0.1.0",
|
|
"status": "running",
|
|
"mode": "minimal"
|
|
}
|
|
|
|
|
|
@mcp.tool()
|
|
def echo_test(message: str):
|
|
"""Simple echo test to verify MCP functionality."""
|
|
return {"echo": message, "status": "success"}
|
|
|
|
|
|
def main():
|
|
"""Main entry point for the minimal test server."""
|
|
print("🎬 Starting MCP Video Editor (Minimal Mode)...")
|
|
mcp.run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |