unbrowse 2.11.0 → 2.12.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 CHANGED
@@ -2,14 +2,43 @@
2
2
 
3
3
  This package installs the `unbrowse` CLI.
4
4
 
5
- Turn any website into a reusable API interface for agents. Unbrowse captures network traffic, reverse-engineers the real endpoints underneath the UI, and stores what it learns in a shared marketplace so the next agent can reuse it instantly.
5
+ Unbrowse is a local Model Context Protocol (MCP) server and CLI that turns any website into a reusable API interface for agents. It captures network traffic, reverse-engineers the real endpoints underneath the UI, and stores what it learns in a shared marketplace so the next agent can reuse it instantly.
6
6
 
7
7
  One agent learns a site once. Every later agent gets the fast path.
8
8
 
9
- Unbrowse is a drop-in browser for agents: same browser-shaped job in the stack, but with route learning, reuse, and browser fallback built in.
9
+ Unbrowse is a drop-in replacement for OpenClaw / `agent-browser` browser flows for agents: on the API-native path it is typically ~30x faster, ~90% cheaper, and turns repeated browser work into reusable route assets.
10
10
 
11
11
  > Security note: capture and execution stay local by default. Credentials stay on your machine. Learned API contracts are published to the shared marketplace only after capture. See [SKILL.md](./SKILL.md) for the full agent-facing API reference and tool-policy guidance.
12
12
 
