Skip to content

Conversation

@LucaButBoring
Copy link
Contributor

@LucaButBoringLucaButBoring 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-newbot commented Dec 1, 2025

Open in StackBlitz

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

commit: 771f101

@LucaButBoringLucaButBoringforce-pushed the feat/elicitation-sampling-streaming branch 3 times, most recently from f8755d8 to 7520307CompareDecember 1, 2025 23:52
@LucaButBoringLucaButBoringforce-pushed the feat/elicitation-sampling-streaming branch from 7520307 to 4ed61b6CompareDecember 1, 2025 23:58
@LucaButBoringLucaButBoring marked this pull request as ready for review December 2, 2025 00:04
@LucaButBoringLucaButBoring requested a review from a team as a code ownerDecember 2, 2025 00:04
@LucaButBoringLucaButBoring marked this pull request as draft December 2, 2025 00:20
@LucaButBoring
Copy link
ContributorAuthor

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

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

Validated with new example tool.

@LucaButBoringLucaButBoringforce-pushed the feat/elicitation-sampling-streaming branch from ba50e0a to 771f101CompareDecember 8, 2025 23:21
@felixweinbergerfelixweinberger self-requested a review December 9, 2025 14:53
Sign up for freeto 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

@LucaButBoring