Environment:A9T9 RPA Node JS MCP Bridge
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, MCP, RPA |
| Last Updated | 2026-10-22 17:48 GMT |
Overview
Node.js >= 18 runtime for the Ui.Vision MCP bridge process, exposing browser/desktop RPA tools to MCP clients (Claude Code, Cursor, VS Code, LM Studio) over stdio JSON-RPC with a WebSocket relay to the browser extension.
Description
The MCP bridge (uivision-mcp-bridge.js) is a standalone Node.js process that acts as a rendezvous point between an MCP client and the Ui.Vision browser extension. The MCP client (e.g., Claude Code) communicates via newline-delimited JSON-RPC 2.0 over stdio, while the extension connects to a WebSocket server on 127.0.0.1:50888. Tool calls arriving over MCP are forwarded to the extension, which executes them using the same tool implementations as the built-in AI chat. The bridge authenticates extension connections via a pairing token or origin-based authentication (extension ID allowlist).
Usage
Use this environment when integrating Ui.Vision with any MCP-compatible AI client. The bridge process must be running whenever the MCP client needs to execute Ui.Vision macros, take screenshots, inspect logs, or perform any RPA action through the extension. Register with claude mcp add uivision -- node /path/to/uivision-mcp-bridge.js.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Windows, macOS, or Linux | Node.js cross-platform |
| Runtime | Node.js >= 18 | engines.node in package.json
|
| Disk | Minimal | Single JS file + ws dependency
|
| Network | localhost TCP 50888 | WebSocket server on 127.0.0.1; configurable via --port
|
Dependencies
System Packages
- Node.js >= 18
NPM Dependencies
ws>= 8.18.0 (WebSocket server)
MCP Protocol Versions
2024-11-052025-03-262025-06-18(latest)
Credentials
UIVISION_MCP_TOKEN— Pairing token for extension authentication (auto-generated in~/.uivision_mcp_tokenif not provided)UIVISION_MCP_PORT— Override the default WebSocket port (50888)
Token sources, in order: --token CLI arg, UIVISION_MCP_TOKEN env var, token file. The token file lives in the user's home directory (not the package dir) to survive npx cache pruning.
Quick Install
# Install globally via npm
npm install -g uivision-mcp-bridge
# Or run via npx
npx uivision-mcp-bridge
# Register with Claude Code
claude mcp add uivision -- node /path/to/uivision-mcp-bridge.js
# One-shot setup (registers with all MCP clients and prints token)
node uivision-mcp-bridge.js --setup
Code Evidence
Node.js engine requirement from mcp/package.json:10-12:
{
"engines": {
"node": ">=18"
},
"dependencies": {
"ws": "^8.18.0"
}
}
Architecture and stdio/WebSocket relay from mcp/uivision-mcp-bridge.js:1-21:
// Architecture: this process is the rendezvous point between two clients that
// both dial OUT to it:
// - the MCP client (Claude Code) talks JSON-RPC 2.0 over stdio (MCP stdio
// transport, newline-delimited)
// - the Ui.Vision browser extension connects to the WebSocket server this
// process runs on 127.0.0.1 (extensions cannot accept incoming
// connections, but outbound WebSockets are fine)
Token authentication with timing-safe comparison from mcp/uivision-mcp-bridge.js:158-162:
const tokenMatches = (candidate) => {
const a = Buffer.from(String(candidate || ''))
const b = Buffer.from(token)
return a.length === b.length && crypto.timingSafeEqual(a, b)
}
MCP protocol version negotiation from mcp/uivision-mcp-bridge.js:86-87:
const KNOWN_PROTOCOL_VERSIONS = ['2024-11-05', '2025-03-26', '2025-06-18']
const LATEST_PROTOCOL_VERSION = '2025-06-18'
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
WebSocket connection rejected |
Token mismatch or extension ID not in allowlist | Run --setup to print the token; paste into Settings > AI > MCP bridge
|
run_macro timeout (15 min) |
Macro execution exceeded the 15-minute tool timeout | Simplify the macro or increase timeout; extension caps runs at 10 min |
Extension not connected |
Browser extension not running or bridge not started | Ensure the extension is loaded and the bridge process is running |
Compatibility Notes
- MCP Clients: Works with Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, and LM Studio. The bridge auto-detects the client from the parent process name.
- stdout Reserved: All logging goes to stderr; stdout is reserved for MCP JSON-RPC messages.
- Token File Location: Lives in
~/.uivision_mcp_token(home directory), not the package directory —npxmay prune the package cache. Legacy tokens next to the script are auto-migrated. - Origin-Based Auth: Extension connections from known Ui.Vision extension IDs bypass the token requirement entirely (the browser Origin header cannot be forged by web content).
- Dev/Test Browsers: Development installs (
installType === 'development'in Chrome, non-store ID in Firefox) skip the pairing token. - Tool Timeouts:
run_macro: 15 min,run_selftest: 11 min, default: 3 min.