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

  1. Minute 0-1: Explain stateless vs stateful failure testing.
  2. Minute 1-2: Start token_expiry_after_n_calls session.
  3. Minute 2-3: Reuse sessionId to 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"