36 lines
643 B
Batchfile
36 lines
643 B
Batchfile
@echo off
|
|
echo FLUX.1 Edit MCP Server - Quick Start
|
|
echo ====================================
|
|
|
|
REM Set UTF-8 encoding to prevent Unicode errors
|
|
chcp 65001 >nul 2>&1
|
|
set PYTHONIOENCODING=utf-8
|
|
set PYTHONUTF8=1
|
|
|
|
echo Running simple test first...
|
|
python simple_test.py
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Simple test failed. Please check the errors above.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo Simple test passed! Starting MCP server...
|
|
echo.
|
|
|
|
REM Start the main MCP server
|
|
python main.py
|
|
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Server failed to start. Check flux1-edit.log for details.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo Server stopped.
|
|
pause
|