Prepare State Hub retirement baseline
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Multi-Context Image / build-and-push (push) Successful in 1m0s

This commit is contained in:
tegwick 2026-08-09 16:19:53 +02:00
parent 2217bdd9f5
commit 5927591be8
46 changed files with 32583 additions and 62 deletions

View file

@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/worsch/state-hub
STATE_HUB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
STATE_HUB_PYTHON="${STATE_HUB_PYTHON:-$STATE_HUB_DIR/.venv/bin/python}"
cd "$STATE_HUB_DIR"
API_BASE="${API_BASE:-http://127.0.0.1:8000}"
HEALTH_URL="${API_BASE%/}/state/health"
@ -24,6 +26,12 @@ if ! api_healthy; then
exit 1
fi
if [ ! -x "$STATE_HUB_PYTHON" ]; then
echo "state-hub Python is not executable at $STATE_HUB_PYTHON" >&2
echo "install the repository environment before starting the Codex MCP server" >&2
exit 1
fi
export API_BASE
export MCP_TRANSPORT=stdio
exec uv run python mcp_server/server.py
exec "$STATE_HUB_PYTHON" mcp_server/codex_server.py