Add tool annotations to remaining MCP tools#115
Merged
Conversation
Adds title and behavior hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to the 12 tools that were missing them, matching the pattern already used by the credential and API-key tools. All tools now declare annotations, which MCP clients use to label tools and gate destructive actions. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Created a monitoring plan for this PR. What this PR does: Completes MCP tool metadata for the Kernel MCP server so all 16 tools declare a human-readable title and the correct read-only/destructive/open-world behavior hints, satisfying the Connector Directory submission requirement. Previously 12 of 16 tools were missing these annotations entirely. Intended effect:
Risks:
|
|
Tool annotations deployed successfully at 2m post-merge across Production. Signals:
Risks watched:
Monitoring continues across 72h window. Manual |
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.
Summary
Adds MCP tool annotations (
title+ behavior hints) to the 12 tools that were missing them. Previously only 4 of 16 tools (manage_api_keys,manage_credentials,manage_credential_providers,manage_auth_connections) declared annotations; the rest passedschema → callbackwith no annotations object.Every tool now declares a
titleand the applicablereadOnlyHint/destructiveHint(plusidempotentHint/openWorldHint), matching the existing pattern. MCP clients use these to label tools in the UI and to gate destructive actions.Hints applied
search_docsmanage_appsmanage_browsersdeleteterminates sessions; Kernel-API onlymanage_profilesdeleteremoves profiles; setup drives live loginmanage_browser_poolsdelete/flushdestroy browsersmanage_projectsdeleteremoves projectsmanage_extensionsdeleteremoves extensionsmanage_proxiesdeleteremoves proxiesexecute_playwright_codeexec_commandbrowser_curlcomputer_actionopenWorldHintfollows the existing convention:truefor tools that touch external systems / the open web,falsefor Kernel-API-only management (consistent withmanage_credentials= false,manage_auth_connections= true).Test plan
tsc --noEmitpassesprettier --checkclean on all changed filestools/list(requires deployed/authed instance)🤖 Generated with Claude Code
Note
Low Risk
Metadata-only changes to MCP tool registration with no handler or API logic modified.
Overview
Adds MCP tool annotation metadata (
title,readOnlyHint,destructiveHint,idempotentHint,openWorldHint) to the 12 Kernel MCP tools that previously registered only schema + handler. Tool behavior is unchanged; registrations now pass the annotations object between the Zod schema and the callback, consistent with tools likemanage_api_keys.Hints are set per tool:
search_docsis read-only and idempotent; Kernel-only management tools (browsers, pools, projects, extensions, proxies) markopenWorldHint: falseanddestructiveHint: truewhere delete/flush/terminate applies;manage_appsis non-destructive butopenWorldHint: truefor app invokes; automation tools (execute_playwright_code,exec_command,browser_curl,computer_action, profile setup) are marked destructive and open-world where they can act on arbitrary sites or commands.This completes annotation coverage for Connector Directory /
tools/listconsumers that use titles and hints for UI labeling and gating destructive actions.Reviewed by Cursor Bugbot for commit 44e6140. Bugbot is set up for automated code reviews on this repo. Configure here.