dev.sh
1 #!/bin/bash 2 # 3 # Development launcher for TEST_LEAD MCP server 4 # 5 # This script starts the TEST_LEAD agent in development mode with hot-reloading 6 # enabled via mix run. Use this during development instead of the built escript. 7 # 8 9 set -e 10 11 cd "$(dirname "$0")" 12 13 # Check if dependencies are installed 14 if [ ! -d "deps" ]; then 15 echo "Dependencies not found. Installing..." 16 mix deps.get 17 fi 18 19 # Check if shared library is compiled 20 if [ ! -d "../../shared/_build" ]; then 21 echo "Shared library not compiled. Building..." 22 cd ../../shared 23 mix deps.get 24 mix compile 25 cd - 26 fi 27 28 # Run in development mode 29 echo "Starting TEST_LEAD MCP server in development mode..." 30 echo "Press Ctrl+C to stop" 31 echo "" 32 33 exec mix run --no-halt