mirror of
https://github.com/hoshikawa2/compass_backoffice.git
synced 2026-07-09 22:04:20 +00:00
first commit
This commit is contained in:
22
scripts/run_backoffice_mcp.sh
Normal file
22
scripts/run_backoffice_mcp.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user