Skip to content

docs: clarify Tasks availability across HTTP session modes - #2036

Open
FOWEPJF255 wants to merge 1 commit into
modelcontextprotocol:mainfrom
FOWEPJF255:daily24-20261123-task-docs
Open

FOWEPJF255 wants to merge 1 commit into
modelcontextprotocol:mainfrom
FOWEPJF255:daily24-20261123-task-docs

Conversation

@FOWEPJF255

Copy link
Copy Markdown

Summary

  • Correct the session-mode comparison: v2 Tasks are available on 2026-07-28 stateless requests with WithTasks, not on strict Stateful sessions.
  • Explain why strict Stateful rejects the required revision and why hybrid mode only supports Tasks on its stateless path.
  • Update the backpressure example to describe Stateless + Tasks and remove the incorrect Stateful default label.

Fixes #2031.

Evidence and validation

  • StreamableHttpHandler.GetOrCreateSessionAsync rejects 2026-07-28 requests in strict Stateful mode; the Tasks handler gates methods to that revision or later. docs/concepts/tasks/tasks.md also documents the down-level limitation.
  • WithTasks registers a shared store, not a store scoped to each session.
  • dotnet build --nologo -v quiet: 0 warnings, 0 errors.
  • npm ci --no-audit --no-fund and dotnet test --no-build --nologo -v quiet: 16,631 passed, 455 skipped, 0 failed across the solution test targets.
  • git diff --check: passed.

Note

I used Codex to prepare this documentation correction. I reviewed the implementation and diff, then ran the build and tests locally.

Signed-off-by: FOWEPJF255 <lhi25wy@163.com>

This branch has not been deployed

No deployments
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.

Docs: stateless.md says the stateful task store is "scoped per session", but Tasks are unavailable in strict Stateful mode

1 participant