You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adopt registerTool with titles, annotations (readOnlyHint/destructiveHint), and outputSchema for all 41 tools #212
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.
Activity