Skip to content

mcp: add and implement SessionStorage interface #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

joshwlewis
Copy link

This is a step toward enabling distributed MCP servers. It's a new interface that would allow additional types of session stores like:

  • Database backed sessions
  • Stateless sessions

This interface supports streamable HTTP, SSE, and custom Transports.

MemorySessionStore is the only current implementation. Other implementations are left to users for now.

This doesn't totally solve distributed MCP servers - routing messages between server instances still needs to be solved.

Related: #148, #212

This is a step toward enabling distributed MCP servers.
This would allow new types of session storage like
- Database backed sessions
- Stateless sessions

This implementation supports streamable HTTP, SSE,
and custom Transports.
@joshwlewis joshwlewis changed the title add and implement SessionStorage interface mcp: add and implement SessionStorage interface Jul 31, 2025
@jba
Copy link
Contributor

jba commented Aug 4, 2025

See #232. In particular, we don't want to save transports, we want to save session state.

@joshwlewis
Copy link
Author

Thanks -- closing in favor of #232.

@joshwlewis joshwlewis closed this Aug 4, 2025
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