Files
imagen4/run_mcp_safe.bat

23 lines
483 B
Batchfile
Raw Normal View History

2025-08-26 02:40:23 +09:00
@echo off
REM MCP-Safe UTF-8 runner for imagen4 server
REM This prevents stdout interference with MCP JSON protocol
echo [STARTUP] Starting Imagen4 MCP Server with safe UTF-8 handling...
REM Change to script directory
cd /d "%~dp0"
REM Set UTF-8 code page
chcp 65001 >nul 2>&1
REM Set UTF-8 environment variables
set PYTHONIOENCODING=utf-8
set PYTHONUTF8=1
set LC_ALL=C.UTF-8
REM Run the safe MCP runner
python run_mcp_safe.py
echo [SHUTDOWN] Imagen4 MCP Server stopped.
pause