Add mcp-stateless module: migrate an MCP server from the 2025 stateful protocol to 2026-07-28 on Spring AI 2.1.0

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4tJPXfq5UyiLSFr49
This commit is contained in:
Ankur
2026-11-22 02:18:48 +05:30
co-authored by Claude Sonnet 5.5
parent 3aa20a1dce
commit 26e0a3875a
34 changed files with 1922 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/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"