Sessions & revocation
MCP is stateful: a client connects, discovers tools, and makes calls over a session. MCP Gateway gives those sessions a governed lifecycle so they can be inspected, drained for upgrades, and revoked instantly.
What a session tracks
Section titled “What a session tracks”- A client session id (and backend session ids where the upstream needs them).
- Affinity so a session stays pinned to the data plane handling it.
- Durable metadata for reconnect, plus external metadata you can attach.
- A lifecycle:
active→idle→draining→terminated/revoked/expired/failed.
Drain vs. terminate vs. revoke
Section titled “Drain vs. terminate vs. revoke”- Drain — stop accepting new work on a session and let in‑flight work finish. Used during upgrades so callers reconnect cleanly.
- Terminate — end a specific session now.
- Revoke — a governance action that fans out: it tears down affected active sessions immediately and blocks reattach. Because the control plane records the decision and re‑projects, every data plane enforces it on the very next request.
See Manage sessions for the UI, API, and CLI for each.
See it illustrated See the session state machine and a revocation fanning out to active sessions, illustrated.Type set in Geist, Source Serif 4, and Departure Mono.