Fix homeassistant MCP sidecar command in Helm chart #27

Closed
opened 2026-02-21 17:16:28 +00:00 by cpfarhood · 0 comments
cpfarhood commented 2026-02-21 17:16:28 +00:00 (Migrated from github.com)

Problem

The homeassistant MCP sidecar in the devcontainer Helm chart (v0.2.2) is using an incorrect fastmcp command that causes the container to crash with:

[02/21/26 17:02:34] ERROR    File not found: /app/ha_mcp.main   filesystem.py:68

Current Configuration

The chart currently generates this command for the homeassistant-mcp container:

command: ["fastmcp", "run", "ha_mcp.main:app", "--transport", "sse", "--host", "0.0.0.0", "--port", "8087"]

Required Fix

The command should be:

command: ["fastmcp", "run", "--transport", "sse", "--host", "0.0.0.0", "--port", "8087"]

The ha-mcp container image (ghcr.io/homeassistant-ai/ha-mcp:stable) includes a fastmcp.json configuration file that specifies the correct module path:

{
  "$schema": "https://gofastmcp.com/public/schemas/fastmcp.json/v1.json",
  "source": {
    "path": "src/ha_mcp/__main__.py",
    "entrypoint": "mcp"
  }
}

When fastmcp run is executed without specifying a module, it uses this configuration file automatically.

Temporary Workaround

Currently patched directly in the deployment:

kubectl patch deployment devcontainer-homeassistant -n cpfarhood --type='json' \
  -p='[{"op": "replace", "path": "/spec/template/spec/containers/3/command", \
  "value": ["fastmcp", "run", "--transport", "sse", "--host", "0.0.0.0", "--port", "8087"]}]'

Action Required

Update the devcontainer Helm chart template for the homeassistant MCP sidecar to use the correct command.

Additional Notes

  • The secret keys for Home Assistant URL and token should be lowercase with dashes: homeassistant-url and homeassistant-token
  • The container requires HOMEASSISTANT_URL and HOMEASSISTANT_TOKEN environment variables to be set

Related Context

  • Kubernetes deployment: cpfarhood/kubernetes repository
  • Issue initially tracked as cpfarhood/kubernetes#105 (moved here for proper tracking)
## Problem The `homeassistant` MCP sidecar in the devcontainer Helm chart (v0.2.2) is using an incorrect `fastmcp` command that causes the container to crash with: ``` [02/21/26 17:02:34] ERROR File not found: /app/ha_mcp.main filesystem.py:68 ``` ## Current Configuration The chart currently generates this command for the homeassistant-mcp container: ```yaml command: ["fastmcp", "run", "ha_mcp.main:app", "--transport", "sse", "--host", "0.0.0.0", "--port", "8087"] ``` ## Required Fix The command should be: ```yaml command: ["fastmcp", "run", "--transport", "sse", "--host", "0.0.0.0", "--port", "8087"] ``` The `ha-mcp` container image (`ghcr.io/homeassistant-ai/ha-mcp:stable`) includes a `fastmcp.json` configuration file that specifies the correct module path: ```json { "$schema": "https://gofastmcp.com/public/schemas/fastmcp.json/v1.json", "source": { "path": "src/ha_mcp/__main__.py", "entrypoint": "mcp" } } ``` When `fastmcp run` is executed without specifying a module, it uses this configuration file automatically. ## Temporary Workaround Currently patched directly in the deployment: ```bash kubectl patch deployment devcontainer-homeassistant -n cpfarhood --type='json' \ -p='[{"op": "replace", "path": "/spec/template/spec/containers/3/command", \ "value": ["fastmcp", "run", "--transport", "sse", "--host", "0.0.0.0", "--port", "8087"]}]' ``` ## Action Required Update the devcontainer Helm chart template for the homeassistant MCP sidecar to use the correct command. ## Additional Notes - The secret keys for Home Assistant URL and token should be lowercase with dashes: `homeassistant-url` and `homeassistant-token` - The container requires `HOMEASSISTANT_URL` and `HOMEASSISTANT_TOKEN` environment variables to be set ## Related Context - Kubernetes deployment: `cpfarhood/kubernetes` repository - Issue initially tracked as cpfarhood/kubernetes#105 (moved here for proper tracking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: farhoodlabs/devcontainer#27