feat: add Windows-MCP UI automation + full offline deps

- New start-windows-mcp.bat — starts Windows-MCP SSE server on :8000
- Windows-MCP auto-starts when Hermes CLI launches (options 1/2)
- Pre-downloaded wheels: hermes-agent (47), windows-mcp (95)
- Offline Python 3.13 embedded + get-pip.py bootstrapper
- Hermes config wired with mcp_servers.windows-mcp
- Updated Makefile with targets: wheels-hermes, wheels-windows-mcp,
  python-portable, get-pip, deps
- Recreated: run-hermes.ps1, start-hermes-dashboard.bat
- Pure ASCII .bat files with CRLF line endings
This commit is contained in:
2026-07-11 18:11:06 -04:00
parent 6623d4d1fd
commit 2b7a8290a5
152 changed files with 28298 additions and 3 deletions
+42 -3
View File
@@ -68,16 +68,18 @@ echo 2) Hermes CLI (OFFLINE - local LLM)
echo 3) Web Dashboard (http://rescue.local:8080)
echo 4) Full Diagnostics (hardware, disk, mem, stress)
echo 5) Start Local LLM Server (llama.cpp)
echo 6) Exit
echo 6) Windows MCP Server (UI Automation)
echo 7) Exit
echo.
set /p choice="Choice (1-6): "
set /p choice="Choice (1-7): "
if "!choice!"=="1" goto run_online
if "!choice!"=="2" goto run_offline
if "!choice!"=="3" goto run_dashboard
if "!choice!"=="4" goto run_diag
if "!choice!"=="5" goto run_llm
if "!choice!"=="6" exit /b
if "!choice!"=="6" goto run_mcp
if "!choice!"=="7" exit /b
echo Invalid choice.
pause
goto menu
@@ -86,6 +88,7 @@ goto menu
echo.
echo [*] Starting Hermes CLI (online mode - opencode-go)...
echo.
call :ensure_mcp
set HERMES_HOME=%~dp0..\hermes
"!PYTHON!" -m hermes_cli --config "!HERMES_CONFIG!"
echo.
@@ -93,6 +96,7 @@ pause
goto menu
:run_offline
call :ensure_mcp
if not exist "!OLLAMA_DIR!\qwen2.5-coder-1.5b-q4_k_m.gguf" (
echo.
echo [ERROR] Offline model not found at !OLLAMA_DIR!
@@ -163,3 +167,38 @@ echo [OK] Server starting in new window.
echo.
pause
goto menu
:: -----------------------------------------------------------------------------
:: Auto-start Windows-MCP server before launching Hermes CLI.
:: Starts silently in a new window, polls until ready, continues anyway if
:: it doesn't come up (Hermes just won't have UI Automation tools).
:: -----------------------------------------------------------------------------
:ensure_mcp
>nul 2>&1 curl -s http://127.0.0.1:8000/mcp/health && (
goto :eof
)
echo [*] Auto-starting Windows MCP Server (UI Automation)...
start "Hermes - Windows MCP" /MIN "%~dp0start-windows-mcp.bat"
set MCP_POLL=0
:wait_mcp
set /a MCP_POLL+=1
if !MCP_POLL! gtr 20 (
echo [WARN] Windows MCP Server not ready after 20s - continuing...
goto :eof
)
>nul 2>&1 timeout /t 1 /nobreak
>nul 2>&1 curl -s http://127.0.0.1:8000/mcp/health && (
echo [OK] Windows MCP Server is ready!
goto :eof
)
goto wait_mcp
:run_mcp
echo.
echo [*] Starting Windows MCP Server (UI Automation)...
echo.
start "Hermes - Windows MCP" "%~dp0start-windows-mcp.bat"
echo [OK] Windows MCP Server starting in new window.
echo.
pause
goto menu