#!/bin/bash
# DevStandards MCP Server launcher
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Activate the virtual environment
if [ -f "$SCRIPT_DIR/venv/bin/activate" ]; then
source "$SCRIPT_DIR/venv/bin/activate"
else
echo "Error: Virtual environment not found at $SCRIPT_DIR/venv" >&2
echo "Please run: python -m venv venv && pip install -r requirements.txt" >&2
exit 1
fi
# Run the server
exec python "$SCRIPT_DIR/server.py"