Demo: Stateful Simulation
Run a 3-minute stateful simulation demo with session continuity.
Demo Script: 3-Minute Stateful Simulation
Goal
Demonstrate deterministic session continuity and profile transitions.
Timeline
- Minute 0-1: Explain stateless vs stateful failure testing.
- Minute 1-2: Start
token_expiry_after_n_callssession. - Minute 2-3: Reuse
sessionIdto show expiry transition.
Live command sequence
export BASE_URL="https://fakemcp.com"
first="$(curl -sS -X POST "$BASE_URL/v1/scenario/stateful" -H "Content-Type: application/json" -d '{"profile":"token_expiry_after_n_calls","params":{"expireAfterCalls":1}}')"
session_id="$(node -e 'const b=JSON.parse(process.argv[1]); process.stdout.write(b.sessionId)' "$first")"
echo "$first"
second="$(curl -sS -X POST "$BASE_URL/v1/scenario/stateful" -H "Content-Type: application/json" -d "{\"profile\":\"token_expiry_after_n_calls\",\"sessionId\":\"$session_id\",\"params\":{\"expireAfterCalls\":1}}")"
echo "$second"