Skip to content

Adds _meta to additional interface types #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025
Merged

Conversation

ihrpr
Copy link
Contributor

@ihrpr ihrpr commented Jun 15, 2025

Add _meta fields to additional MCP types. This PR updates the TypeScript SDK to align with the protocol changes from modelcontextprotocol/modelcontextprotocol#710, which added _meta fields to several additional types in the MCP specification.

Added the optional _meta field to the following types that did not previously have it:

  • Resource
  • ResourceTemplate
  • Tool
  • TextContent
  • ImageContent
  • AudioContent
  • Root

Closes #625

@ihrpr ihrpr requested a review from bhosmer-ant June 15, 2025 17:52
Copy link
Contributor

@bhosmer-ant bhosmer-ant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up that the spec comment language changes in modelcontextprotocol/modelcontextprotocol#733

@ihrpr ihrpr merged commit 86dbcfe into main Jun 16, 2025
5 checks passed
@ihrpr ihrpr deleted the ihrpr/additinal-meta branch June 16, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants