DevDocs icon indicating copy to clipboard operation
DevDocs copied to clipboard

feat: add MCP tool annotations to all 10 tools

Open bryankthompson opened this issue 11 months ago • 0 comments

Summary

  • Bump MCP SDK from >=1.2.0 to >=1.8.0 for annotation support
  • Add ToolAnnotations to all 10 tools with title and readOnlyHint

Tools Annotated

Tool Title Annotation
sync_file Sync File readOnlyHint: True
get_status Get Status readOnlyHint: True
list_files List Files readOnlyHint: True
read_file Read File readOnlyHint: True
search_files Search Files readOnlyHint: True
search_by_tag Search by Tag readOnlyHint: True
get_stats Get Stats readOnlyHint: True
get_section Get Section readOnlyHint: True
get_table_of_contents Get Table of Contents readOnlyHint: True
smart_section_search Smart Section Search readOnlyHint: True

Why Tool Annotations?

Tool annotations help AI assistants understand tool behavior before invocation:

  • title: Human-readable name for UI display
  • readOnlyHint: Indicates tool won't modify external state (safe to call without confirmation)

Reference: MCP Specification - Tool Annotations

Test Plan

  • [x] uv sync - dependencies install successfully (MCP 1.25.0)
  • [x] uv run python -c "from fast_markdown_mcp import server" - imports successfully
  • [ ] Verify annotations appear in MCP inspector

🤖 Generated with Claude Code

bryankthompson avatar Dec 29 '25 14:12 bryankthompson