Summary
Stateless HTTP mode currently doesn't work correctly when using elicitation or sampling features.
Problem
When running in stateless HTTP mode (stateless_http=True), the SDK fails to properly handle elicitation and sampling requests. The context required for these bidirectional interactions isn't properly established in stateless mode.
Open Questions
- Stateless HTTP isn't currently part of the MCP specification
- There are upcoming spec changes around statelessness that will affect this area
- Unclear whether to fix now, wait for spec, or remove the feature entirely
Related SEPs
AI Disclaimer
Summary
Stateless HTTP mode currently doesn't work correctly when using elicitation or sampling features.
Problem
When running in stateless HTTP mode (
stateless_http=True), the SDK fails to properly handle elicitation and sampling requests. The context required for these bidirectional interactions isn't properly established in stateless mode.Open Questions
Related SEPs
AI Disclaimer