fix(chart): homeassistant-mcp sidecar uses wrong fastmcp CLI flags #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The homeassistant-mcp sidecar container command uses
--sse-server-hostand--sse-server-portflags which are not valid for the current version of fastmcp (bundled inghcr.io/homeassistant-ai/ha-mcp:6.7.1).This causes the sidecar to crash with:
Current command
Expected command
The correct flags per
fastmcp run --helpare:--host(not--sse-server-host)--port/-p(not--sse-server-port)Affected file
chart/templates/deployment.yaml— the homeassistant-mcp sidecarcommandblock.Additional context
ghcr.io/homeassistant-ai/ha-mcp:6.7.1v6.7.1→6.7.1was resolved in 0.2.0Update — additional findings from v0.2.1
The
--host/--portfix alone isn't sufficient. Thefastmcp run ha_mcp.main:appapproach doesn't work because:ha_mcp.maindoesn't exist — it'sha_mcp.__main___DeferredMCP), not directly runnable viafastmcp runCorrect approach
The ha-mcp image provides built-in CLI entrypoints (defined in pyproject.toml):
ha-mcp— stdio transport (default)ha-mcp-sse— SSE transport on port 8087ha-mcp-web— HTTP streamable transport on port 8086ha-mcp-oauth— OAuth modeThe chart should use:
Port and path can be configured via env vars:
MCP_PORT(default: 8087 for SSE)MCP_SECRET_PATH(default:/mcp)No
fastmcp runwrapper needed.