#!/bin/bash
# Ensure we're in the project root
cd "$(dirname "$0")/.."
# Create and activate virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
python -m venv venv
fi
source venv/bin/activate
# Install package in development mode
pip install -e .
# Load environment variables
if [ -f ".env" ]; then
export $(cat .env | xargs)
fi
# Set WebSocket mode and port
export MCP_WEBSOCKET=true
export MCP_PORT=8765
# Run the server
python -m cortellis_mcp