Skip to content

[Doc] Note sticky session requirement for multi-instance deployments#297

Open
koic wants to merge 1 commit intomodelcontextprotocol:mainfrom
koic:sticky_session_for_multi_server
Open

[Doc] Note sticky session requirement for multi-instance deployments#297
koic wants to merge 1 commit intomodelcontextprotocol:mainfrom
koic:sticky_session_for_multi_server

Conversation

@koic
Copy link
Copy Markdown
Member

@koic koic commented Apr 4, 2026

Motivation and Context

PR #290 documented that StreamableHTTPTransport requires a single-process server. However, when running multiple server instances behind a load balancer, requests for the same session must be routed to the same instance since session state is stored in memory.

This adds a note about using sticky sessions (session affinity) based on the Mcp-Session-Id header.

How Has This Been Tested?

Documentation-only change.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@koic koic force-pushed the sticky_session_for_multi_server branch from ff70856 to e14f0ee Compare April 4, 2026 18:59
atesgoral
atesgoral previously approved these changes Apr 5, 2026
## Motivation and Context

PR modelcontextprotocol#290 documented that `StreamableHTTPTransport` requires a single-process server.
However, when running multiple server instances behind a load balancer, requests for
the same session must be routed to the same instance since session state is stored in memory.

This adds a note about using sticky sessions (session affinity) based on the `Mcp-Session-Id` header.

## How Has This Been Tested?

Documentation-only change.

## Breaking Changes

None.
@koic koic force-pushed the sticky_session_for_multi_server branch from e14f0ee to 1b45c43 Compare April 5, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants