Skip to content

Add guidance on session affinity for Mcp-Session-Id in stateful deployments #2064

@Agent-Hellboy

Description

@Agent-Hellboy

When servers keep session/elicitation/task state in process memory, requests must be routed consistently to the same worker. The spec
defines Mcp-Session-Id semantics but doesn’t mention operational implications. Please add a short, non‑normative note in Session Management
(and a cross‑ref in elicitation statefulness) advising implementors to use session affinity or externalize session state so any worker can
handle a request. This helps avoid hangs/404s with multi‑worker load balancing while keeping the protocol requirements unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions