azure-assistant-mcp.sh•487 B
#!/bin/bash
set -euo pipefail
# Run from this directory
cd "$(dirname "$0")"
# Prefer local source
export PYTHONPATH="$PWD/src:${PYTHONPATH:-}"
# Pin config path to this repo to avoid picking up sibling configs
export AZURE_ASSISTANT_CONFIG="$PWD/azure-config.json"
# Prefer a project-local venv if present
if [ -x "$PWD/.venv/bin/python" ]; then
exec "$PWD/.venv/bin/python" -m azure_assistant_mcp
fi
# Otherwise, fall back to python3 on PATH
exec python3 -m azure_assistant_mcp