DevDocs
DevDocs copied to clipboard
feat: add MCP tool annotations to all 10 tools
Summary
- Bump MCP SDK from
>=1.2.0to>=1.8.0for annotation support - Add
ToolAnnotationsto all 10 tools withtitleandreadOnlyHint
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