feat(server): add MCP tool annotations to all tools for marketplace compliance - #375
Merged
Conversation
…ance Add title, readOnlyHint, destructiveHint, idempotentHint, and openWorldHint to every server.tool registration (45 tools), with values matched to each tool's actual behavior: - readOnlyHint: true for fetch/list/get/setup-instruction tools; false for tools that create, upload, run, or modify state - destructiveHint: true for overwrite-style updates (updateTestCase, updateTestRun, managePercyBuildApproval) - idempotentHint: true for readers and same-args-same-result updates; false for create/run/upload tools - openWorldHint: true only for runBrowserLiveSession (interactive browser on arbitrary third-party sites); false elsewhere - title: human-readable display name on every tool Required for Claude Connectors Directory (title + hints are mandatory) and OpenAI app submission (accurate readOnlyHint/openWorldHint/ destructiveHint required per tool). Tests updated to bind the handler from the last server.tool argument so the added annotations object doesn't shift positional assumptions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Second half of the per-tool annotation change: accessibility, appautomate, percy-sdk, rca-agent, selfheal, testmanagement tool files plus test updates that bind the handler from the last server.tool argument. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Continuation of the per-tool annotation change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Final part of the per-tool annotation change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Final file of the per-tool annotation change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
SavioBS629
approved these changes
Aug 25, 2026
ruturaj-browserstack
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds complete MCP tool annotations (
title,readOnlyHint,destructiveHint,idempotentHint,openWorldHint) to all 45server.tool()registrations, with values audited against each tool's actual behavior (HTTP verbs in utils, side effects like app uploads and session creation, in-memory store usage).Why
Required for marketplace submissions:
titleand the applicablereadOnlyHintordestructiveHint"; the submission portal flags tools missing titles or annotations.readOnlyHint,openWorldHint, anddestructiveHinton every tool, matched to actual behavior.Annotation values
readOnly: true, idempotent: truesetupBrowserStackAutomateTests, Percy setup/scan tools,prepareSelfHealingPlan, RCA tools)readOnly: false, idempotent: falsestartAccessibilityScan,createAccessibilityAuthConfig,takeAppScreenshot,runAppTestsOnBrowserStack, live-session tools, TM create/upload/addResult toolsreadOnly: false, destructive: true, idempotent: trueupdateTestCase,updateTestRun,managePercyBuildApprovalopenWorld: truerunBrowserLiveSessiononly — interactive browser on arbitrary third-party sites (per OpenAI's definition: can change publicly visible internet state)Every tool also gets a human-readable
title(e.g.createAccessibilityAuthConfig→ "Create Accessibility Auth Config").Verification
npm run buildpasses (lint + format + 276/276 tests + tsc)tools/listserver.tool()argument so the inserted annotations object doesn't break positional assumptionsNotes
getFailuresInLastRun(observability.ts) got annotations too but is currently never exposed —addObservabilityToolsis missing fromtoolAddersinserver-factory.ts(pre-existing; flagged separately, not fixed here).🤖 Generated with Claude Code