#!/bin/bash
# Start MCP server in development mode with auto-reload
# This uses uv and installs the package in editable mode for live changes
set -e
echo "๐ง Setting up MCP development environment with uv..."
# Install dependencies with uv
echo "๐ฆ Installing dependencies..."
uv sync --dev
# Install this package in editable mode
echo "๐ Installing package in editable mode..."
uv pip install -e .
# Start MCP inspector in development mode
echo "๐ Starting MCP development server..."
echo " ๐ Any changes to the code will be reflected immediately"
echo " ๐ Opening MCP Inspector in browser..."
# Use uv to run the MCP dev command with auto-reload
uv run mcp dev src/macos_ui_automation/mcp_server.py --with-editable .