Skip to content

Instantly share code, notes, and snippets.

@up1
Created August 2, 2026 06:56
Show Gist options
  • Select an option

  • Save up1/8168bd52050c5bcea0a9875b19f63b83 to your computer and use it in GitHub Desktop.

Select an option

Save up1/8168bd52050c5bcea0a9875b19f63b83 to your computer and use it in GitHub Desktop.
MCP 2.0
sequenceDiagram
    participant C as MCP Client
    participant LB as Load Balancer
    participant A as MCP Server A
    participant B as MCP Server B
    participant S as Session Store

    C->>LB: initialize()
    LB->>A: initialize()
    A->>S: Create session ABC
    A-->>C: Mcp-Session-Id: ABC

    C->>LB: tools/list<br/>Session: ABC
    LB->>A: Sticky session → A
    A->>S: Get session ABC
    A-->>C: Tools

    C->>LB: tools/call<br/>Session: ABC
    LB-xB: ❌ Routed to B
    B->>S: Where is session ABC?
    S-->>B: Session state required

    Note over LB,A: Requires sticky sessions
    Note over A,S: Or shared session storage
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment