Heuristic:A9T9 RPA Tokenless Dev Browser Pairing
| Knowledge Sources | |
|---|---|
| Domains | MCP, Security, Development |
| Last Updated | 2026-10-22 17:48 GMT |
Overview
The MCP bridge pairing token is waived for development browsers (unpacked/temporary extensions in Chrome, non-store IDs in Firefox) to simplify the development workflow without compromising end-user security.
Description
The MCP bridge authenticates extension WebSocket connections with a pairing token. In development, requiring this token adds friction: developers load unpacked extensions, restart frequently, and the token may not be set up. The isDevTestBrowser() function detects development environments by checking two signals: (1) Chrome's chrome.management.getSelf().installType === 'development' for unpacked/temporarily-loaded extensions, and (2) Firefox's extension ID != kantu@a9t9.com (the store build ID) for developer builds. When either is true, the bridge waives the token requirement. Regular store installs in end-user browsers keep requiring the token.
Usage
Use this heuristic when developing or testing the Ui.Vision extension with the MCP bridge. No token setup is needed when loading an unpacked extension in Chrome for Testing, using web-ext, or loading a temporary Firefox add-on. The waiver is automatic — the bridge hello message includes a flag indicating the dev/test status.
The Insight (Rule of Thumb)
- Action: Skip the MCP bridge pairing token when
isDevTestBrowser()returns true. - Value: Chrome:
installType === 'development'. Firefox:chrome.runtime.id !== 'kantu@a9t9.com'. - Trade-off: Development browsers have no token protection — acceptable because they run on the developer's own machine and are not distributed.
- Compatibility: Store builds always require the token. Origin-based authentication (extension ID allowlist) applies to all connections regardless of dev status.
Reasoning
The detection logic lives in its own module without imports on purpose: bg.js (the MV3 service worker) needs it, and importing mcp_bridge/index.ts there would pull the whole panel bundle (antd, chat hook, tools) into the worker. The function uses chrome.management.getSelf for Chrome and chrome.runtime.getBrowserInfo + ID check for Firefox. Channel sniffing is not reliable on Firefox (Developer Edition's application.ini reports a plain version), but the extension ID is deterministic.
The origin-based authentication system (extension ID allowlist) provides a separate, stronger layer: web content cannot forge a browser extension's Origin header, so a connection from a known Ui.Vision extension ID is provably the real extension regardless of token status.