Prepare State Hub retirement baseline
This commit is contained in:
parent
2217bdd9f5
commit
5927591be8
46 changed files with 32583 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue