Introduce pytest smoke tests, run/verify scripts, and Makefile targets so the bridge can be developed and validated without a full cluster deploy. Document the local workflow and agent quickstart in README.
22 lines
585 B
Bash
Executable File
22 lines
585 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the MCP bridge locally (no Kubernetes required).
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$ROOT"
|
|
|
|
PORT="${PORT:-8080}"
|
|
HOST="${HOST:-127.0.0.1}"
|
|
|
|
if [[ ! -d .venv ]]; then
|
|
python3 -m venv .venv
|
|
fi
|
|
# shellcheck disable=SC1091
|
|
source .venv/bin/activate
|
|
|
|
pip install -q -r requirements.txt
|
|
|
|
echo "Starting MCP bridge at http://${HOST}:${PORT}"
|
|
echo "Health: curl http://${HOST}:${PORT}/healthz"
|
|
echo "Schema: curl http://${HOST}:${PORT}/mcp/schema | jq ."
|
|
exec uvicorn app.main:app --reload --host "$HOST" --port "$PORT" |