@reclaimprotocol/agent 0.1.9 → 0.1.10
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 +9 -111
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @reclaimprotocol/agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Reclaim Protocol lets your app verify **data points** about its users — a follower count, an account balance, an order history. This package gives your AI coding agent the tools to **find, build, test and fix the _data verification providers_** (the recipes that verify a data point) by inspecting and replaying captured requests, checking sessions, evaluate proofs, publishing updates, and much more.
|
|
4
|
+
|
|
5
|
+
Under the hood it's Chrome-CDP + zkTLS provider-authoring tooling: it captures network traffic from a browser, synthesizes provider definitions from it (`contains` matchers + `jsonPath` / `xPath` / `regex` redactions), runs a local replay diagnostic, and produces a verified attestor proof via `@reclaimprotocol/attestor-core`.
|
|
4
6
|
|
|
5
7
|
This package **is** the Reclaim MCP server (bin: `reclaim-mcp-server`). It depends on `@reclaimprotocol/client` for the typed HTTP client and registers the provider-authoring tools below alongside the backend-facing tools (credentials, publishing) in a single MCP surface. A standalone entry (`src/index.ts`) re-exports the client SDK plus `buildAgentTools` for embedding.
|
|
6
8
|
|
|
@@ -18,122 +20,18 @@ npx -y --package=@reclaimprotocol/agent reclaim-mcp-server
|
|
|
18
20
|
|
|
19
21
|
> The `--package=` (short form `-p`) flag selects the `reclaim-mcp-server` binary from the package. We use the long `--package=` form throughout because the short `-p` collides with the `-p`/`--print` flag of some agent CLIs (notably `claude mcp add`), which silently swallows the command. Prefer a global install? Run `npm i -g @reclaimprotocol/agent` and use `reclaim-mcp-server` directly as the `command` (drop the `npx` wrapper and its `args`).
|
|
20
22
|
|
|
21
|
-
###
|
|
22
|
-
|
|
23
|
-
**Recommended — install the plugin from the marketplace** (bundles this MCP server; no `claude mcp add` and no `-p` collision to worry about — the server's `how_it_works` tool serves the authoring guide on demand):
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
/plugin marketplace add reclaimprotocol/builder
|
|
27
|
-
/plugin install reclaim@reclaim
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
This is the preferred path — prefer it over the manual `claude mcp add` below unless you have a specific reason not to (e.g. you're pinning a local build).
|
|
31
|
-
|
|
32
|
-
**Advanced / fallback — add the MCP server directly** (skip if you used the plugin above):
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
# project scope → writes .mcp.json; add `-s user` for a global install
|
|
36
|
-
claude mcp add reclaim -- npx -y --package=@reclaimprotocol/agent reclaim-mcp-server
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
…or add it to `.mcp.json` yourself:
|
|
40
|
-
|
|
41
|
-
```json
|
|
42
|
-
{
|
|
43
|
-
"mcpServers": {
|
|
44
|
-
"reclaim": {
|
|
45
|
-
"command": "npx",
|
|
46
|
-
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Claude Desktop (macOS / Windows app)
|
|
53
|
-
|
|
54
|
-
Claude Desktop is the standalone consumer app — **separate from Claude Code**, and it does **not** support the plugin marketplace (`/plugin …` is Claude Code only). Configure the MCP server manually via its config file:
|
|
55
|
-
|
|
56
|
-
- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
57
|
-
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
58
|
-
|
|
59
|
-
Edit it (via **Settings → Developer → Edit Config**, or open the file directly) and add:
|
|
60
|
-
|
|
61
|
-
```json
|
|
62
|
-
{
|
|
63
|
-
"mcpServers": {
|
|
64
|
-
"reclaim": {
|
|
65
|
-
"command": "npx",
|
|
66
|
-
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Then **fully quit and reopen** Claude Desktop (a window close is not enough) so it re-reads the config and starts the server.
|
|
73
|
-
|
|
74
|
-
> **Node must be on the app's PATH.** Claude Desktop launches the server as a subprocess using the environment it inherits at startup — it does **not** bundle Node. If the server shows as failed, either install Node ≥ 20 and relaunch, or set `"command"` to an **absolute path** to `npx`/`node` (find it with `which npx`), since GUI-launched apps sometimes get a minimal PATH. Chrome capture works the same as anywhere else — see [Chrome / CDP](#platform-notes).
|
|
75
|
-
|
|
76
|
-
### Cursor
|
|
23
|
+
### Installing into your coding agent
|
|
77
24
|
|
|
78
|
-
|
|
25
|
+
Copy-paste setup for **Claude Code** (plugin marketplace), **Claude Desktop**, **Cursor**, **opencode**, **Codex**, **Windsurf**, **VS Code**, **Cline** and other MCP clients lives in the public **[reclaimprotocol/developer-tools](https://github.com/reclaimprotocol/developer-tools)** repo — that's where the Claude Code plugin/marketplace is published.
|
|
79
26
|
|
|
80
|
-
|
|
81
|
-
{
|
|
82
|
-
"mcpServers": {
|
|
83
|
-
"reclaim": {
|
|
84
|
-
"command": "npx",
|
|
85
|
-
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### opencode
|
|
92
|
-
|
|
93
|
-
Add to `opencode.json` (project) or `~/.config/opencode/opencode.json` (global):
|
|
27
|
+
The quickest path, in Claude Code:
|
|
94
28
|
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"$schema": "https://opencode.ai/config.json",
|
|
98
|
-
"mcp": {
|
|
99
|
-
"reclaim": {
|
|
100
|
-
"type": "local",
|
|
101
|
-
"command": ["npx", "-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"],
|
|
102
|
-
"enabled": true
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Codex
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
# writes ~/.codex/config.toml
|
|
112
|
-
codex mcp add reclaim -- npx -y --package=@reclaimprotocol/agent reclaim-mcp-server
|
|
113
29
|
```
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
```toml
|
|
118
|
-
[mcp_servers.reclaim]
|
|
119
|
-
command = "npx"
|
|
120
|
-
args = ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
30
|
+
/plugin marketplace add reclaimprotocol/developer-tools
|
|
31
|
+
/plugin install reclaim@reclaim
|
|
121
32
|
```
|
|
122
33
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
These all use the standard `mcpServers` shape — add a server through the app's MCP settings (or its `mcp`/`mcpServers` config file) with:
|
|
126
|
-
|
|
127
|
-
```json
|
|
128
|
-
{
|
|
129
|
-
"mcpServers": {
|
|
130
|
-
"reclaim": {
|
|
131
|
-
"command": "npx",
|
|
132
|
-
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
```
|
|
34
|
+
For any other client, point it at the stdio command above (`npx -y --package=@reclaimprotocol/agent reclaim-mcp-server`) — see the developer-tools README for per-client config and the Claude Desktop / GUI-app notes.
|
|
137
35
|
|
|
138
36
|
### Optional environment
|
|
139
37
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reclaimprotocol/agent",
|
|
3
3
|
"title": "Reclaim Agent",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"description": "Reclaim Protocol
|
|
4
|
+
"version": "0.1.10",
|
|
5
|
+
"description": "Reclaim Protocol's tools for agents — Reclaim Protocol lets your app verify **data points** about its users — a follower count, an account balance, an order history. This package gives your AI coding agent the tools to **find, build, test and fix the _data verification providers_** (the recipes that verify a data point) by inspecting and replaying captured requests, checking sessions, evaluate proofs, publishing updates, and much more.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./lib/index.js",
|
|
8
8
|
"types": "./lib/index.d.ts",
|