23 lines
646 B
Batchfile
23 lines
646 B
Batchfile
@echo off
|
|
rem Runs homey-mcp as a LAN-reachable HTTP service (streamable-http transport)
|
|
rem for remote MCP clients (e.g. the Odysseus AI helper), instead of the
|
|
rem stdio transport Javis uses locally.
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
|
|
if not exist ".venv\Scripts\python.exe" (
|
|
echo Creating virtual environment...
|
|
python -m venv .venv
|
|
call .venv\Scripts\activate.bat
|
|
python -m pip install --upgrade pip
|
|
pip install -e .
|
|
) else (
|
|
call .venv\Scripts\activate.bat
|
|
)
|
|
|
|
set HOMEY_MCP_TRANSPORT=streamable-http
|
|
if "%HOMEY_MCP_HOST%"=="" set HOMEY_MCP_HOST=0.0.0.0
|
|
if "%HOMEY_MCP_PORT%"=="" set HOMEY_MCP_PORT=8080
|
|
|
|
python -m homey_mcp %*
|