Skip to content

Adopt registerTool with titles, annotations (readOnlyHint/destructiveHint), and outputSchema for all 41 tools #212

Closed

Description

@TMHSDigital

Why it matters

MCP clients use tool annotations to decide permissions: readOnlyHint tools can be auto-approved, while destructiveHint and openWorldHint tools get a confirmation. Today get_media_info gets the same treatment as start_recording, or as an export with overwrite: true. That pushes users either to approve everything (risky for a server that captures the screen) or to click through a prompt on every frame sample. Titles also make the tool list readable in client UIs.

Evidence

  • A live tools/list from dist/index.js shows 0 of 41 tools with annotations, title, or outputSchema.
  • 38 tools in src/tools/*.ts use server.tool(…), which the SDK marks @deprecated Use registerTool. Only stopRecording.ts and reviewRecording.ts use registerTool.

Suggested approach

  • Migrate every tool to registerTool({ title, description, inputSchema, outputSchema, annotations }).
  • Annotations:
    • Read-only, not destructive: get_media_info, get_session, list_*, read_events, screen_diff, sample_frames, contact_sheet, find_text without redact.
    • Capture tools: not read-only, and open-world in the privacy sense.
    • Writers: destructiveHint set to whether overwrite is allowed.
  • Return structuredContent alongside the text JSON for tools that return JSON.
  • Add a test that asserts every registered tool has a title and annotations (pairs with Test the MCP tool layer: always-on manifest sync, handler tests via InMemoryTransport, FFmpeg 8 integration on the Windows leg #192).

Done when

  • No server.tool( calls remain.
  • tools/list shows annotations on every tool.
  • The test enforces it.

Activity

  1. added
    enhancement
    effort: medium
    impact: high
    dx
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxeffort: mediumenhancementimpact: highpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions