Skip to content

Conversation

@LucaButBoring
Copy link
Contributor

@LucaButBoring LucaButBoring commented Dec 1, 2025

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 1, 2025

Open in StackBlitz

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

commit: d41bcf8

@LucaButBoring LucaButBoring force-pushed the feat/elicitation-sampling-streaming branch 3 times, most recently from f8755d8 to 7520307 Compare December 1, 2025 23:52
@LucaButBoring LucaButBoring force-pushed the feat/elicitation-sampling-streaming branch from 7520307 to 4ed61b6 Compare December 1, 2025 23:58
@LucaButBoring LucaButBoring marked this pull request as ready for review December 2, 2025 00:04
@LucaButBoring LucaButBoring requested a review from a team as a code owner December 2, 2025 00:04
@LucaButBoring LucaButBoring marked this pull request as draft December 2, 2025 00:20
@LucaButBoring
Copy link
Contributor Author

Doing some manual testing on this, converted back to draft temporarily

@LucaButBoring LucaButBoring marked this pull request as ready for review December 2, 2025 00:39
@LucaButBoring
Copy link
Contributor Author

Validated with new example tool.

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