Skip to content

SEP-2567: Sessionless MCP via Explicit State Handles#2567

Open
pja-ant wants to merge 5 commits intomainfrom
sep/sessionless-mcp
Open

SEP-2567: Sessionless MCP via Explicit State Handles#2567
pja-ant wants to merge 5 commits intomainfrom
sep/sessionless-mcp

Conversation

@pja-ant
Copy link
Copy Markdown
Contributor

@pja-ant pja-ant commented Apr 14, 2026

Summary

Draft SEP proposing the removal of protocol-level sessions from MCP, replacing implicit session-scoped state with explicit, server-minted state handles. Builds on SEP-1442 (stateless-by-default) but argues the opt-in stateful path should not exist at all.

Core claims:

  • Application state is better served by explicit identifiers
  • The mere possibility of session-scoped tools/list forces O(subagents × servers) re-fetches on everyone, even when ~zero servers actually use it
  • Session cardinality of exactly-one prevents mixed shared/isolated state (e.g., subagents sharing a cart but isolating browser state)
  • Explicit handles are strictly more expressive and make list endpoints cacheable at (deployment, auth) granularity

What changes:

  • No session/create, session/destroy, or Mcp-Session-Id header
  • tools/list / resources/list / prompts/list MUST NOT depend on per-connection or prior-tool-call state
  • Stateful workflows use create_*() -> handle + threaded parameters (guidance, not a protocol construct)

Imported from modelcontextprotocol/transports-wg#25.

@pja-ant pja-ant requested review from a team as code owners April 14, 2026 12:43
@pja-ant pja-ant changed the title SEP-XXXX: Sessionless MCP via Explicit State Handles SEP-2567: Sessionless MCP via Explicit State Handles Apr 14, 2026
@pja-ant pja-ant added SEP draft SEP proposal with a sponsor. labels Apr 14, 2026
@kurtisvg kurtisvg self-assigned this Apr 14, 2026
@kurtisvg kurtisvg added the transport Related to MCP transports label Apr 14, 2026
@dsp-ant dsp-ant added the roadmap/transport Roadmap: Transport Evolution & Scalability (incl. Server Cards) label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

draft SEP proposal with a sponsor. roadmap/transport Roadmap: Transport Evolution & Scalability (incl. Server Cards) SEP transport Related to MCP transports

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants