# Tenmomo.ai Browser Agent A local browser hand for MCP-capable coding agents. One persistent broker owns the Chrome extension connection while multiple clients connect over standard MCP Streamable HTTP. Each MCP session may control only tabs that it created. ## Architecture ```text MCP clients ── http://127.0.0.1:32146/mcp ─┐ stdio clients ── server.mjs ───────────────┤ ▼ local broker + policy │ ws://127.0.0.1:32145 │ Chrome MV3 extension ``` Both listeners are loopback-only. The extension authenticates to the broker with a locally generated pairing credential. Browser data is processed locally and is not sent to Tenmomo. ## Requirements - Node.js 20 or newer - Chrome 116 or newer - macOS for the native finance-domain **Allow Once** dialog and LaunchAgent helper (other platforms fail closed for finance-domain requests) ## Install from source ```bash npm ci npm run setup ``` `setup` generates local configuration but does not load or restart a service. Load `extension/` as an unpacked extension for development. Packaged builds use `manifest.store.json` and prompt from the side panel for optional page access. Start the broker directly for development: ```bash npm start ``` Connect MCP clients to `http://127.0.0.1:32146/mcp`. Stdio-only clients can run: ```bash node server.mjs ``` ## Security model - An MCP session can list tab titles/URLs read-only, but can mutate only tabs it created. - Commands are serialized per tab; session expiry releases ownership without closing Chrome tabs. - Browser password-manager/autofill stores are always outside agent authority. - Finance-transaction domains are default-deny and require one native owner approval per request, rechecked by the extension immediately before action. - `mcp-session-id` is a loopback bearer credential. See [SECURITY.md](SECURITY.md). ## Permissions The store profile statically requests `activeTab`, `sidePanel`, `storage`, and `tabs`. It requests `scripting` and `` only through a user gesture. The local development profile has static all-site access. ## Verify and package ```bash npm test npm run validate npm run package ``` Packaging emits a Chrome Web Store profile ZIP in `dist/`, strips source-only manifests and local examples, and writes an empty pairing credential. ## Client recipes - Claude Code: configure an HTTP MCP server at the loopback endpoint. - Codex: `codex mcp add browser-agent --url http://127.0.0.1:32146/mcp` - Pi: install dependencies in `pi-extension/`, then add its absolute path to Pi's `extensions` setting. - Other clients: use HTTP MCP directly or the stdio adapter. ## Privacy and license See [PRIVACY-POLICY.md](PRIVACY-POLICY.md). This project is licensed under the [MIT License](LICENSE).