Skip to content

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

Open
koic wants to merge 1 commit intomodelcontextprotocol:mainfrom
koic:add_content_embedded_resource
Open

Add Content::EmbeddedResource class for embedded resource content type#244
koic wants to merge 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 from 5ff4f57 to 4cd4883 Compare February 27, 2026 16:03
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 4cd4883 to 77eb7a1 Compare February 28, 2026 09:13
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