Skip to content

fix: add MCP tool annotations#177

Open
zxyasfas wants to merge 1 commit into
BrowserMCP:mainfrom
zxyasfas:fix/mcp-tool-annotations
Open

fix: add MCP tool annotations#177
zxyasfas wants to merge 1 commit into
BrowserMCP:mainfrom
zxyasfas:fix/mcp-tool-annotations

Conversation

@zxyasfas
Copy link
Copy Markdown

@zxyasfas zxyasfas commented May 8, 2026

Summary

Adds MCP tool annotations to BrowserMCP tool definitions so clients can distinguish read-only inspection tools from browser actions that can change page state.

Changes

  • Extends the local tool schema with optional MCP annotations.
  • Marks snapshot, hover, wait, console logs, and screenshot tools as read-only.
  • Marks click, drag, type, select option, and press key tools as destructive.
  • Marks browser navigation history tools as non-destructive navigation actions.

Fixes #162.

Validation

  • git diff --check
  • Could not run the package typecheck in this standalone checkout because package.json references workspace packages via workspace:*.

@zxyasfas zxyasfas force-pushed the fix/mcp-tool-annotations branch from c36d0f2 to a015d8c Compare May 9, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add MCP annotations (readOnlyHint/destructiveHint) to tool definitions

1 participant