Skip to content

Add Content::EmbeddedResource class for embedded resource content type#244

Merged
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:add_content_embedded_resource
Mar 1, 2026
Merged

Add Content::EmbeddedResource class for embedded resource content type#244
koic merged 1 commit intomodelcontextprotocol:mainfrom
koic:add_content_embedded_resource

Conversation

@koic
Copy link
Member

@koic koic commented Feb 27, 2026

Motivation and Context

The MCP spec defines an embedded resource content type, but the SDK had no corresponding class. Add Content::EmbeddedResource that wraps a resource object and serializes it via to_h.

https://modelcontextprotocol.io/specification/2025-11-25/server/tools#embedded-resources

How Has This Been Tested?

Pass the newly added tests.

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

@koic koic force-pushed the add_content_embedded_resource branch 2 times, most recently from 4cd4883 to 77eb7a1 Compare February 28, 2026 09:13
atesgoral
atesgoral previously approved these changes Mar 1, 2026
@koic koic force-pushed the add_content_embedded_resource branch from 77eb7a1 to e2d64f4 Compare March 1, 2026 08:32
The MCP spec defines an embedded resource content type, but the SDK had
no corresponding class. Add `Content::EmbeddedResource` that wraps a
resource object and serializes it via `to_h`.

https://modelcontextprotocol.io/specification/2025-11-25/server/tools#embedded-resources
@koic koic force-pushed the add_content_embedded_resource branch from e2d64f4 to ba7a08a Compare March 1, 2026 16:34
@koic koic merged commit 5f16abf into modelcontextprotocol:main Mar 1, 2026
10 checks passed
@koic koic deleted the add_content_embedded_resource branch March 1, 2026 16:35
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.

2 participants