Repository navigation
Conversation
Adds the browser-tools CLI binary that invokes the same tool handlers as the MCP server, plus resource subcommands. Introduces navigateBrowser with service worker tabs.update (active: false) behind capability gates from #251. The CLI exposes --allow-actions (argv only), mapped to connector allow-input; browser-tools-mcp keeps --allow-eval and --allow-input. Preserves #250 local API policy, extension-id pairing, and websocket token rules on top of #251. Co-authored-by: werbel.ted <werbel.ted@gmail.com>
Without a live worker, popup-gated actions cannot be confirmed. Return GateReason.popupOff instead of switchUnconfirmed so disconnect races match dropConnection semantics and capability-gates integration tests. Co-authored-by: werbel.ted <werbel.ted@gmail.com>
Page actions are confirmed from the popup (#251); panel.js no longer references allowActions or bridge action-confirmation APIs. Co-authored-by: werbel.ted <werbel.ted@gmail.com>
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
Implements AGE-482 v1 on top of merged #251 (capability gates) and #250 (local API policy).
browser-toolsnpm bin mirrors every MCP tool via sharedtool-invokehandlers, plusresourcesubcommands for MCP resources.navigateBrowserMCP tool and connector route: extension service worker loads URLs withtabs.update({ active: false }), gated throughcheckCapability("navigate", …)(popup switch +--allow-input/ origins).browser-toolsuses--allow-actionsonly (argv, no env), mapped to connectorallowInput. It rejects--allow-eval/--allow-inputso agents do not see two flag models.browser-tools-mcpunchanged (--allow-eval,--allow-input).decideApiAccessmiddleware,/.pair+extensionId, query-string token rejection, originless Bearer auth.Test plan
npm run buildinbrowser-tools-mcpnpx vitest run --project unit --project integration(558 passed)Notes