Add self-maintaining Athena platform context MCP
This commit is contained in:
@@ -64,7 +64,7 @@ else
|
||||
fi
|
||||
|
||||
for optional in mike-ai-mcp-web mike-ai-mcp-homeassistant mike-ai-mcp-arr \
|
||||
mike-ai-mcp-github mike-ai-mcp-unraid-official; do
|
||||
mike-ai-mcp-github mike-ai-mcp-platform-context mike-ai-mcp-unraid-official; do
|
||||
if container_healthy "$optional"; then
|
||||
pass "$optional aktiv"
|
||||
else
|
||||
@@ -72,6 +72,17 @@ for optional in mike-ai-mcp-web mike-ai-mcp-homeassistant mike-ai-mcp-arr \
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -s /var/lib/mike-ai-platform-context/runtime.json ]]; then
|
||||
snapshot_age=$(( $(date +%s) - $(stat -c %Y /var/lib/mike-ai-platform-context/runtime.json) ))
|
||||
if (( snapshot_age <= 180 )); then
|
||||
pass "Platform-Kontext-Snapshot aktuell (${snapshot_age}s)"
|
||||
else
|
||||
fail "Platform-Kontext-Snapshot veraltet (${snapshot_age}s)"
|
||||
fi
|
||||
else
|
||||
fail "Platform-Kontext-Snapshot fehlt"
|
||||
fi
|
||||
|
||||
if docker exec mike-ai-router python -c \
|
||||
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8081/health', timeout=3)" \
|
||||
>/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user