mirror of
https://github.com/hoshikawa2/compass_backoffice.git
synced 2026-07-09 22:04:20 +00:00
23 lines
440 B
Bash
23 lines
440 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if [ -f ".env" ]; then
|
|
set -a
|
|
source .env
|
|
set +a
|
|
fi
|
|
|
|
if [ -f ".env.backoffice_mcp" ]; then
|
|
set -a
|
|
source .env.backoffice_mcp
|
|
set +a
|
|
fi
|
|
|
|
HOST="${BACKOFFICE_MCP_HOST:-0.0.0.0}"
|
|
PORT="${BACKOFFICE_MCP_PORT:-8010}"
|
|
LOG_LEVEL="${BACKOFFICE_MCP_LOG_LEVEL:-info}"
|
|
|
|
uvicorn mcp_servers.backoffice_mcp_server.main:app --host "$HOST" --port "$PORT" --log-level "$LOG_LEVEL"
|