#!/bin/bash
set -e

# Start FastAPI server in the background
uvicorn src.main:app --host 0.0.0.0 --port 8000 --forwarded-allow-ips=172.17.0.1 &

# Run mcp_server.py (this will run in foreground)
python src/ai/mcp_server.py

# wait to keep container alive if needed
wait
