codex-browser-workspaces
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Codex Browser Workspaces
Root-family Chrome tab groups with caller page leases for Codex CLI, built on the official Chrome DevTools MCP.
中文说明 · Install · Architecture · Related projects
Run several Codex conversations against one already-running, logged-in Chrome profile. A root conversation and all descendant agents share one colored tab group, while each caller acquires its own page leases. Independent root conversations keep separate groups. User tabs can be explicitly moved into the group without losing their current state; imported pages remain protected from close and automatic reuse.
Status: adapter and extension 0.4.0 development candidate, not deployed. Root-family/lease Chrome acceptance has not run. Earlier validation covers Codex CLI in WSL + Windows Chrome at the versions recorded in acceptance. This is an independent community project, not an official OpenAI or Google product.
Why this exists
Page routing identifies a target; it does not establish which conversation owns it. This adapter binds each call to Codex's thread metadata, checks page ownership, and coordinates the shared window without asking the model to choose a thread ID.
One stable colored group per root conversation and its descendant agents, named
[Project]Root thread name. Family resolution follows real Codex spawn edges; forks remain independent roots.Current group members listed in Chrome order, filtered to available pages and this caller's leases; listing never claims a page.
Five-minute idle page leases, explicit
release_page, and fresh versioned references after release or expiry.Named managed slots such as
mainandreference; busy slots cannot be taken, and external pages never become an implicit slot.Family-wide cleanup waits for every known controller to leave and its registered process to exit; idle and temporarily disconnected live processes keep pages.
Page, element, console and network references scoped to their owning page and connection generation.
Active-tab metadata discovery followed by an explicit move of the original tab, preserving page state without reload or cloning. External/manual transfers stay
canClose=false.Real Chrome group membership is authoritative. Manual moves and closes are accepted; missing pages are never revived. Popups use their actual CDP opener.
Screenshots restore the previous active tab and do not bring Chrome to the foreground. Minimized-window capture is supported in the validated Windows environment.
Cancellation, deadlines and disconnects return explicit errors; browser mutations are not automatically replayed.
Browser/extension session changes require explicit workspace reset rather than guessing old ownership.
This is tool-level page ownership, not account isolation or an OS security sandbox. Cookies, storage and website accounts remain shared. Programs with independent shell/CDP access are outside this boundary.
Related MCP server: chrome-devtools-mcp-mux
Requirements and setup
Node.js 22.22 or newer in WSL; Windows Chrome with a reachable loopback CDP endpoint.
A Codex CLI build that supplies matching
_meta.threadIdand_meta["x-codex-turn-metadata"].thread_idvalues on tool calls. Other MCP clients are not currently supported.Ability to load a local Manifest V3 extension into that Chrome profile.
git clone https://github.com/Mingll22/codex-browser-workspaces.git
cd codex-browser-workspaces
npm ci --ignore-scripts
npm run build
npm testContinue with installation to install the broker, pair the Windows extension and register the MCP entry. Building alone does not connect the browser or edit your Codex configuration. No npm registry publication or Chrome Web Store listing is currently provided.
The adapter attaches to a debugging-enabled Chrome profile; it cannot enable remote debugging on an arbitrary running personal profile. Follow the official connection guide when preparing Chrome, then reuse that profile's login state. Do not expose the debugging port to your network.
The extension toolbar shows the actual MCP connection count. Clicking its icon opens a compact status panel with connection, identified-thread and workspace summaries; opening it never renews a lease. See the popup contract and visual system.
Tools
Workspace tools: open_page, list_pages, get_active_tab, move_tab_to_workspace, release_page, close_page, set_page_retention, reset_workspace.
For a newly requested group position, list once and resolve its one-based position, then continue with the returned pageId. Positions follow the full current group before lease filtering and can have gaps. After a lease/reference expires, list again and read fresh page state. get_active_tab returns metadata only; content access starts after the exact tab is explicitly moved into the family and leased.
An allowlist forwards 19 official page tools for navigation, snapshots, screenshots, interaction, dialogs, JavaScript, console, network and file selection. Each requires an owned pageId. Browser-wide or unreviewed tools are not exposed. See the upstream contract.
Validation and limitations
Automated checks cover the candidate identity, lease and membership contracts with disposable fixtures. Real child/grandchild metadata and read-only SQLite resolution have also been checked; those calls used the old installed broker and do not prove new-model grouping. Root-family/lease Chrome acceptance remains unrun: the temporary official-backend connection was rejected by canonical-root validation of Windows paths, and that protection was not bypassed. See acceptance for dated results, the installation blocker and earlier browser evidence.
The official backend is pinned to chrome-devtools-mcp@1.11.0. Build-time patches are checked against exact source anchors and fail on an unreviewed version. Native Linux/macOS Chrome, generic MCP clients and recovery of arbitrary page state after a complete browser restart are not claimed.
Development
npm run build
npm test
node scripts/prepare-dev.mjsThe last command generates an isolated development configuration under ignored .artifacts/. See CONTRIBUTING.md before running browser integration tests: worktrees do not isolate Chrome, ports or real user sessions.
License
Apache-2.0. See LICENSE and NOTICE. The official backend and other dependencies retain their own license notices. Upstream modifications are documented in docs/UPSTREAM.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Keeps AI coding agents on one codebase from overwriting each other, and briefs each on its code.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA multi-agent orchestrator that enables multiple AI agents to share a single Chrome browser instance with tab isolation and shared state. It preserves local browser data like cookies and logins while allowing concurrent agent sessions through the official Playwright MCP.10MIT
- AlicenseAqualityDmaintenanceEnables multiple MCP clients to share a single Chrome instance while maintaining isolated tab sessions for each client. It acts as a multiplexer between clients and the chrome-devtools-mcp server, preventing tab conflicts across different sessions like Claude Code windows.2919 npm5Apache 2.0
- AlicenseNot gradedqualityBmaintenanceBrowser automation for OpenCode using Chrome DevTools and a shared Chromium profile, with per-session tab isolation so concurrent agents don't interfere. Enables browser agents to use existing signed-in sessions with shared cookies and extensions.466 npm1MIT
- AlicenseNot gradedqualityBmaintenanceLets many AI agent sessions share one real logged-in browser, each with its own tab group, using standard Playwright MCP tools.25 npmApache 2.0