shinjuku-shielded 0.3.51 → 0.3.53
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 +50 -64
- package/manifest.json +3 -3
- package/package.json +3 -3
- package/shinjuku-wallet.mjs +10568 -4162
package/README.md
CHANGED
|
@@ -1,88 +1,74 @@
|
|
|
1
1
|
# shinjuku-shielded
|
|
2
2
|
|
|
3
|
-
The Shinjuku Shielded wallet: a self-custody
|
|
4
|
-
|
|
5
|
-
local MCP server (stdio)
|
|
6
|
-
USDC balance, under caps that you set at launch.
|
|
3
|
+
The Shinjuku Shielded wallet: a self-custody wallet that pays x402 URLs
|
|
4
|
+
privately from a shielded USDC balance on Solana. Its `mcp` command runs a
|
|
5
|
+
local MCP server (stdio) for your agent. Your keys never leave your machine.
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
`shinjukuSha256` fields in `package.json` name that release. Compare the hash
|
|
10
|
-
with the Releases table in
|
|
11
|
-
[ShinjukuStaition/shinjuku-shielded](https://github.com/ShinjukuStaition/shinjuku-shielded#releases).
|
|
12
|
-
Each version holds one served wallet release, byte for byte: `shinjukuRelease` and `shinjukuSha256` in package.json name it, and its SHA-256 is in the Releases table of ShinjukuStaition/shinjuku-shielded. From 0.1.1 on, versions are published from GitHub Actions with npm provenance.
|
|
13
|
-
|
|
14
|
-
Needs Node.js 22 or later. The package has no install scripts.
|
|
15
|
-
|
|
16
|
-
## Run
|
|
7
|
+
## Set up
|
|
17
8
|
|
|
18
9
|
```sh
|
|
19
|
-
npx -y shinjuku-shielded
|
|
20
|
-
npx -y shinjuku-shielded@<version> help mcp
|
|
10
|
+
npx -y shinjuku-shielded setup
|
|
21
11
|
```
|
|
22
12
|
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
Setup makes the wallet on this machine, a private passphrase file, and the
|
|
14
|
+
checked proof tools (about 191 MB), and writes `config.json`. It also writes
|
|
15
|
+
a recovery file: copy it to two offline places, then delete it from this
|
|
16
|
+
machine. `--add-to claude-code` (or `claude-desktop`, `cursor`) also adds the
|
|
17
|
+
server to that host's config.
|
|
25
18
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## Add the MCP server
|
|
29
|
-
|
|
30
|
-
Set up the wallet first (passphrase, deposit, `rpc.txt`, `proof-tools.json`).
|
|
31
|
-
The full setup guide is
|
|
32
|
-
[ShinjukuStaition/shinjuku-mcp](https://github.com/ShinjukuStaition/shinjuku-mcp).
|
|
33
|
-
`--max-payment` and `--max-session` are optional caps, in atomic USDC units
|
|
34
|
-
(50000 = 0.05 USDC); without them there is no limit. An MCP host starts the server from its own folder: use
|
|
35
|
-
absolute paths.
|
|
19
|
+
## Add it to your agent host
|
|
36
20
|
|
|
37
21
|
Claude Code:
|
|
38
22
|
|
|
39
23
|
```sh
|
|
40
|
-
claude mcp add shinjuku-
|
|
41
|
-
--max-payment 50000 --max-session 200000 --tor \
|
|
42
|
-
--pool 45mhosfA2MuygZWeqYRVcEZX2Q3gA8KR8FwP6AZkK1zR \
|
|
43
|
-
--passphrase-file /home/you/shinjuku/passphrase.txt \
|
|
44
|
-
--rpc-file /home/you/shinjuku/rpc.txt \
|
|
45
|
-
--proof-tools /home/you/shinjuku/proof-tools.json \
|
|
46
|
-
--program 8PYPw3FSFTMbvSneXdcoH6jNoN4VD23nHwPY2A2riUy1 \
|
|
47
|
-
--memo-service https://pay.shinjukustaition.com
|
|
24
|
+
claude mcp add --scope user shinjuku-shielded -- npx -y shinjuku-shielded mcp
|
|
48
25
|
```
|
|
49
26
|
|
|
50
|
-
Claude Desktop (`claude_desktop_config.json`)
|
|
51
|
-
or `~/.cursor/mcp.json`) use the same JSON:
|
|
27
|
+
Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
52
28
|
|
|
53
29
|
```json
|
|
54
|
-
{
|
|
55
|
-
"mcpServers": {
|
|
56
|
-
"shinjuku-pay": {
|
|
57
|
-
"command": "npx",
|
|
58
|
-
"args": [
|
|
59
|
-
"-y", "shinjuku-shielded@<version>", "mcp",
|
|
60
|
-
"--max-payment", "50000", "--max-session", "200000", "--tor",
|
|
61
|
-
"--pool", "45mhosfA2MuygZWeqYRVcEZX2Q3gA8KR8FwP6AZkK1zR",
|
|
62
|
-
"--passphrase-file", "/home/you/shinjuku/passphrase.txt",
|
|
63
|
-
"--rpc-file", "/home/you/shinjuku/rpc.txt",
|
|
64
|
-
"--proof-tools", "/home/you/shinjuku/proof-tools.json",
|
|
65
|
-
"--program", "8PYPw3FSFTMbvSneXdcoH6jNoN4VD23nHwPY2A2riUy1",
|
|
66
|
-
"--memo-service", "https://pay.shinjukustaition.com"
|
|
67
|
-
],
|
|
68
|
-
"env": { "SHIELDED_WALLET_HOME": "/home/you/.shielded-wallet" }
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
30
|
+
{ "mcpServers": { "shinjuku-shielded": { "command": "npx", "args": ["-y", "shinjuku-shielded", "mcp"] } } }
|
|
72
31
|
```
|
|
73
32
|
|
|
74
|
-
On Windows,
|
|
75
|
-
|
|
33
|
+
On native Windows, if the host cannot find `npx`, use `"command": "cmd"` and
|
|
34
|
+
put `"/c", "npx"` at the start of `args`. To pin the version, write
|
|
35
|
+
`shinjuku-shielded@0.3.53`.
|
|
36
|
+
|
|
37
|
+
## Add funds
|
|
38
|
+
|
|
39
|
+
Ask your agent "Add 0.50 USDC to my shielded balance". It calls
|
|
40
|
+
`wallet_add_funds` and gives a one-time address. Send USDC on Solana to it
|
|
41
|
+
from any wallet or exchange. Cents work (from 0.01 USDC), and you need no
|
|
42
|
+
SOL. The USDC becomes private by itself while the MCP server runs.
|
|
76
43
|
|
|
77
|
-
|
|
78
|
-
users: the MCP server holds your wallet keys.
|
|
44
|
+
## Pay
|
|
79
45
|
|
|
80
|
-
|
|
46
|
+
Spending limits are optional and off by default: only the balance bounds a
|
|
47
|
+
payment. To set them, give setup `--max-payment`, `--max-session`, or
|
|
48
|
+
`--max-total` (atomic USDC: `50000` = 0.05 USDC).
|
|
81
49
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
50
|
+
`x402_discover` finds sellers in public x402 listings, `x402_preview` shows
|
|
51
|
+
the price, and `x402_pay` pays.
|
|
52
|
+
|
|
53
|
+
## Needs
|
|
54
|
+
|
|
55
|
+
- Node.js 22 or later.
|
|
56
|
+
- Linux, or Windows with WSL. macOS is not supported: the provers are Linux
|
|
57
|
+
programs.
|
|
58
|
+
|
|
59
|
+
The package has no install scripts. `node_modules/.bin` and the global npm
|
|
60
|
+
folder must not be writable by other users: the MCP server holds your wallet
|
|
61
|
+
keys.
|
|
62
|
+
|
|
63
|
+
This package holds one wallet release, unchanged. The `shinjukuRelease` and
|
|
64
|
+
`shinjukuSha256` fields in `package.json` name that release. Compare the hash
|
|
65
|
+
with the Releases table in
|
|
66
|
+
[ShinjukuStaition/shinjuku-shielded](https://github.com/ShinjukuStaition/shinjuku-shielded#releases).
|
|
67
|
+
From 0.1.1 on, versions are published from GitHub Actions with npm
|
|
68
|
+
provenance.
|
|
69
|
+
|
|
70
|
+
The full guide is
|
|
71
|
+
[ShinjukuStaition/shinjuku-mcp](https://github.com/ShinjukuStaition/shinjuku-mcp).
|
|
86
72
|
|
|
87
73
|
## License
|
|
88
74
|
|
package/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "carbon-shielded-wallet/bundle-manifest/v1",
|
|
3
3
|
"file": "shinjuku-wallet.mjs",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"bytes":
|
|
6
|
-
"sourceCommit": "
|
|
4
|
+
"sha256": "667ac38b9b42b60853ea07024e81b1074105b3dbfba4346d61d86ef3aabef1b3",
|
|
5
|
+
"bytes": 11939765,
|
|
6
|
+
"sourceCommit": "af521c1215bc2a8eed393eea425f908067808e8c",
|
|
7
7
|
"sourceDirty": false,
|
|
8
8
|
"installRecordMatchesLockfile": true,
|
|
9
9
|
"releaseRule": "valid only when two fresh npm ci --ignore-scripts builds on different OSes give the same sha256; installRecordMatchesLockfile true means every entry npm installed equals its package-lock.json entry and every entry not marked optional, devOptional included, is installed: an optional entry (a package for another platform) may be absent",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinjuku-shielded",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
4
4
|
"mcpName": "io.github.ShinjukuStaition/shinjuku-mcp",
|
|
5
5
|
"description": "Shinjuku Shielded, the private x402 facilitator on Solana: the self-custody wallet CLI and its MCP server. Shield, pay, and unshield USDC from any MCP agent, under caps you set.",
|
|
6
|
-
"shinjukuRelease": "
|
|
7
|
-
"shinjukuSha256": "
|
|
6
|
+
"shinjukuRelease": "667ac38b",
|
|
7
|
+
"shinjukuSha256": "667ac38b9b42b60853ea07024e81b1074105b3dbfba4346d61d86ef3aabef1b3",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"author": "Shinjuku Shielded",
|
|
10
10
|
"homepage": "https://github.com/ShinjukuStaition/shinjuku-mcp#readme",
|