@reclaimprotocol/agent 0.1.0-dev.1 → 0.1.0-dev.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/README.md
CHANGED
|
@@ -11,16 +11,16 @@ This package **is** the Reclaim MCP server (bin: `reclaim-mcp-server`). It depen
|
|
|
11
11
|
It runs as a **stdio MCP server**. Point any MCP-capable agent at this command:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx -y
|
|
14
|
+
npx -y --package=@reclaimprotocol/agent reclaim-mcp-server
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
> The `-p`
|
|
17
|
+
> 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`).
|
|
18
18
|
|
|
19
19
|
### Claude Code
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
# project scope → writes .mcp.json; add `-s user` for a global install
|
|
23
|
-
claude mcp add reclaim -- npx -y
|
|
23
|
+
claude mcp add reclaim -- npx -y --package=@reclaimprotocol/agent reclaim-mcp-server
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
…or add it to `.mcp.json` yourself:
|
|
@@ -30,7 +30,7 @@ claude mcp add reclaim -- npx -y -p @reclaimprotocol/agent reclaim-mcp-server
|
|
|
30
30
|
"mcpServers": {
|
|
31
31
|
"reclaim": {
|
|
32
32
|
"command": "npx",
|
|
33
|
-
"args": ["-y", "
|
|
33
|
+
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -45,7 +45,7 @@ Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):
|
|
|
45
45
|
"mcpServers": {
|
|
46
46
|
"reclaim": {
|
|
47
47
|
"command": "npx",
|
|
48
|
-
"args": ["-y", "
|
|
48
|
+
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -61,13 +61,28 @@ Add to `opencode.json` (project) or `~/.config/opencode/opencode.json` (global):
|
|
|
61
61
|
"mcp": {
|
|
62
62
|
"reclaim": {
|
|
63
63
|
"type": "local",
|
|
64
|
-
"command": ["npx", "-y", "
|
|
64
|
+
"command": ["npx", "-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"],
|
|
65
65
|
"enabled": true
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
### Codex
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# writes ~/.codex/config.toml
|
|
75
|
+
codex mcp add reclaim -- npx -y --package=@reclaimprotocol/agent reclaim-mcp-server
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
…or add it to `~/.codex/config.toml` yourself (Codex uses TOML, not JSON):
|
|
79
|
+
|
|
80
|
+
```toml
|
|
81
|
+
[mcp_servers.reclaim]
|
|
82
|
+
command = "npx"
|
|
83
|
+
args = ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
84
|
+
```
|
|
85
|
+
|
|
71
86
|
### Antigravity, Windsurf, VS Code, Cline & other MCP clients
|
|
72
87
|
|
|
73
88
|
These all use the standard `mcpServers` shape — add a server through the app's MCP settings (or its `mcp`/`mcpServers` config file) with:
|
|
@@ -77,7 +92,7 @@ These all use the standard `mcpServers` shape — add a server through the app's
|
|
|
77
92
|
"mcpServers": {
|
|
78
93
|
"reclaim": {
|
|
79
94
|
"command": "npx",
|
|
80
|
-
"args": ["-y", "
|
|
95
|
+
"args": ["-y", "--package=@reclaimprotocol/agent", "reclaim-mcp-server"]
|
|
81
96
|
}
|
|
82
97
|
}
|
|
83
98
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reclaimprotocol/agent",
|
|
3
3
|
"title": "Reclaim Agent",
|
|
4
|
-
"version": "0.1.0-dev.
|
|
4
|
+
"version": "0.1.0-dev.3",
|
|
5
5
|
"description": "Reclaim Protocol agent — SDK, CLI, and MCP server in one package. SDK + CLI talk to the builder backend; MCP server adds Chrome CDP capture, provider synthesis, replay, and zkTLS proof.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./lib/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"websiteUrl": "https://docs.reclaimprotocol.org",
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "tsc && node scripts/prepend-shebang.
|
|
40
|
+
"build": "tsc && node scripts/prepend-shebang.js && chmod 755 lib/cli.js lib/mcp-bin.js",
|
|
41
41
|
"openapi:typegen": "node ../app/scripts/mcp-tools-gen.ts",
|
|
42
42
|
"prepublishOnly": "npm run build",
|
|
43
43
|
"dev": "tsc --watch",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"start:cli": "node lib/cli.js",
|
|
46
46
|
"start:mcp": "node lib/mcp-bin.js",
|
|
47
47
|
"inspect": "npx @modelcontextprotocol/inspector node lib/mcp-bin.js",
|
|
48
|
-
"download:zk-files": "node scripts/download-zk-files.
|
|
49
|
-
"postinstall": "node scripts/download-zk-files.
|
|
48
|
+
"download:zk-files": "node scripts/download-zk-files.js",
|
|
49
|
+
"postinstall": "node scripts/download-zk-files.js"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"mcp",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@noble/secp256k1": "^3.1.0",
|
|
74
74
|
"@reclaimprotocol/attestor-core": "^5.0.6",
|
|
75
75
|
"@reclaimprotocol/client": "*",
|
|
76
|
+
"@reclaimprotocol/tls": "github:reclaimprotocol/tls",
|
|
76
77
|
"chrome-remote-interface": "^0.33.0",
|
|
77
78
|
"pino": "^9.14.0",
|
|
78
79
|
"zod": "^3.25.76",
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
// @reclaimprotocol/attestor-core needs at proof time. Runs as the agent's
|
|
3
3
|
// `postinstall` and as `npm run download:zk-files`.
|
|
4
4
|
//
|
|
5
|
+
// This is plain JavaScript (not TypeScript) on purpose: it runs as a
|
|
6
|
+
// `postinstall`, where the file lives under the consumer's `node_modules`.
|
|
7
|
+
// Node refuses to type-strip `.ts` files in `node_modules`
|
|
8
|
+
// (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING), so the install hook must be
|
|
9
|
+
// runnable without any transpilation.
|
|
10
|
+
//
|
|
5
11
|
// Resolves the package via Node's algorithm (`createRequire().resolve`)
|
|
6
12
|
// rather than a literal `node_modules/...` path: the package is commonly
|
|
7
13
|
// hoisted to the workspace root, where a literal relative path from
|
|
@@ -14,7 +20,7 @@ import { dirname, join } from 'node:path'
|
|
|
14
20
|
|
|
15
21
|
const require = createRequire(import.meta.url)
|
|
16
22
|
|
|
17
|
-
let mainPath
|
|
23
|
+
let mainPath
|
|
18
24
|
try {
|
|
19
25
|
mainPath = require.resolve('@reclaimprotocol/zk-symmetric-crypto')
|
|
20
26
|
} catch{
|
|
File without changes
|