Skip to content

Design stateless MCP (2026-07-28) support in vMCP #5756

Closed
8 of 8 issues completed
Closed

Description

@JAORMX

Part of #5743 (Workstream C: 2026-07-28 stateless readiness).

Work

Design vMCP's stateless mode. vMCP's session model (two-phase SessionIdManager, Redis metadata, identity binding, 1000-session cap, per-backend session hints) exists because the protocol was session-ful; 2026-07-28 removes protocol sessions entirely — cross-call state moves to explicit server-minted handles passed as tool arguments.

  • Server side: per-request _meta (protocolVersion/clientInfo/clientCapabilities) instead of initialize; implement server/discover; decide what replaces per-session tool projection when there are no sessions (per-principal projection derived from auth context per request).
  • Client side: stateless connections to 2026-07-28 backends; keep session-ful handling for 2025-11-25 backends (dual-protocol per backend).
  • Composite workflows: elicitation becomes MRTR (see the MRTR passthrough issue); workflow state must key on server-minted handles, not session IDs.
  • Statelessness dissolves the cross-pod affinity TODO (registry.go) — any pod can serve any request; Redis remains for workflow/handle state only.

Depends on: the go-sdk v1.7 adoption issue. Deliverable: design doc first.

Sub-issues

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. added
    needs-triage
    on Jul 8, 2026
  2. removed
    needs-triage
    on Jul 13, 2026
  3. self-assigned this
    on Jul 21, 2026
  4. jhrozek commented on Jul 25, 2026

    @jhrozek
    Contributor

    Note for whoever implements the cross-generation bridge here: two e2e specs were removed from the single-server dual-era k8s test in #5981 (commit 5fa6712) because they can't work without this bridge — please re-add them as vMCP e2e coverage when it lands.

    They were:

    • mixed Legacy + Modern traffic over a shared Redis session store
    • session-store (Redis) outage → 503, then recovery

    Both need a Legacy (session) client to open a session against a stateless backend. On a single-server MCPServer that's impossible — one go-sdk backend can't be both stateless (to serve Modern per-request clients) and session-issuing (for Legacy) at once, and the single-server proxy only does per-request version discrimination, not generation bridging. vMCP is where the bridge lives (per #5743), so that's where the mixed-era coverage belongs.

  5. jhrozek commented on Jul 28, 2026

    @jhrozek
    Contributor

    all subtasks closed, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions