@echo off rem Start Rhino 8 and run the rhino_mcp socket server (port 9876) automatically. rem If Rhino is already running, the command is sent to that instance. rem Keep the script path free of spaces and non-ASCII (Rhino /runscript limitation). set "RHINO_EXE=C:\Program Files\Rhino 8\System\Rhino.exe" set "MCP_CLIENT=D:\Rhino-MCP\rhino-mcp-main\rhino_mcp\rhino_mcp_client.py" if not exist "%RHINO_EXE%" ( echo Rhino 8 not found: %RHINO_EXE% pause exit /b 1 ) if not exist "%MCP_CLIENT%" ( echo MCP client not found: %MCP_CLIENT% pause exit /b 1 ) start "" "%RHINO_EXE%" /runscript="-_RunPythonScript %MCP_CLIENT%"