Repository navigation
refactor(mcp): bind browser observation tools through the shared table - #11622
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The PR appears safe to merge based on the reviewed changes. SummaryMoves eight browser observation tools into the shared binding table without changing their public contracts.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Browser service bindings] --> B[Shared registration loop]
B --> C{Provider failed to load?}
C -->|Yes| D[Return unavailable error]
C -->|No| E[Admit analysis]
E --> F[Run browser operation]
F --> G[Record Evidence and deliver result]
Reviews (1) · Last reviewed commit: "refactor(mcp): bind browser observation ..." · Reviewed by Greptile |
22 tasks
morluto
added a commit
that referenced
this pull request
Nov 16, 2026
22 tasks
morluto
added a commit
that referenced
this pull request
Nov 16, 2026
…red table (#11621) * refactor(mcp): bind Frida discovery and session tools through the shared table * refactor(mcp): bind browser observation tools through the shared table (#11622) * refactor(mcp): bind session record tools through the shared table (#11625) * fix(mcp): record a completed provider-backed workflow's Evidence once before delivery * refactor(mcp): bind Rizin debugger tools under external-mutation admission through the shared table (#11629) * refactor(mcp): bind Rizin debugger tools under external-mutation admission through the shared table * test(mcp): cancel a Rizin command during its retirement close, and route moved code to the reverse-tools lane
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
Binds the eight browser observation tools (
list_browser_targets,inspect_web_page,analyze_web_bundle,observe_web_session,discover_webmcp_tools,compare_web_captures,capture_web_screenshot,compare_web_screenshots) through the shared binding table instead of eight hand-writtenregisterToolhandlers. Stacked on #11621.Problem and expected behavior
registerBrowserTools.tscalledrunEvidenceToolOperationonce per tool to get one behavior the table lacked: when the optional browser provider failed to load, refuse every call as unavailable before admission. Expected: the table states that once per binding, and the loop owns it.Change and scope
src/server/contractToolBindings.ts: Evidence bindings takeunavailable?: OptionalProviderLoadFailure; when set, the loop registers a handler that refuses each call withoptionalProviderUnavailable(failure, tool)before admission (the same resultrunEvidenceToolOperationdelivered).src/server/serviceToolBindings.ts:browserObservationgroup ({ browser, loadFailure });analyze_web_bundlekeeps its summary preflight and view projection.createServer.tsregisters it with the same dependencies (analysis admission, session recording and lookup).src/server/registerBrowserTools.ts; baseline 8 sites removed.Behavior visible to MCP clients: none expected.
list_browser_targetsnow receives the request's progress reporter like the other browser tools (it previously received only the signal).Not included:
registerBrowserScenarioTool.ts(1 site), Electron (waits on D7), binary diagnostics; each still callsrunEvidenceToolOperationand can move tounavailablelater.Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
optionalProviderIsolation.test.tscovers the load-failure refusal forlist_browser_targetsthroughcreateServer; browser, source-map cancellation, late-abort, partial-Evidence and bundle view/containment suites run unchanged.For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/boundary/mcp/observationPartialEvidenceDelivery.test.ts tests/boundary/mcp/browserMcp.test.ts tests/boundary/mcp/lateAbortApplicationEvidenceMcp.test.ts tests/boundary/mcp/browserSourceMapCancellationMcp.test.ts tests/boundary/mcp/optionalProviderIsolation.test.ts tests/boundary/mcp/webBundleContainmentMcp.test.ts tests/boundary/mcp/webBundleViewsMcp.test.ts tests/boundary/mcp/toolSchemaValidity.test.ts— 48 passednode scripts/verify/architecture-guards.mjs --shrink-baselines— baseline lowered, passednpm run check:fast— passednpx oxfmton changed files — cleanCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.