Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## 2.0.5

The `browser-tools` CLI. The packages published to npm as 2.0.4 were
hardening only: that publish was cut from 936272d, which is the local API
hardening and the capability gates in the section below, and it does not
include this command.

- **`browser-tools` calls the same tools as the MCP server.** The binary
ships in `@agentdeskai/browser-tools-mcp`. A command is the tool name and
one JSON object of arguments
(`browser-tools getConsoleLogs '{"limit":20}'`).
`browser-tools resource <name> <scope>` reads the same resources
(`console-history`, `network-history`, `network-har`, `screenshot`,
`audit-report`). Connector flags match `browser-tools-mcp`, except
capability gating: the CLI takes `--allow-actions` (argv only), which maps
to the connector's input policy, and it rejects `--allow-eval` and
`--allow-input`.
- **`navigateBrowser` loads a URL in an existing tab without focusing it or
attaching the debugger.** The extension service worker calls
`chrome.tabs.update` with `active: false`. Pass the `tabId` of a tab that
has DevTools open (`listBrowserTabs`). It needs the session popup switch
and `--allow-input` on `browser-tools-mcp`, or `--allow-actions` on the
CLI. Local origins are allowed by default; other http(s) origins need
`--allow-input-origins`.
- `@agentdeskai/browser-tools-server` now requires
`@agentdeskai/browser-tools-mcp` `^2.0.5`.

## 2.0.4

Low-severity hardening of the local connector, and the test runner is now Vitest 5.
Expand All @@ -21,6 +48,15 @@ Low-severity hardening of the local connector, and the test runner is now Vitest
embeds the connector are not gated by this.
- **1.x is unsupported.** README and SECURITY.md tell anyone still on it to
upgrade. The vulnerabilities fixed in 2.0 are not patched on 1.x.
- **Script evaluation and input default off (#251).** `--allow-eval` and
`--allow-input` are process flags with no environment-variable form.
Navigation, soft input, and real input share an origin allowlist that is
local by default (`--allow-input-origins`, `--exclude-origins`). The
DevTools panel switch covers real input and script evaluation. A
session-scoped popup switch, also default off, covers page actions that do
not use DevTools. The extension re-reads the tab URL before a decision.
Nothing here hides the debugger banner. These gates are in the 2.0.4 npm
packages; the `browser-tools` CLI that sits on top of them is 2.0.5.

Vitest 5 is a dev dependency. Node 22.12 or newer is required to run the tests,
which the existing Node 22.19 floor already satisfies.
Expand Down
2 changes: 1 addition & 1 deletion browser-tools-mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agentdeskai/browser-tools-mcp",
"version": "2.0.4",
"version": "2.0.5",
"description": "MCP server exposing live browser telemetry (console logs, network requests, screenshots, Lighthouse audits) from your real Chrome session",
"mcpName": "io.github.AgentDeskAI/browser-tools-mcp",
"type": "module",
Expand Down
10 changes: 9 additions & 1 deletion browser-tools-mcp/test/e2e/inject-capture.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,15 @@ describe.skipIf(!browserSupport.usable)("injected console capture", () => {

expect(drained.some((e) => e.message.includes("INJECT-UNCAUGHT"))).toBe(true);
expect(drained.some((e) => e.message.includes("INJECT-REJECTED"))).toBe(true);
expect(drained.every((e) => e.level === "error")).toBe(true);
// The fixture page also logs after load (fetches, a late timer). Those can
// land in the buffer during the wait and are not part of this assertion.
expect(
drained
.filter(
(e) => e.message.includes("INJECT-UNCAUGHT") || e.message.includes("INJECT-REJECTED")
)
.every((e) => e.level === "error")
).toBe(true);
await page.close();
});

Expand Down
4 changes: 2 additions & 2 deletions browser-tools-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agentdeskai/browser-tools-server",
"version": "2.0.4",
"version": "2.0.5",
"description": "Standalone connector for BrowserTools MCP. Only needed when several MCP clients must share one browser session — browser-tools-mcp now embeds this automatically.",
"type": "module",
"main": "index.js",
Expand Down Expand Up @@ -36,6 +36,6 @@
"author": "AgentDesk AI",
"license": "MIT",
"dependencies": {
"@agentdeskai/browser-tools-mcp": "^2.0.4"
"@agentdeskai/browser-tools-mcp": "^2.0.5"
}
}
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.AgentDeskAI/browser-tools-mcp",
"description": "Console, network, screenshots and Lighthouse audits from your real Chrome session.",
"version": "2.0.4",
"version": "2.0.5",
"repository": {
"url": "https://github.com/AgentDeskAI/browser-tools-mcp",
"source": "github"
Expand All @@ -13,7 +13,7 @@
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "@agentdeskai/browser-tools-mcp",
"version": "2.0.4",
"version": "2.0.5",
"transport": {
"type": "stdio"
},
Expand Down
Loading