#!/bin/bash

# MCP Server wrapper script for Claude Code integration
# This script ensures proper execution of the Python MCP server

# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Set up paths
MCP_RUNNER="$SCRIPT_DIR/src/run_mcp.py"

# Verify MCP runner exists
if [ ! -f "$MCP_RUNNER" ]; then
    echo "Error: MCP runner not found at $MCP_RUNNER" >&2
    exit 1
fi

# Execute the MCP server using uv
cd "$SCRIPT_DIR"
exec uv run python "$MCP_RUNNER" "$@"
