Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4tJPXfq5UyiLSFr49
10 lines
505 B
Bash
Executable File
10 lines
505 B
Bash
Executable File
#!/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"
|