Skip to content

Fix stateless HTTP mode with elicitation and sampling #1740

@maxisbey

Description

@maxisbey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingv2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions