feat(client): display tool annotations in Tools tab#1066
Draft
olaservo wants to merge 3 commits intomodelcontextprotocol:mainfrom
Draft
feat(client): display tool annotations in Tools tab#1066olaservo wants to merge 3 commits intomodelcontextprotocol:mainfrom
olaservo wants to merge 3 commits intomodelcontextprotocol:mainfrom
Conversation
Add visual badges to show tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) when a tool is selected. Badges appear below the tool description with color-coded styling: - Read-only: blue - Destructive: red - Idempotent: gray outline - Open-world: purple Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Display all 4 tool annotation badges (Read-only, Destructive, Idempotent, Open-world) for every tool, showing: - ✓/✗ prefix to indicate true/false value - Green badge for true, gray for false - Solid border for explicitly set values - Dashed border + dimmed for implied defaults - Tooltip explaining if value is explicit or implied Follows MCP spec defaults: - readOnlyHint: false - destructiveHint: true - idempotentHint: false - openWorldHint: true Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Enhance tooltips to include descriptions from the MCP specification: - Read-only: Tool does not modify its environment - Destructive: Tool may perform destructive updates (delete/overwrite data) - Idempotent: Calling repeatedly with same args has no additional effect - Open-world: Tool may interact with external entities beyond its local environment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
Display tool annotations in the Tools tab, showing all 4 MCP spec annotation hints with their values and whether they're explicitly set or implied defaults.
Type of Change
Changes Made
MCP Spec Defaults (shown when annotations not set):
readOnlyHint: falsedestructiveHint: trueidempotentHint: falseopenWorldHint: trueRelated Issues
Testing
Test Results and/or Instructions
get-annotated-message- should show explicit annotations (solid badges)echo) - should show implied defaults (dashed/dimmed badges)Checklist
npm run prettier-fix)Breaking Changes
None
Additional Context
🦉 Generated with Claude Code