#!/bin/bash # Setup script for MCP Server set -e echo "Setting up MCP Server..." # Create virtual environment if it doesn't exist if [ ! -d "venv" ]; then echo "Creating virtual environment..." python3 -m venv venv fi # Activate virtual environment echo "Activating virtual environment..." source venv/bin/activate # Install dependencies echo "Installing dependencies..." pip install --upgrade pip pip install -r requirements.txt # Verify critical dependencies echo "Verifying dependencies..." python3 -c "import fastapi, uvicorn, pytz; print('✓ All dependencies installed')" || { echo "✗ Dependency verification failed" exit 1 } echo "" echo "Setup complete!" echo "" echo "To run the server:" echo " ./run.sh" echo "" echo "Or manually:" echo " source venv/bin/activate" echo " python server/mcp_server.py"