@anvailabs/agentbrowser-mcp 1.15.1 → 1.16.0
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/README.md +29 -9
- package/dist/bin.js +244 -74
- package/dist/index.js +237 -64
- package/dist/mcp-server.d.ts +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +167 -81
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,26 @@ npm i -g @anvailabs/agentbrowser-mcp # Node >= 18
|
|
|
9
9
|
|
|
10
10
|
The package is **only the MCP stdio adapter** — it proxies to an AgentBrowser service. Point it at one with `AGENTBROWSER_BASE_URL` (default `http://localhost:5709`).
|
|
11
11
|
|
|
12
|
+
## Discover usage before inspecting source
|
|
13
|
+
|
|
14
|
+
`tools/list` includes headed-session, cookie-handoff and LAN policy guidance on the
|
|
15
|
+
relevant tools. `create` returns both a `sessionId` and an initial `pageId`;
|
|
16
|
+
set `headless: false` for a visible window on the **server** host. CLI `session create`
|
|
17
|
+
only returns a session, so shell clients must also call `page create`.
|
|
18
|
+
|
|
19
|
+
When shell access is available, use `agentbrowser --help` and offline
|
|
20
|
+
`agentbrowser describe session create` / `describe navigate` / `describe plan --schema`
|
|
21
|
+
for examples and exact CLI syntax. `AGENTBROWSER_BASE_URL` configures this adapter;
|
|
22
|
+
the CLI uses `--base-url`. Neither reconfigures the running REST server.
|
|
23
|
+
An operator may set `AGENTBROWSER_ALLOWED_CIDRS` on **agentbrowser-server at startup**
|
|
24
|
+
for specific authorized LAN hosts. This never relaxes loopback/metadata blocks or
|
|
25
|
+
overrides session host restrictions. There is no per-tool policy-widening argument.
|
|
26
|
+
|
|
27
|
+
Cookie tool results contain credentials. Prefer the CLI's private-file export/import
|
|
28
|
+
when appropriate, and verify the expected authenticated UI after seeding. See the
|
|
29
|
+
[quick reference](../../docs/cli-agent-usage.md#find-the-answer-in-cli-help-first).
|
|
30
|
+
|
|
31
|
+
|
|
12
32
|
Exposes AgentBrowser as a small set of high-level, safe, composable MCP tools
|
|
13
33
|
(ADR-009). Raw engine operations — evaluate, routing, selectors, low-level
|
|
14
34
|
input — are deliberately not exposed.
|
|
@@ -21,11 +41,11 @@ responses, with a digest over complete descriptions and schemas. The existing re
|
|
|
21
41
|
artifact check rejects drift. Regenerate after building with
|
|
22
42
|
`node scripts/mcp-catalog-docs.mjs --write`.
|
|
23
43
|
|
|
24
|
-
`
|
|
44
|
+
`session` inspects metadata and pages when given a `sessionId`. On a delegated
|
|
25
45
|
connection the binding supplies that ID and the same response also includes current
|
|
26
46
|
control status. The tool requires both `session.control` and `page.observe`; application
|
|
27
47
|
mode therefore does not expose it. Delegated mode removes create/close/cookies and adds
|
|
28
|
-
`
|
|
48
|
+
`operation` (operation status). `AGENTBROWSER_MODE` fixes one profile for the
|
|
29
49
|
lifetime of the bridge connection. Reconnect to change profiles; clients may cache
|
|
30
50
|
catalogs. Obtain the effective catalog from your own connection with `tools/list`;
|
|
31
51
|
metadata never enlarges a session grant, and the service rejects a tool call that the
|
|
@@ -45,7 +65,7 @@ unknown requested versions are offered `2025-06-18`; clients must support that r
|
|
|
45
65
|
version or disconnect. Missing initialization retains historical text behavior; clients
|
|
46
66
|
should always perform the handshake. A connection cannot renegotiate while calls run.
|
|
47
67
|
|
|
48
|
-
Under `2025-06-18`, `
|
|
68
|
+
Under `2025-06-18`, `autofill` and `plan` advertise canonical
|
|
49
69
|
`urn:agentbrowser:autofill-report:v1` and `urn:agentbrowser:plan-report:v1` schemas and return validated
|
|
50
70
|
`structuredContent` **plus identical serialized JSON text**. Plan retains optional mode/revision metadata to preserve the existing SDK contract;
|
|
51
71
|
the current server always supplies it. Other tools still return
|
|
@@ -65,16 +85,16 @@ Errors before a valid report exists remain text diagnostics without structured c
|
|
|
65
85
|
This transport qualification does not yet certify structured-result consumption by
|
|
66
86
|
installed Victor, Codex or Claude clients. That remains T8 harness acceptance.
|
|
67
87
|
|
|
68
|
-
For qualified native forms, prefer `
|
|
88
|
+
For qualified native forms, prefer `autofill`; inspect each field's verification
|
|
69
89
|
receipt and preserve uncertain writes. For explicit heterogeneous steps use
|
|
70
|
-
`
|
|
90
|
+
`snapshot` → `plan` — see the
|
|
71
91
|
[main README](../../README.md#the-fast-path-for-forms-snapshot-then-plan).
|
|
72
92
|
|
|
73
93
|
## Multiple pages and large research results
|
|
74
94
|
|
|
75
|
-
`
|
|
95
|
+
`create` still returns its initial `pageId`. Use `page_create` with
|
|
76
96
|
that `sessionId` and an optional HTTP(S) `url` to create another page in the same
|
|
77
|
-
cookie context. Use `
|
|
97
|
+
cookie context. Use `pages` to discover page IDs, including adopted popups;
|
|
78
98
|
never invent an ID or expect navigation to create a page implicitly. These tools
|
|
79
99
|
delegate to the existing SDK, and the service remains the authorization/policy owner.
|
|
80
100
|
The equivalent shell interfaces remain `agentbrowser page create --help` and
|
|
@@ -82,12 +102,12 @@ The equivalent shell interfaces remain `agentbrowser page create --help` and
|
|
|
82
102
|
|
|
83
103
|
Bound creation requires `operationId` chosen before dispatch. Controlled sessions
|
|
84
104
|
deduplicate that ID, but operation status does not retain the resulting page ID.
|
|
85
|
-
Ordinary sessions made by `
|
|
105
|
+
Ordinary sessions made by `create` do not acquire deduplication from an ID
|
|
86
106
|
alone. Do not automatically retry an uncertain create in either case; inventory is
|
|
87
107
|
not proof of which page a concurrent create produced. A general explicit-page quota
|
|
88
108
|
and result correlation remain follow-ups, separate from the existing popup cap.
|
|
89
109
|
|
|
90
|
-
`
|
|
110
|
+
`extract` preserves complete `data` and evidence within `maxBytes`. Its
|
|
91
111
|
default ceiling is 1 MiB of compact JSON including evidence; the operator can raise
|
|
92
112
|
the ceiling with `AGENTBROWSER_EXTRACT_MAX_BYTES` before starting the service.
|
|
93
113
|
Raw HTML size is not the extracted result size. Over-limit results fail explicitly,
|