diff --git a/DOCS.md b/DOCS.md index 9174b59..daa9387 100644 --- a/DOCS.md +++ b/DOCS.md @@ -497,7 +497,7 @@ The **Model Context Protocol (MCP)** lets OpenClaw communicate directly with Hom 3. Set **Auto-Configure MCP for Home Assistant** (`auto_configure_mcp`) to **ON** 4. Restart the add-on -The add-on will automatically register Home Assistant as an MCP server named `HA` using `mcporter`. It auto-detects the HA API URL (supervisor proxy when available, otherwise `localhost:8123`). Check the logs for: +The add-on bundles `mcporter` and automatically registers Home Assistant as an MCP server named `HA`. It auto-detects the HA API URL (supervisor proxy when available, otherwise `localhost:8123`). Check the logs for: ``` INFO: MCP server 'HA' registered — OpenClaw can now control Home Assistant ``` @@ -543,7 +543,7 @@ MCP setup requires an AI model that understands tool/skill invocation. Budget mo | Symptom | Fix | |---|---| -| `mcporter: command not found` | Run `openclaw onboard` first, then restart the add-on | +| `mcporter: command not found` | Upgrade to add-on `0.5.84` or newer. Older builds did not bundle `mcporter`; as a temporary workaround, install it manually in the add-on terminal and restart. | | MCP add fails with auth error | Verify your long-lived token is valid and not expired | | OpenClaw doesn’t see HA entities | Run `mcporter call home-assistant.GetLiveContext` to refresh | | Model says “what’s MCP?” | Switch to a more capable model for the initial session (see above) | diff --git a/openclaw_assistant/CHANGELOG.md b/openclaw_assistant/CHANGELOG.md index c22324d..4278225 100644 --- a/openclaw_assistant/CHANGELOG.md +++ b/openclaw_assistant/CHANGELOG.md @@ -2,10 +2,11 @@ All notable changes to the OpenClaw Assistant Home Assistant Add-on will be documented in this file. -## [0.5.83] - 2026-07-17 +## [0.5.84] - 2026-07-17 ### Changed -- Bump the add-on runtime from Node 22 to Node 24 LTS so the image stays within OpenClaw's published support matrix and is compatible with current `mcporter` releases that require Node `>=24`. +- Bundle `mcporter@0.12.3` in the add-on image so `auto_configure_mcp` can register Home Assistant out of the box on fresh installs without a manual global install workaround. +- Replace the misleading startup hint that told users to run `openclaw onboard` when `mcporter` was missing. The message now correctly points to a broken image state instead. ## [0.5.82] - 2026-07-15 diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 4addc99..4ae4755 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -115,11 +115,13 @@ RUN if [ -x /home/linuxbrew/.linuxbrew/bin/brew ]; then \ fi USER root -# Install OpenClaw globally -# Bundle node-llama-cpp in the image so the default local memory/embeddings -# provider works in HAOS without requiring manual npm installs in /usr/lib. +# Install OpenClaw globally. +# Bundle node-llama-cpp so the default local memory/embeddings provider works +# in HAOS without requiring manual npm installs in /usr/lib. +# Bundle mcporter so Home Assistant MCP auto-configuration works out of the box. +# The image now ships Node 24, so use the current mcporter line. RUN npm config set fund false && npm config set audit false \ - && npm install -g openclaw@2026.7.1 node-llama-cpp@3.18.1 + && npm install -g openclaw@2026.7.1 node-llama-cpp@3.18.1 mcporter@0.12.3 # Shell aliases and color options for interactive use RUN tee -a /etc/bash.bashrc <<'EOF' diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 4cee7d0..e36c9f0 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.83" +version: "0.5.84" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant diff --git a/openclaw_assistant/run.sh b/openclaw_assistant/run.sh index 0490445..55abb4d 100644 --- a/openclaw_assistant/run.sh +++ b/openclaw_assistant/run.sh @@ -920,7 +920,7 @@ if [ "$AUTO_CONFIGURE_MCP" = "true" ] && [ -n "$HA_TOKEN" ]; then fi fi else - echo "INFO: mcporter not available; skipping MCP auto-configuration (run 'openclaw onboard' first)" + echo "WARN: mcporter is missing from the add-on image; skipping MCP auto-configuration" fi elif [ "$AUTO_CONFIGURE_MCP" = "true" ] && [ -z "$HA_TOKEN" ]; then echo "INFO: MCP auto-configure enabled but homeassistant_token not set — skipping"