codex-control-chrome-mcp 1.3.1 → 1.3.3
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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/src/cli.js +7 -0
- package/src/mcp-server.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ This project follows semantic versioning.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.3.3] - 2026-07-04
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `chrome_cdp_send` now attaches first and self-heals a stale debugger attachment, matching `chrome_evaluate`/`chrome_navigate`/`chrome_screenshot` (added in 1.3.1). Previously it sent the raw CDP command with no preceding `attach` and no recovery, so any command routed through it (e.g. `Page.close`, `Network.enable`) dead-ended on `Debugger is not attached` whenever the attachment had gone stale — which happens more often when multiple sessions share one browser and contend for the single debugger per tab. It now wraps the command in the same attach → run → (on "not attached") detach → attach → retry-once helper. Note this only recovers one-shot commands: flows that need the debugger to stay attached over time (e.g. `Network.enable` then streaming events via `chrome_read_events`) remain fragile under contention, so prefer page-side APIs (Resource Timing / PerformanceObserver) there.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `codex-control-chrome-mcp --version` (also `-v` and `version`) prints the package name and version. Previously the CLI had no way to report its own version, so `-v`/`--version` fell through to `Unknown command`.
|
|
18
|
+
|
|
9
19
|
## [1.3.1] - 2026-07-04
|
|
10
20
|
|
|
11
21
|
### Fixed
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { DEFAULT_BROWSER, SUPPORTED_BROWSERS } from "./constants.js";
|
|
11
11
|
import { listBridgeSockets } from "./bridge-client.js";
|
|
12
12
|
import { probeLengthPrefixedSocket } from "./probe.js";
|
|
13
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./package-meta.js";
|
|
13
14
|
|
|
14
15
|
export async function runCli(argv) {
|
|
15
16
|
const args = argv.slice(2);
|
|
@@ -65,6 +66,11 @@ export async function runCli(argv) {
|
|
|
65
66
|
printJson(await probeLengthPrefixedSocket(socketPath));
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
69
|
+
case "version":
|
|
70
|
+
case "--version":
|
|
71
|
+
case "-v":
|
|
72
|
+
process.stdout.write(`${PACKAGE_NAME} ${PACKAGE_VERSION}\n`);
|
|
73
|
+
return;
|
|
68
74
|
case "help":
|
|
69
75
|
case "--help":
|
|
70
76
|
case "-h":
|
|
@@ -157,6 +163,7 @@ Usage:
|
|
|
157
163
|
codex-control-chrome-mcp uninstall-native-host [--force] [--browser <chrome|edge|all>]
|
|
158
164
|
codex-control-chrome-mcp status [--browser <chrome|edge|all>]
|
|
159
165
|
codex-control-chrome-mcp probe-socket <socket-path>
|
|
166
|
+
codex-control-chrome-mcp --version
|
|
160
167
|
|
|
161
168
|
Notes:
|
|
162
169
|
--stdio is the MCP server mode for Agent tools.
|
package/src/mcp-server.js
CHANGED
|
@@ -92,7 +92,7 @@ class ChromeUseRuntime {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function registerTools(server, runtime) {
|
|
95
|
+
export function registerTools(server, runtime) {
|
|
96
96
|
server.registerTool(
|
|
97
97
|
"chrome_status",
|
|
98
98
|
{
|
|
@@ -217,7 +217,10 @@ function registerTools(server, runtime) {
|
|
|
217
217
|
timeoutMs: z.number().int().positive().optional(),
|
|
218
218
|
},
|
|
219
219
|
},
|
|
220
|
-
async (
|
|
220
|
+
async ({ tabId, method, params, timeoutMs }) =>
|
|
221
|
+
toolResult(await withReattach(runtime, tabId, () =>
|
|
222
|
+
executeCdp(runtime, { tabId, method, params, timeoutMs }),
|
|
223
|
+
)),
|
|
221
224
|
);
|
|
222
225
|
|
|
223
226
|
server.registerTool(
|