fix: HTTP health probes use container IP for internal network communication
mcpd and MCP containers share the mcp-servers Docker network. HTTP probes must use the container's internal IP + containerPort instead of localhost + host-mapped port. Also extracts container IP from Docker inspect. Updated home-assistant template to use ghcr.io/homeassistant-ai/ha-mcp Docker image (SSE transport) instead of broken npm package. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
name: home-assistant
|
||||
version: "1.0.0"
|
||||
description: Home Assistant MCP server for smart home control and entity management
|
||||
packageName: "home-assistant-mcp-server"
|
||||
transport: STDIO
|
||||
repositoryUrl: https://github.com/tevonsb/homeassistant-mcp
|
||||
dockerImage: "ghcr.io/homeassistant-ai/ha-mcp:latest"
|
||||
transport: SSE
|
||||
containerPort: 8086
|
||||
repositoryUrl: https://github.com/homeassistant-ai/ha-mcp
|
||||
command:
|
||||
- python
|
||||
- -c
|
||||
- "from ha_mcp.server import HomeAssistantSmartMCPServer; s = HomeAssistantSmartMCPServer(); s.mcp.run(transport='sse', host='0.0.0.0', port=8086)"
|
||||
healthCheck:
|
||||
tool: get_entities
|
||||
arguments: {}
|
||||
tool: ha_search_entities
|
||||
arguments:
|
||||
query: "light"
|
||||
env:
|
||||
- name: HASS_URL
|
||||
- name: HOMEASSISTANT_URL
|
||||
description: Home Assistant instance URL (e.g. http://homeassistant.local:8123)
|
||||
required: true
|
||||
- name: HASS_TOKEN
|
||||
- name: HOMEASSISTANT_TOKEN
|
||||
description: Home Assistant long-lived access token
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user