feat: Add MCP tool annotations for all 6 tools#107
Open
bryankthompson wants to merge 1 commit intoisaacphi:mainfrom
Open
feat: Add MCP tool annotations for all 6 tools#107bryankthompson wants to merge 1 commit intoisaacphi:mainfrom
bryankthompson wants to merge 1 commit intoisaacphi:mainfrom
Conversation
Add tool annotations (title, readOnlyHint, destructiveHint) to all 6 MCP tools: Read-only tools (4): - definition: Go to Definition - references: Find References - diagnostics: Get Diagnostics - hover: Hover Information Destructive tools (2): - edit_file: Edit File - rename_symbol: Rename Symbol These annotations help LLMs and clients understand tool behavior and make safer tool selection decisions. Requires mcp-go v0.28.0+ for annotation support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ce8b151 to
72b974a
Compare
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
Add MCP tool annotations to all 6 tools to improve LLM tool selection and user experience.
Read-only tools (4):
definitionReadOnlyHint: truereferencesReadOnlyHint: truediagnosticsReadOnlyHint: truehoverReadOnlyHint: trueDestructive tools (2):
edit_fileDestructiveHint: truerename_symbolDestructiveHint: trueChanges
mcp.WithToolAnnotation()to all 6 tool definitions intools.gomcp-gofrom v0.25.0 to v0.26.0 for annotation supportBenefits
Tool annotations help MCP clients (like Claude Desktop):
References
🤖 Generated with Claude Code