feat(mcp): add tool annotations and update docs for TS v0.2.27 parity#15
Merged
feat(mcp): add tool annotations and update docs for TS v0.2.27 parity#15
Conversation
…ith TS v0.2.27 Add MCP tool annotations support (readOnlyHint, destructiveHint, idempotentHint, openWorldHint, title) on MCP::Tool and MCP.tool convenience method. Update SPEC.md for TS v0.2.27 and Python v0.1.26. Add README documentation for missing message types (UserMessageReplay, HookStartedMessage, HookProgressMessage, ToolUseSummaryMessage, FilesPersistedEvent), mcp_reconnect/mcp_toggle client methods, and tool annotations. Remove duplicated content from CLAUDE.md.
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.
What
Add MCP tool annotations support and update documentation to achieve full SDK parity with TypeScript v0.2.27 and Python v0.1.26.
Why
The TypeScript SDK v0.2.27 added tool annotations, leaving the Ruby SDK one feature behind. The README was also missing documentation for several message types and client methods that were already implemented.
How
annotationsparameter toMCP::ToolandMCP.toolconvenience methodmcp_reconnect/mcp_toggle