Skip to content

Conversation

@triepod-ai
Copy link

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

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

🤖 Generated with Claude Code

- Bump MCP SDK from >=1.2.0 to >=1.8.0 for annotation support
- Add ToolAnnotations to all 10 tools:
  - sync_file: Sync File (readOnlyHint)
  - get_status: Get Status (readOnlyHint)
  - list_files: List Files (readOnlyHint)
  - read_file: Read File (readOnlyHint)
  - search_files: Search Files (readOnlyHint)
  - search_by_tag: Search by Tag (readOnlyHint)
  - get_stats: Get Stats (readOnlyHint)
  - get_section: Get Section (readOnlyHint)
  - get_table_of_contents: Get Table of Contents (readOnlyHint)
  - smart_section_search: Smart Section Search (readOnlyHint)

Tool annotations help AI assistants understand tool behavior:
- title: Human-readable tool name for UI display
- readOnlyHint: Indicates tool doesn't modify state

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants