feat!: support MCP schema 2026-07-28 and make it the default (v2.0.0) - #119
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Summary
Adds support for MCP schema version
2026-07-28, promotes it to the default(and
latest) version, and refreshes the draft schema, examples, and docs tomatch.
This is a breaking change (v2.0.0): the default feature set and crate-root re-exports now resolve to
2026_07_28, and several legacy helper methods have been deprecated/removed.✨ Changes Made
2026_07_28schema (mcp_schema.rs,schema_utils.rs,validators.rs) plus its Cargo feature2026_07_28to default andlatest, make2025_11_25opt-inProtocolVersion::V2026_07_28, updatelatest(),Display,TryFromCallToolRequest/CallToolResultand thenew delegate-enum API
type_name()/method_name()in favor of*_value()ContentBlock::embedded_text_resource/embedded_blob_resource2026_07_28and thedeprecatedlinttests/v2026_07_28integration tests, update docs.rs🛠️ Testing Steps
📌 Summary
Adds support for MCP schema version
2026-07-28, promotes it to the default(and
latest) version, and refreshes the draft schema, examples, and docs tomatch. Breaking change targeting v2.0.0.
🔍 Related Issues
✨ Changes Made
2026_07_28schema (mcp_schema.rs,schema_utils.rs,validators.rs) plus its Cargo feature2026_07_28to default andlatest; make2025_11_25opt-inProtocolVersion::V2026_07_28; updatelatest(),Display,TryFromdraftschema to the 2026-07-28 contentsCallToolRequest/CallToolResultand thenew delegate-enum API
type_name()/method_name()in favor of*_value()ContentBlock::embedded_text_resource/embedded_blob_resource2026_07_28and thedeprecatedlinttests/v2026_07_28integration tests; update docs.rs/playground features🛠️ Testing Steps
./scripts/run_test.shand./scripts/run_clippy.shmcp_client_handle_message/mcp_server_handle_messageexamples💡 Additional Notes