Skip to content

Conversation

@LucaButBoring
Copy link
Contributor

Backport of #1210 to the v1.x branch. Following #1041, this adds streaming methods for elicitation and sampling to simplify usage with Tasks.

Motivation and Context

Introduces a consistent way to use Tasks with elicitation and sampling just like we have with tool calls.

How Has This Been Tested?

New unit tests and example tool.

Breaking Changes

N/A

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

Additional context

@LucaButBoring LucaButBoring requested a review from a team as a code owner February 12, 2026 18:27
@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2026

⚠️ No Changeset found

Latest commit: ffe3535

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 12, 2026

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/sdk@1528

commit: ffe3535

Backport of PR modelcontextprotocol#1210 to 1.x branch.

- Add createMessageStream() with capability and message validation
- Add elicitInputStream() with form/url mode support
- Add collect-user-info-task example demonstrating bidirectional tasks
- Add comprehensive tests for streaming methods
@LucaButBoring LucaButBoring force-pushed the feat/elicitation-sampling-streaming-1.x branch from 14092b8 to ffe3535 Compare February 12, 2026 18:31
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.

1 participant