13
+ ## MCP server
14
+
15
+ Unbrowse implements the Model Context Protocol over stdio. `unbrowse mcp` is the MCP server entrypoint.
16
+
17
+ - Protocol: JSON-RPC 2.0 MCP over stdio
18
+ - Handshake: `initialize`, `notifications/initialized`, `ping`
19
+ - Capability surface today: `tools/list` and `tools/call`
20
+ - Current MCP shape: tools only. No `resources/*` or `prompts/*` methods yet.
21
+ - Runtime model: the MCP server fronts the local Unbrowse runtime on `http://localhost:6969`; hosts talk standard MCP, and Unbrowse uses the local HTTP runtime behind the scenes.
22
+
23
+ Core MCP tools:
24
+
25
+ - Discovery: `unbrowse_health`, `unbrowse_search`, `unbrowse_resolve`, `unbrowse_execute`, `unbrowse_feedback`
26
+ - Auth/cache: `unbrowse_login`, `unbrowse_skills`, `unbrowse_skill`, `unbrowse_sessions`
27
+ - Browser capture: `unbrowse_go`, `unbrowse_snap`, `unbrowse_click`, `unbrowse_fill`, `unbrowse_type`, `unbrowse_press`, `unbrowse_select`, `unbrowse_scroll`, `unbrowse_submit`, `unbrowse_screenshot`, `unbrowse_text`, `unbrowse_markdown`, `unbrowse_cookies`, `unbrowse_eval`, `unbrowse_sync`, `unbrowse_close`
28
+
29
+ Typical MCP host config:
30
+
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "unbrowse": {
35
+ "command": "npx",
36
+ "args": ["-y", "unbrowse", "mcp"]
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
13
42
  ## Quick start
14
43
 
15
44
  ```bash
@@ -18,9 +47,13 @@ git clone --single-branch --depth 1 https://github.com/unbrowse-ai/unbrowse.git
18
47
  cd ~/unbrowse && ./setup --host off
19
48
  ```
20
49
 
21
- `./setup` installs repo dependencies, prebuilds the packaged CLI runtime, installs a stable `unbrowse` shim, and then runs the real first-time bootstrap: ToS acceptance, agent registration + API-key caching, and lobster.cash wallet detection when present.
50
+ `./setup` installs repo dependencies, prebuilds the packaged CLI runtime, installs a stable `unbrowse` shim, and then runs the real first-time bootstrap: ToS acceptance, agent registration + API-key caching, and wallet detection when present.
51
+
52
+ If a wallet is configured, that wallet address becomes the contributor/payment truth: it is synced onto your agent profile, used as the destination for contributor payouts when your routes earn, and used as the spending wallet for paid marketplace routes.
22
53
 
23
- If a wallet is configured, that wallet address is synced onto your agent profile and becomes the destination for contributor payouts when your routes earn.
54
+ Recommended for new installs: set up Crossmint `lobster.cash` during bootstrap. `unbrowse setup` now encourages it, and when the tooling is already present it will try `npx @crossmint/lobster-cli setup` automatically. That wallet becomes the payout destination for contributed routes and the spending wallet for paid marketplace routes.
55
+
56
+ Unbrowse supports wallet providers such as Crossmint `lobster.cash` for x402-gated routes. If you use `lobster.cash`, set `LOBSTER_WALLET_ADDRESS`. Other providers can use `AGENT_WALLET_ADDRESS` and optional `AGENT_WALLET_PROVIDER`.
24
57
 
25
58
  For repeat npm use after a healthy publish:
26
59
 
@@ -29,6 +62,15 @@ npm install -g unbrowse
29
62
  unbrowse setup
30
63
  ```
31
64
 
65
+ For generic MCP hosts:
66
+
67
+ ```bash
68
+ git clone --single-branch --depth 1 https://github.com/unbrowse-ai/unbrowse.git ~/unbrowse
69
+ cd ~/unbrowse && ./setup --host mcp
70
+ ```
71
+
72
+ That writes a ready-to-import MCP config to `~/.config/unbrowse/mcp/unbrowse.json`. A generic template is also published at [`/mcp.json`](https://www.unbrowse.ai/mcp.json).
73
+
32
74
  If your agent host uses skills:
33
75
 
34
76
  ```bash
@@ -47,6 +89,14 @@ git pull --ff-only
47
89
  ./setup --host off
48
90
  ```
49
91
 
92
+ If you installed for a generic MCP host:
93
+
94
+ ```bash
95
+ cd ~/unbrowse
96
+ git pull --ff-only
97
+ ./setup --host mcp
98
+ ```
99
+
50
100
  If your agent host uses skills, rerun its skill install/update command too:
51
101
 
52
102
  ```bash
@@ -55,30 +105,33 @@ npx skills add unbrowse-ai/unbrowse
55
105
 
56
106
  Need help or want release updates? Join the Discord: [discord.gg/VWugEeFNsG](https://discord.gg/VWugEeFNsG)
57
107
 
58
- Every CLI command auto-starts the local server on `http://localhost:6969` by default. Override with `UNBROWSE_URL`, `PORT`, or `HOST`. On first startup it auto-registers as an agent with the marketplace and caches credentials in `~/.unbrowse/config.json`. `unbrowse setup` prompts for an email-shaped identity first; headless setups can provide `UNBROWSE_AGENT_EMAIL`.
59
- Canonical docs: [docs.unbrowse.ai](https://docs.unbrowse.ai)
60
-
61
- Every CLI command auto-starts the local server on `http://localhost:6969` by default. Override with `UNBROWSE_URL`, `PORT`, or `HOST`. On first startup it auto-registers as an agent with the marketplace and caches credentials in `~/.unbrowse/config.json`. `unbrowse setup` now prompts for an email-shaped identity first; headless setups can provide `UNBROWSE_AGENT_EMAIL`.
108
+ Every CLI command auto-starts the local runtime on `http://localhost:6969` by default, and `unbrowse mcp` uses that same runtime behind the MCP stdio surface. Override with `UNBROWSE_URL`, `PORT`, or `HOST`. On first startup it auto-registers as an agent with the marketplace and caches credentials in `~/.unbrowse/config.json`. `unbrowse setup` now prompts for an email-shaped identity first; headless setups can provide `UNBROWSE_AGENT_EMAIL`.
109
+ Public companion docs: [docs.unbrowse.ai](https://docs.unbrowse.ai)
62
110
 
63
111
  Works with Claude Code, Open Code, Cursor, Codex, Windsurf, and any agent host that can call a local CLI or skill.
64
112
 
65
113
  ## What setup does
66
114
 
67
- - Checks local prerequisites for the npm/npx flow.
115
+ - Checks the local runtime/package-manager environment for the repo bootstrap or packaged CLI path.
116
+ - Prebuilds the packaged CLI runtime and installs the stable `unbrowse` shim for the repo bootstrap path.
68
117
  - Verifies the bundled Kuri binary, or builds it from the vendored Kuri source when working from repo source with Zig installed.
69
118
  - Registers the Open Code `/unbrowse` command when Open Code is present.
119
+ - Runs the first-use flow: ToS, agent registration/API-key caching, wallet detection, and Crossmint `lobster.cash` encouragement.
70
120
  - Starts the local Unbrowse server unless `--no-start` is passed.
71
121
 
72
122
  ## Common commands
73
123
 
74
124
  ```bash
75
125
  unbrowse health
126
+ unbrowse mcp
76
127
  unbrowse resolve --intent "get trending searches" --url "https://google.com" --pretty
77
128
  unbrowse login --url "https://calendar.google.com"
78
129
  unbrowse skills
79
130
  unbrowse search --intent "get stock prices"
80
131
  ```
81
132
 
133
+ For most MCP hosts, the standard flow is `unbrowse_resolve` first, then `unbrowse_execute`. For JS-heavy or first-time capture workflows, use the browser tool chain: `unbrowse_go -> unbrowse_snap -> action tools -> unbrowse_submit/unbrowse_sync -> unbrowse_close`.
134
+
82
135
  ## Demo notes
83
136
 
84
137
  - First-time capture/indexing on a site can take 20-80 seconds. That is the slow path; repeats should be much faster.
@@ -91,12 +144,18 @@ If you tried Unbrowse on a site or API and could not get it to work, add it to [
91
144
 
92
145
  ## Docs
93
146
 
94
- The synced skill repo also carries the longer-form docs set:
147
+ The synced skill repo also carries the public docs set:
148
+
149
+ - [Quickstart](./docs/guides/quickstart.md)
150
+ - [API reference](./docs/api.md)
151
+ - [Deployment guide](./docs/deployment.md)
152
+ - [Release checklist](./docs/RELEASING.md)
153
+
154
+ Whitepaper companion docs:
95
155
 
96
156
  - [Whitepaper companion index](./docs/whitepaper/README.md)
97
157
  - [For Technical Readers](./docs/whitepaper/for-technical-readers.md)
98
158
  - [For Investors](./docs/whitepaper/for-investors.md)
99
- - [Analytics API](./docs/analytics-api.md)
100
159
 
101
160
  ## How it works
102
161
 
File without changes