@mirsella/browser-mcp 2.0.1 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +14 -1
- package/package.json +1 -1
- package/vendor/browser-mcp +0 -0
package/README.md
CHANGED
|
@@ -47,6 +47,12 @@ Concurrent Codex and OpenCode instances converge on the same private socket and
|
|
|
47
47
|
profile. The broker remains available while at least one adapter is connected,
|
|
48
48
|
then closes the browser and exits shortly after the final adapter disconnects.
|
|
49
49
|
|
|
50
|
+
The CDP port defaults to `9222`. If that port is occupied, the broker logs the
|
|
51
|
+
collision and selects a free loopback port without adopting or stopping the
|
|
52
|
+
other listener. Adapters keep the same configuration and share the selected
|
|
53
|
+
endpoint. A replacement broker reuses that port only when the exact persisted
|
|
54
|
+
browser generation is still running.
|
|
55
|
+
|
|
50
56
|
OpenCode loads the JavaScript `./server` package export. Codex uses the
|
|
51
57
|
plugin and MCP manifests plus the session hooks. Both integrations launch
|
|
52
58
|
the same packaged Rust executable.
|
|
@@ -130,6 +136,13 @@ The plugin:
|
|
|
130
136
|
- releases owned tabs when an OpenCode session is deleted;
|
|
131
137
|
- registers the bundled browser automation skill when the server is enabled.
|
|
132
138
|
|
|
139
|
+
The adapter preserves OpenCode's MCP request metadata and routes calls by
|
|
140
|
+
`_meta["ai.opencode/sessionID"]`, including calls that bypass the plugin tool
|
|
141
|
+
hook. Legacy plugin routing and Codex hooks remain supported. Conflicting or
|
|
142
|
+
missing identities fail closed; unidentified callers never share a browser
|
|
143
|
+
session. The broker still binds each session to its original workspace and
|
|
144
|
+
keeps tab ownership separate.
|
|
145
|
+
|
|
133
146
|
OpenCode sees two compact tools by default:
|
|
134
147
|
|
|
135
148
|
- `browser_dispatch` executes one browser action.
|
|
@@ -216,7 +229,7 @@ shared by both integrations):
|
|
|
216
229
|
| `OPENCODE_BROWSER_PROFILE` | browser-dependent | Shared browser data directory |
|
|
217
230
|
| `OPENCODE_BROWSER_HEADLESS` | `false` | Run without a visible window |
|
|
218
231
|
| `OPENCODE_BROWSER_SESSION_LAYOUT` | `shared-window` | `shared-window` or `window-per-session` |
|
|
219
|
-
| `OPENCODE_BROWSER_CDP_PORT` | `9222` |
|
|
232
|
+
| `OPENCODE_BROWSER_CDP_PORT` | `9222` | Preferred loopback CDP port; a free port is selected on collision |
|
|
220
233
|
| `OPENCODE_BROWSER_IDLE_MINUTES` | `30` | Fallback cleanup for routed sessions |
|
|
221
234
|
| `OPENCODE_BROWSER_MAX_PAGES` | `5` | Max owned tabs per agent session |
|
|
222
235
|
| `OPENCODE_BROWSER_STARTUP_SECONDS` | `20` | Browser startup deadline |
|
package/package.json
CHANGED
package/vendor/browser-mcp
CHANGED
|
Binary file
|