Skip to content

Conversation

LucaButBoring
Copy link
Contributor

Updates sampling to support embedded resources in requests and responses.

Motivation and Context

Brings sampling to parity with tool calls in terms of supported message types. This PR is intended to support modelcontextprotocol/modelcontextprotocol#522.

How Has This Been Tested?

Updated integration tests to include an embedded resource test.

Breaking Changes

None.

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

This PR will be updated accordingly if #725 is merged before this.

@felixweinberger felixweinberger added pending publish Draft PRs need to be published for team to review pending SEP approval When a PR is attached as an implementation detail to a SEP, we mark it as such for triage. labels Sep 5, 2025
@felixweinberger
Copy link
Contributor

Marking this as pending SEP approval given the currently inflight modelcontextprotocol/modelcontextprotocol#522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending publish Draft PRs need to be published for team to review pending SEP approval When a PR is attached as an implementation detail to a SEP, we mark it as such for triage.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants