#!/usr/bin/env bash # Starts one instance by hand so you can poke it with curl. # scripts/run.sh modern 8082 M1 (2026-07-28 server) # scripts/run.sh legacy 8081 L1 (2025-era server) set -euo pipefail cd "$(dirname "$0")/.." profile="${1:?profile: legacy or modern}"; port="${2:-8080}"; name="${3:-solo}" [ -f target/mcp-stateless.jar ] || mvn -B -q -DskipTests package exec java -jar target/mcp-stateless.jar --spring.profiles.active="$profile" --server.port="$port" --instance.name="$name"