shinjuku-shielded 0.3.130 → 0.3.152
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 +22 -10
- package/manifest.json +5 -4
- package/package.json +3 -3
- package/shinjuku-wallet.mjs +9284 -5234
package/README.md
CHANGED
|
@@ -6,25 +6,25 @@ answers privately, in a terminal chat or for your agent app. Its `mcp`
|
|
|
6
6
|
command runs a local MCP server (stdio) for your agent. Your keys never
|
|
7
7
|
leave your machine.
|
|
8
8
|
|
|
9
|
-
This is version 0.3.
|
|
9
|
+
This is version 0.3.152. The npm packages `shinjuku-shield` and
|
|
10
10
|
`shinjuku-shielded` hold the same files. The command is `shinjuku`.
|
|
11
11
|
|
|
12
12
|
## Set up
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
npm install -g shinjuku@0.3.
|
|
15
|
+
npm install -g shinjuku@0.3.152
|
|
16
16
|
shinjuku setup
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Type the two lines as they are. `npx install shinjuku` does not work: npx
|
|
20
20
|
reads `install` as the name of another npm package. To set up without
|
|
21
|
-
installing, type `npx shinjuku@0.3.
|
|
21
|
+
installing, type `npx shinjuku@0.3.152 setup`.
|
|
22
22
|
|
|
23
23
|
Setup makes the wallet on this machine, a private passphrase file, and the
|
|
24
24
|
checked proof tools (about 191 MB), and writes `config.json`. It also writes
|
|
25
25
|
a recovery file: copy it to two offline places, then delete it from this
|
|
26
|
-
machine. `--add-to claude-code` (or `claude-desktop`, `cursor`) also
|
|
27
|
-
|
|
26
|
+
machine. `--add-to claude-code` (or `claude-desktop`, `cursor`, `codex`) also
|
|
27
|
+
adds the wallet to that app.
|
|
28
28
|
|
|
29
29
|
## The `shinjuku` command
|
|
30
30
|
|
|
@@ -36,19 +36,30 @@ Every wallet command works after `shinjuku`, for example `shinjuku balance`,
|
|
|
36
36
|
Claude Code:
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.
|
|
39
|
+
claude mcp add --scope user shinjuku -- npx -y --no-audit --no-fund shinjuku-shield@0.3.152 mcp
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json`):
|
|
43
43
|
|
|
44
44
|
```json
|
|
45
|
-
{ "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.
|
|
45
|
+
{ "mcpServers": { "shinjuku": { "command": "npx", "args": ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.152", "mcp"] } } }
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
On native Windows, if the host cannot find `npx`, use `"command": "cmd"` and
|
|
49
49
|
put `"/c", "npx"` at the start of `args`. The server's name in host
|
|
50
50
|
configs is `shinjuku`.
|
|
51
51
|
|
|
52
|
+
Codex (the Codex app and Codex CLI read the same file, `~/.codex/config.toml`):
|
|
53
|
+
`shinjuku setup --add-to codex` adds these lines; or add them yourself:
|
|
54
|
+
|
|
55
|
+
```toml
|
|
56
|
+
[mcp_servers.shinjuku]
|
|
57
|
+
command = "npx"
|
|
58
|
+
args = ["-y", "--no-audit", "--no-fund", "shinjuku-shield@0.3.152", "mcp"]
|
|
59
|
+
startup_timeout_sec = 120
|
|
60
|
+
tool_timeout_sec = 300
|
|
61
|
+
```
|
|
62
|
+
|
|
52
63
|
## Add funds
|
|
53
64
|
|
|
54
65
|
Ask your agent "Add 0.50 USDC to my shielded balance". It calls
|
|
@@ -78,9 +89,10 @@ which wallet paid. The wallet keeps no copy of a conversation.
|
|
|
78
89
|
an api key. It keeps running in the background after the terminal closes;
|
|
79
90
|
`shinjuku infer status` shows it, and `shinjuku infer stop` stops it. Your
|
|
80
91
|
agent can also start it with the MCP tool `inference_server`. It serves
|
|
81
|
-
the OpenAI Chat Completions API (`/v1/chat/completions`, streaming
|
|
82
|
-
|
|
83
|
-
|
|
92
|
+
the OpenAI Chat Completions API (`/v1/chat/completions`, streaming and
|
|
93
|
+
function tools too), the OpenAI Responses API (`/v1/responses`, which
|
|
94
|
+
Codex uses) and `/v1/models`. `shinjuku infer status --verbose` prints
|
|
95
|
+
the lines that run a whole Codex session on it.
|
|
84
96
|
- `inference_chat` (MCP): one answer for your agent.
|
|
85
97
|
|
|
86
98
|
## Needs
|
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": "8ab2085ba462b3c2dda5d50de087d053593a7e96d2210bf9dfaa6d763dbe20d2",
|
|
5
|
+
"bytes": 9047711,
|
|
6
|
+
"sourceCommit": "683f9ff9c2d9058994e1628f7dee9116d2eeab39",
|
|
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",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"src/server/payments/shielded/p03LoopLag.ts",
|
|
39
39
|
"src/server/payments/shielded/p03MinContextSlotRetry.ts",
|
|
40
40
|
"src/server/payments/shielded/p03PhotonHost.ts",
|
|
41
|
+
"src/server/payments/shielded/p03QuoteRingAnchor.ts",
|
|
41
42
|
"src/server/payments/shielded/poseidon/poseidon_params_t_2.json",
|
|
42
43
|
"src/server/payments/shielded/poseidon/poseidon_params_t_3.json",
|
|
43
44
|
"src/server/payments/shielded/poseidon/poseidon_params_t_6.json",
|
|
@@ -1037,5 +1038,5 @@
|
|
|
1037
1038
|
"version": "1.8.0"
|
|
1038
1039
|
}
|
|
1039
1040
|
],
|
|
1040
|
-
"publishedAt": "2026-
|
|
1041
|
+
"publishedAt": "2026-11-02T23:08:13.949Z"
|
|
1041
1042
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinjuku-shielded",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.152",
|
|
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": "8ab2085b",
|
|
7
|
+
"shinjukuSha256": "8ab2085ba462b3c2dda5d50de087d053593a7e96d2210bf9dfaa6d763dbe20d2",
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"author": "Shinjuku Shielded",
|
|
10
10
|
"homepage": "https://github.com/ShinjukuStaition/shinjuku-shield#readme",
|