ClaudeCodeMod

All shelves / MCP servers

Shinjuku Shield

io.github.ShinjukuStaition/shinjuku-mcp · 11 stars · JavaScript · Apache-2.0

MCP server Private x402 payments on Solana: shield, pay, and unshield USDC under caps you set.

Install

The repo has no one-line install. Follow its README.

Published as

  • npmshinjuku-shieldstdio

From the server's entry in the official MCP Registry.

Open the repo

Configuration

NameSet asWhat it is
SHIELDED_WALLET_HOMEOptionalEnv varThe private folder that holds the encrypted wallet and config.json. Default: ~/.carbon-shielded-wallet (the folder that setup uses).
SHIELDED_WALLET_PASSPHRASEOptional · SecretEnv varThe wallet passphrase, if you do not use --passphrase-file.

Files

README.md

Shinjuku Shield. The privacy suite for AI. Shield once. Pay anywhere.

Solana mainnet x402 facilitator MCP Self-custody Tor

Shinjuku Shield

The privacy suite for AI. Shield once. Pay anywhere.

Install it once. Take your privacy everywhere you and your AI go.

  • Private payments. Your AI pays for services online from your shielded balance: a private balance that stays in your own wallet. The chain does not show who paid.
  • Private AI. Each AI answer is paid privately, and the AI service does not see who asked. More is coming.
  • Your keys stay with you. The wallet makes your keys on your computer. We never hold them, and only they can spend your balance.
  • No SOL needed. Add USDC from any wallet or exchange. We pay the network fees.

It works today in Claude Code and in a terminal. To start, follow the two lines in Get started.

For builders

Shinjuku Shield is a privacy-only x402 payment facilitator on Solana. An agent pays an x402 endpoint from a balance that it holds itself. The chain does not show who paid.

  • Privacy-only. We do not offer a cheaper path that is not private.
  • You keep your keys. The wallet makes your keys on your machine. We never hold them, and only they can spend your balance.
  • We relay and pay the fees. Our relayer sends your relayed deposits and exits and pays their network fees. Our facilitator pays the network fee of each payment that it settles.
  • One balance. Your Shinjuku Shielded balance is a set of redeemable notes that you hold. The wallet shows it as one number.
  • Outside sellers work. Any Solana x402 exact seller that takes USDC gets paid, whichever facilitator it uses (Coinbase CDP, PayAI, or any other). The seller changes nothing. Your wallet pays us privately, and we pay the seller from our own float. The chain shows Shinjuku paying the seller, never your wallet.

Notice, 2026-11-01: Shinjuku updated its on-chain program at 11:50 UTC. If you use version 0.3.131, update to the stable version 0.3.218: run npm install -g shinjuku, then shinjuku setup, in the terminal (Windows: npm.cmd install -g shinjuku, then shinjuku.cmd setup). Your balance is safe. The next release follows such an update by itself.

What your agent gets

The private x402 facilitator, inside your agent.

Shinjuku Shield settles x402 payments from a shielded USDC balance on Solana: on chain, a shielded payment does not show who paid. This MCP server is how your agent uses it. It runs on your machine, under caps that only you set.

  • Self-custody. The server runs on your machine. Your keys never leave it. We never run it, and only your keys can spend your balance.
  • Shielded payments. Your agent pays from a shielded balance. With Tor (setup asks; on by default), no server sees your IP address.
  • Two lines to set up. Linux: npm install -g shinjuku, then shinjuku setup. Windows: npm.cmd install -g shinjuku, then shinjuku.cmd setup. Setup makes the wallet, a private passphrase file, and the checked proof tools, and prints the line that adds the wallet to your agent host.
  • Add funds from 0.01 USDC. Ask your agent to add funds. wallet_add_funds gives a one-time address. Send USDC to it from any wallet or exchange, and it becomes private by itself.
  • Caps that only you set. Spending limits are optional; by default there is none (only the balance bounds a payment). Setup records the ones you set. A tool call can only lower them, never raise them.
  • Find sellers. x402_discover searches public x402 listings (Coinbase x402 Bazaar, PayAI, Dexter, and others) on your machine.
  • Pay any Solana exact seller. A seller on Coinbase CDP, PayAI, or any other facilitator is paid through Shinjuku: your wallet pays us privately, and we pay the seller from our own float. Nothing to fill or set aside.
  • Look before you pay. x402_preview shows the price and whether your caps allow it. It pays nothing.
  • No SOL. wallet_add_funds and wallet_shield need only USDC. Our facilitator's relayer pays the network fee.
  • Never twice. A retry with the same request_id resumes the same payment, deposit, or unshield. It never starts a second one.
  • No RPC, no sign-up, no API key. Reads go through our relay by default. Your own RPC always wins if you give one.

This repository holds the setup guide, the examples, the docs, the changelog, and the published SHA-256 hashes of every wallet file and its proof tools (Releases). It holds no server code, no circuit code, and no wallet source code.

Docs

  • How it works: x402, our three schemes, the flow of one payment, and what runs where.
  • Privacy model: what the chain, the seller, our facilitator, the RPC, and the MCP host see, with each limit.
  • Sell with Shinjuku Shielded: get paid by Shinjuku Shielded buyers with stock x402 middleware, and get listed.
  • Proof: live mainnet transactions, and what each one shows and hides.
  • FAQ: custody, cost, networks, Tor, recovery, and audits.
  • Changelog: what changed in each release. The first changelog of the wallet file, up to 08a4b56f (npm 0.3.8): changelog-to-0.3.8.md.

Release 0.3.218

Stable version, pinned 2026-11-11. A self-custody wallet for AI agents. It pays any x402 endpoint from a shielded balance, so the chain does not show which wallet paid. Two commands set it up. Your agent does the rest from plain requests.

Pinned version shinjuku-shield@0.3.218
Wallet release 947a6309 (its hash)
Network Solana, USDC

0.3.218 is the 0.3.217 code plus these fixes; its live runs are in progress.

What changed since 0.3.217
  • Price checks. Apps such as Hermes now ask you before your agent checks what a URL costs, because the check sends a request your agent wrote. The price check never reaches your own computer or your home network, unless you turn on local sellers ("privateSellerHosts": true in the wallet's config.json).
  • Update messages. When a new version is out, the message names the exact version to use. In the Hermes app it says to update the Shinjuku plugin: hermes plugins update shinjuku, then start a new chat.
  • Backup in Hermes. In an app that shows a question with no fields to fill in, the wallet asks in plain words where to save your backup (a USB stick, the Desktop or the Documents folder), and the answer names the backup files first.
  • Payment links. The add-money and pay-me answers show the payment link as plain text, so an app that blocks such links still shows it.

The changelog lists every change.

Get started

You need Node.js 22.21 or newer, or Node.js 24 (node --version shows which one your node command runs). Tor is optional: setup asks whether to use it. On Windows the wallet runs its own Tor in the background: you start nothing.

  1. Set up the wallet. In a terminal, type these two lines as they are.

    Linux:

    npm install -g shinjuku
    shinjuku setup

    Windows (Command Prompt or PowerShell):

    npm.cmd install -g shinjuku
    shinjuku.cmd setup

    The first line installs the shinjuku command for every folder and every new terminal window (-g means global). Or, without installing anything: npx -y shinjuku setup (Windows: npx.cmd -y shinjuku setup). Both lines download the wallet from npm directly (Tor is not set up yet), so npm sees your IP address for that download. On Windows, type npm.cmd, npx.cmd and shinjuku.cmd where a line below says npm, npx or shinjuku (they run in Command Prompt and in PowerShell). App start lines, app configs and claude mcp add ... npx ... lines stay as they are. Setup adds npm's folder to your PATH by itself. If Windows still says shinjuku.cmd "is not recognized" (on a computer with more than one account), type npx.cmd -y --prefer-offline shinjuku@0.3.218 in place of shinjuku.cmd in the lines below.

    Setup asks whether to use Tor and for your own wallet address (optional; Enter keeps the default or skips). It makes the wallet on your machine and a private passphrase file, and downloads every proof file it needs (about 205 MB on Linux, 225 MB on Windows, checked by hash).

  2. Add it to your agent app. For Claude Code, run shinjuku setup --add-to claude-code once. For Claude Desktop, Cursor and other apps, setup prints the config at the end: paste it once (in Claude Desktop, Settings > Developer > Edit Config opens its settings file). Then restart the app once. On Windows, Claude Desktop keeps running when you close its window: right-click its icon by the clock (it may be under the ^ arrow there) and choose Exit, then open it again. On a Mac, press Command+Q. Your agent app then starts the wallet by itself.

    Setup also adds the wallet for you to other apps: --add-to codex for the ChatGPT desktop app (its Codex side) and Codex CLI, --add-to claude-desktop for Claude Desktop, also the Microsoft Store version, --add-to grok for Grok Build, --add-to hermes for Hermes Agent, --add-to opencode for OpenCode, --add-to copilot for the GitHub Copilot CLI, --add-to openclaw for OpenClaw, and --add-to goose for Goose. Setup then says how to restart and check that app. In the ChatGPT desktop app, use its Codex side: ChatGPT's own chat cannot start a program on your computer.

  3. Add money. Ask your agent "Give me an address to add 1 USDC to my wallet." It gives you a one-time address. Nothing moves until you send USDC on Solana to it from your own wallet or an exchange. You need no SOL. A few minutes after it arrives, the wallet moves it into your own private balance; it pays no one and sends nothing out.

  4. Use it. Ask your agent to pay a URL, find a paid API, send money out, or ask an AI model. Every feature below works from a plain request.

In a terminal, shinjuku help lists every command (Windows: shinjuku.cmd help).

Release 0.3.217

The previous stable version, pinned 2026-11-11 and replaced by 0.3.218 on 2026-11-11.

Pinned version shinjuku-shield@0.3.217
Wallet release 80851766 (its hash)
Network Solana, USDC

0.3.217 passed live runs with real USDC on production on 2026-11-11 in the Hermes desktop app (install, price check, a paid call, a pay-me link, receipts) and in a terminal (the speed check with and without Tor).

Release 0.3.210

An older stable version, pinned 2026-11-11 and replaced by 0.3.217 on 2026-11-11.

Pinned version shinjuku-shield@0.3.210
Wallet release 2b7c138c (its hash)
Network Solana, USDC

0.3.210 passed live runs with real USDC on production on 2026-11-11, in a terminal and through the wallet's MCP tools: setup, add money, balance, pay a new seller with and without Tor, send to your own wallet, cancel, receipts, private AI answers, and a price check in the Hermes app.

Release 0.3.131

An older stable version, pinned 2026-10-30 and replaced by 0.3.210 on 2026-11-11.

Pinned version shinjuku-shield@0.3.131
Wallet release 3c8b302d (its hash)
Network Solana, USDC
Features

Each feature here passed a live run on the published 0.3.131 package, on production, with real USDC: the check of the stable version, from 2026-10-30 23:51 UTC to 2026-10-31 00:33 UTC, in Claude Code and in a terminal. No other agent app was run on 0.3.131. One feature has no run of its own on 0.3.131: one question with shinjuku infer. On Windows, type shinjuku.cmd where a line below says shinjuku (app start lines and app configs stay as they are).

Add money

  • Add funds (wallet_add_funds, shinjuku add-funds). A new one-time address for each deposit, from 0.01 USDC. Send from any wallet or exchange; no SOL needed. The wallet makes it private by itself after it lands, even if your agent app closed. Ask: "Give me an address to add 1 USDC to my wallet." Terminal: shinjuku add-funds --route exchange --amount 1
  • Make public USDC private (wallet_shield). USDC that sits on the wallet's own public address moves into the shielded balance. The facilitator pays the network fee. Ask: "Make the USDC on my address private."

Pay

  • Pay any x402 endpoint (x402_pay, shinjuku pay, shinjuku curl). Pays an x402 URL from the shielded balance and returns the answer. The seller gets paid as usual; the chain does not show which wallet paid. The price and the fee show in the answer. Ask: "Pay for this endpoint and show me what it returns: "
  • Price preview (x402_preview). Shows what a URL costs before you pay. Nothing is paid or signed. Ask: "How much does this URL cost?"
  • Find paid APIs (x402_discover). Searches public x402 endpoints for a job. Your search words stay on your machine; nothing is paid. Ask: "Find a paid API for Brazil inflation data."
  • Automatic refunds (x402_pay). If the seller fails before it takes the money, the full amount comes back to the private balance by itself. If the seller took the money and gave nothing, the receipt says so with the seller's transaction. Nothing to ask: the receipts show each refund and its transaction.
  • Slow sellers, never paid twice (x402_pay). When a seller is slow, the wallet answers early and keeps waiting. Asking again with the same request continues the same payment. It never pays twice. Ask again with the same request when the agent tells you the seller is still working.
  • Images and files (x402_pay). A paid answer that is an image or a file is saved in the wallet folder, with its path and hash. Ask: "Buy a QR code for this text from ."
  • Cancel (wallet_cancel, shinjuku cancel). Closes a payment that can no longer settle, so its reserved money comes back. A finished payment cannot be taken back, and the wallet says so. Ask: "Cancel that payment."

Send money out

  • Send to an address (wallet_unshield, shinjuku unshield). Sends some or all of the private balance to any Solana wallet as plain USDC. The facilitator pays the network fee. Ask: "Send my whole private balance to my main wallet." Terminal: shinjuku unshield --amount all --to <address>
  • Send all of it (wallet_unshield, shinjuku unshield --amount all). A balance from several deposits is readied by itself when you send all of it. You do nothing extra. Ask: "Send all of it."
  • Spend a received payment (wallet_unshield). A wallet that only received private payments can send them out directly, with no extra step. Ask: "Send what I received to ."

Your wallet

  • Balance (wallet_balance, shinjuku balance). One number: what you can spend. It also shows any public USDC on the wallet's own address and any money still on its way. Ask: "What is my private balance?"
  • Receipts (wallet_receipts). Every payment, refund, deposit and send, newest first, with the seller, the price, the fee and the transactions. Ask: "Show my receipts from today. Did I get my money back on failed payments?"
  • Spending limits (--max-payment, --max-session, shinjuku limits). Optional limits per payment and per 24 hours. A payment over a limit is refused before anything is paid, and the answer says how to change the limit. Set them in setup or in your host's MCP entry, for example --max-payment 0.05.
  • Version pin and update notice (npx ... shinjuku-shield@0.3.218 mcp). Your host runs the exact version it names. When a new release is ready, the wallet tells you to restart. Nothing to ask.

Private AI

  • Ask an AI model (inference_chat). Your agent asks an AI model and pays for the answer from the shielded balance. The chain does not show which wallet paid. Ask: "Ask a private AI model: what is the capital of France?"
  • Terminal chat (shinjuku chat). A private AI chat in your terminal. The conversation stays in memory only and is gone when you exit. Terminal: shinjuku chat, then /cost and /exit
  • One question (shinjuku infer). One question, one paid answer, no setup flags. Terminal: shinjuku infer "Say hello" or echo "Say hello" | shinjuku infer -
  • Private AI address for your apps (shinjuku infer start, inference_server). A local OpenAI-compatible address (http://127.0.0.1:11402/v1) with an API key. Any app that speaks the OpenAI chat API, streaming included, gets private paid answers. It runs in the background after the terminal closes, but not after the computer restarts: then run shinjuku infer start again (the API key stays the same). Ask: "Start my local private AI address." Terminal: shinjuku infer start, shinjuku infer status, shinjuku infer stop

Privacy and setup

  • Tor (setup --tor, --tor, --no-tor). With Tor, every request goes through Tor and reaches the facilitator through its onion service, so no server sees your IP address. After a Tor setup, every command uses Tor by itself. On Windows the wallet runs its own Tor in the background: you start nothing. On another system (Linux too), run your own Tor with HTTPTunnelPort 127.0.0.1:9080 in its torrc, then setup --tor.
  • Self-custody (shinjuku setup, backup-export). The keys are made and kept on your machine. Only your keys move your balance. The facilitator settles and pays network fees; only your keys can spend your balance. Back up after setup: shinjuku help backup-export
  • The terminal command (setup offers to install it). Every wallet action from a terminal: setup, add-funds, balance, pay, unshield, chat, infer and more. Terminal: shinjuku help
Speed

The time from "pay" to the seller's data, for the first payment to a seller the wallet never paid before (a fresh wallet process, production, 2026-10-23, version 0.3.86):

Route First seller Second seller
Direct 4.85 s (payai.agentstools.dev) 11.31 s
Over Tor 9.94 s (werner.ddns.net) 18.14 s
Fixed since 0.3.86

These seven issues of the older stable version 0.3.86 are fixed in 0.3.131. Each fix passed a live run when it came out (0.3.87 to 0.3.91).

  1. When a seller fails before it takes the money, the answer starts with "Paid". The money is not taken and comes back by itself.
  2. The terminal send prints one internal line that starts with SELLER_STORE.
  3. shinjuku chat can print raw Tor lines while Tor is slow.
  4. When the spending limit comes from the host's MCP entry, the refusal names setup as the place to change it.
  5. Before a send that needs the balance readied first, the agent may not tell you it takes about 2 minutes.
  6. In a terminal, balance, infer and unshield print internal Tor, RPC and history lines.
  7. A plain shinjuku balance right after a deposit can show no number. shinjuku balance --refresh shows it.

Payments to outside sellers show the price and the seller on chain as any x402 payment does; what the chain does not show is which wallet paid. Every release and its changes: CHANGELOG.md.

Talk to it in plain words

Ask your agent the way you would ask a person:

You say Your agent calls
"what is my balance" wallet_balance
"add 0.50 USDC to my shielded balance" wallet_add_funds
"shield 5 USDC" wallet_shield
"find a seller of satellite images" x402_discover
"pay this URL" x402_preview, then x402_pay
"ask an AI model privately" inference_chat
"send 2 USDC privately to " wallet_unshield

Each answer tells the agent the exact next call. The wallet reads the chain and writes an encrypted backup by itself, so you never run a command for upkeep.

Tools

SETUP

On a machine with no wallet, the server starts in setup mode.

Tool What it does
shinjuku_setup Asks you to confirm in your MCP client that it may create a Shinjuku Shielded wallet on this machine, and shows the caps. Then it runs the setup and switches the same server to the wallet tools. It never asks for a secret. A client that cannot ask is told to run the setup in a terminal.
wallet_status Says whether the wallet is set up, and what to do next.

In setup mode, every money tool answers wallet_not_set_up and does nothing.

FUND
Tool What it does
wallet_add_funds Gives a new one-time Solana address of this wallet and a solana: pay link. Send USDC to it from any wallet or exchange, from 0.01 USDC. You need no SOL. A few minutes after the USDC arrives, it becomes private by itself while the MCP server runs. One round takes up to 5 USDC; a larger amount goes in by rounds. Use each address for one payer. The call itself moves no money.
wallet_shield Moves USDC that is already on the wallet's own Solana key into your shielded balance: any amount from 0.01 USDC, while the shielded balance stays at most 5 USDC. It is a public step: the chain shows the wallet's own key. It is on with --proof-tools. --no-shield turns it off. Funding takes minutes: the first call starts it and returns a stage. Call again with the same request_id to see the stage. It never starts a second deposit. When the deposit lands, the wallet reads it from the chain and writes an encrypted backup. The wallet's own key needs the USDC and no SOL: our facilitator's relayer pays the network fee, and you pay the shield cost.
PAY
Tool What it does
x402_discover Searches public x402 listings (Coinbase x402 Bazaar, PayAI, Dexter, and others) on your machine and returns the sellers that match. Pays nothing. The first call takes about 15 s.
x402_preview One unpaid request. Returns the seller's price, the scheme, and whether your caps allow it. Pays nothing. For a standard exact seller it adds feeAtomic (our fee) and totalAtomic (price plus fee, what leaves your balance). A seller that lists several networks is priced from its Solana offer.
x402_pay Pays the URL (if it asks for payment) and returns the answer. A URL that does not answer 402 is fetched once and nothing is paid. An image answer (image bytes, or JSON image_base64) comes back as an MCP image block, and the file is saved. A payment that landed, from a seller that gives no answer, closes as paid. If a standard exact seller does not take our payment, the answer is p03_float_refund_pending: price and fee come back to your balance by themselves within about 7 minutes. Alias: fetch_paid.
inference_chat One AI answer from usePod's x402 chat endpoint, paid privately from your shielded balance. A short qwen3-8-flash answer costs about 0.0011 USDC: the provider price plus the 0.001 USDC Shinjuku fee. It needs --tor or a proxy.
UNSHIELD
Tool What it does
wallet_unshield Sends shielded USDC to a public Solana address. It is on with --exit-proof-tools and --profile. Our facilitator pays every network fee. The same request_id never unshields twice. An address that you named with --unshield-to is sent at once. Any other address is sent only after you confirm it in your MCP client: "Send X USDC from your shielded balance to ?". A decline, or no answer in 5 minutes, sends nothing. A client that cannot ask is refused, so a prompt injection cannot pick an address by itself. The wallet's own key is refused: it made the deposits, so an exit there would link them.
WALLET
Tool What it does
wallet_balance ONE balance (balanceAtomic, what x402_pay can spend) and UNSHIELDED (unshieldedAtomic, plain USDC on the wallet's own Solana key), with ownAddress and status ("current" when the balance is read). breakdown names what the one balance holds: shieldedAtomic (what wallet_unshield can send), refundsInFlightAtomic (a Shinjuku refund on its way back), and setAsideAtomic (value in pockets of an older version). A stale balance is read from the chain first. UNSHIELDED is one network read; if it fails, that line is empty and says why.
wallet_receipts Your most recent paid receipts: {ok, count, total, facilitatorNote, receipts}. Each receipt has kind (x402, inference, or a move), the host (never the full URL), amountAtomic, and transaction.
wallet_cancel Closes one unfinished payment (its reserved balance comes back), the pieces of a private send that did not start, or an add-funds link that no USDC reached.

wallet_shield and wallet_unshield always appear in the tool list. When one is off, it answers "error": "mcp_tool_disabled" and tells the agent what to ask you.

What it pays:

  • shielded-exact, from your shielded balance, whenever the seller offers it.
  • Standard Solana exact, through Shinjuku (float pay). For a seller on any facilitator (Coinbase CDP, PayAI, or any other), x402_pay pays us privately from your shielded balance: the seller's price plus a flat fee (feeAtomic, 0.001 USDC on 2026-10-22). We pay the seller at once from our own shared float. The chain shows Shinjuku paying the seller, never your wallet. max_payment_atomic must cover price plus fee. The largest price that one request can pay is largestAtomic in GET https://pay.shinjukustaition.com/api/x402/float/config (10 USDC on 2026-10-22).
  • A retry with the same request_id never pays twice.

Hidden amounts (scheme confidential, the V0b vault) are retired: the V0b program was closed on chain on 2026-10-11.

Value that an older version put in pockets still counts in the one balance. When the server has --proof-tools, --exit-proof-tools, and --profile, it returns that value to the shielded balance by itself while it is idle. shinjuku pocket reshield does the same by hand.

A balance from several deposits: one payment can spend only a few of them at once. The server gathers them into one by itself (a private payment to itself; nothing leaves the shielded balance, and our facilitator pays the network fee). When no single deposit covers a price yet, x402_pay says so, the gathering starts within about a minute, and the answer says when to pay again.

Privacy modes

Default --tor
On chain A shielded payment does not show who paid. The same.
Your IP Payments go to pay.shinjukustaition.com, with no CDN in the path. Our server sees your IP. It keeps no access logs. Hidden from everyone, us included.
The seller Sees your IP. Does not see your IP.
Speed Faster. About 1-2 s slower per request.
Needs Nothing extra. Nothing extra on Windows: the wallet runs its own Tor. On another system (Linux too), your own Tor with HTTPTunnelPort 127.0.0.1:9080 IsolateDestAddr in its torrc.
When a path is slow - The wallet races our onion addresses and keeps the first that answers. A facilitator onion that gives no answer in 15 s brings in two spare onions. A history request with no answer moves to the next history onion, and a history source that is silent for 60 s ends with a plain error instead of a long wait. A stalled Tor circuit is replaced. A facilitator request never falls back to our clearnet address.

Setup

You need Node.js 22.21 or later (or Node.js 24 or later), on Windows or Linux. macOS is not supported yet.

The stable version is 0.3.218 (wallet release 947a6309, pinned 2026-11-11). Every command here names it. Setup prints host lines that name this exact version. It uses npm tag latest. Status and the changelog list its changes.

A later stable version gets its own row in the Releases table: run its setup once and put its version in your host's config. Your wallet, its address, and its balance stay the same.

1. Run the setup in a terminal

Linux:

npx -y shinjuku setup

Windows (Command Prompt or PowerShell):

npx.cmd -y shinjuku setup

It asks whether to use Tor and for your own wallet address (optional: your agent can then send money back to you without asking for it). When the shinjuku command is not installed yet, it offers to install it. Enter keeps the default or skips. At the end it offers to add funds (Enter skips). --yes asks nothing. --add-to claude-code (or claude-desktop, cursor) also adds the server to that host's config; if Claude Code already has a wallet entry for another wallet folder, setup asks before it replaces it. In our 0.3.131 runs (2026-10-30), setup took about 17 s on a fast line and about 80 s over Tor, with the setup-file download of about 191 MB then; since 0.3.208 the download is about 205 MB on Linux and 225 MB on Windows. At the end it prints a summary, for example:

Shinjuku Shield is set up.
  limits       no limit per payment, no limit in any 24 hours, no limit for the life of the wallet
  config       <home>/config.json
  passphrase   <home>/passphrase.txt (a new random passphrase; only you can read the file; it is never printed)
  setup files  <home>/proof-tools/f8ea3738 (36 files downloaded, every hash checked)
  balance      prepared during setup: your first balance after a deposit shows sooner
  wallet       created
  recovery     <home>/recovery-<time>.txt

Setup writes to ~/.carbon-shielded-wallet (or SHIELDED_WALLET_HOME):

  • The wallet, and a recovery file with the seed and the key. Copy the recovery file to two offline places, then delete it from this machine.
  • passphrase.txt: a new random passphrase, readable by you alone. It is never printed, and no tool takes or returns it. Keep it: the wallet file opens only with it.
  • The proof tools for your platform. Setup checks every file against the set that this wallet release pins, or against a set that the signed release channel lists for the pool after a program upgrade.
  • config.json: the caps, the paths, and Tor. With it, mcp needs no flags. A flag on the command line still wins.

Spending limits are optional and off by default: with none, only the balance bounds a payment. To set them, give --max-payment, --max-session, or --max-cumulative, in USDC (0.05 = 5 cents). A setup rerun lifts the old default caps (0.05 / 1 / 20 USDC) of earlier versions. --prefer-tor records Tor (see Privacy modes).

You can run setup again at any time. It never changes an existing wallet, and it checks every proof-tool file again.

2. Add the server to your agent host

If you gave --add-to, this step is done. For Claude Code, the simplest way is shinjuku setup --add-to claude-code (it runs the line below for you). Setup also prints these lines. Add the wallet once: one entry named shinjuku.

Claude Code:

claude mcp add --scope user shinjuku -- npx -y --prefer-offline --no-audit --no-fund shinjuku-shield@0.3.218 mcp

--no-audit --no-fund stop npx from asking npm's audit and funding services when it starts a new version. Once, that request held the start for 5 minutes. --prefer-offline runs the copy of the wallet that npm saved. If npm has not saved it yet, that start asks npm once, directly, so npm sees your IP address that one time; later starts ask npm nothing.

On native Windows, the line that setup prints puts cmd /c before npx. With a wallet folder that is not the default, it adds -e SHIELDED_WALLET_HOME=<home> (or an "env" block in JSON).

Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json), and other JSON-config hosts:

{
  "mcpServers": {
    "shinjuku": {
      "command": "npx",
      "args": ["-y", "--prefer-offline", "--no-audit", "--no-fund", "shinjuku-shield@0.3.218", "mcp"]
    }
  }
}
Or: start the server first and accept the setup

You can also add the server first, with no wallet on the machine. Then the server starts in setup mode. Ask your agent "what is my balance". Your MCP client asks you to confirm: create a Shinjuku Shielded wallet on this machine. Accept, and the setup runs (with the proof-tool download of about 205 MB on Linux, 225 MB on Windows). Then the same server switches to the wallet tools. You do not restart it. A client that cannot ask is told to run the setup in a terminal.

In a terminal, shinjuku mcp asks "Set up Shinjuku Shield now? (y/n)".

3. Add funds

The wallet starts empty. Ask your agent "Add 0.50 USDC to my shielded balance". It calls wallet_add_funds and gives a one-time address. Send that USDC on Solana from any wallet or exchange. Amounts from 0.01 USDC work, and you need no SOL. The USDC becomes private by itself while the MCP server runs: our relayer pays every fee.

From an exchange, in a terminal, whole USDC only:

shinjuku add-funds --route exchange --amount 2

It prints a one-time address. Withdraw exactly that amount of USDC (Solana SPL) from the exchange to it, and it shields the USDC by itself. --amount is a whole number of USDC (2 = 2 USDC).

USDC that is already on the wallet's own address (ownAddress in wallet_balance) goes in with wallet_shield. The steps are in First 10 minutes.

Verify a release

The wallet is one file, shinjuku-wallet.mjs. The same file, with the same SHA-256, is in three places: the npm package shinjuku-shield, our website, and the Releases table of this repository. The steps below check the stable version 0.3.218 (wallet release 947a6309). Its SHA-256 in the Releases table is 947a63099768d243c5d5c8e6cf59d0ca363c213f1e35da7860019e5ccdbb955e.

  1. Install the npm package into a new, empty folder. Type each line alone:

    mkdir shinjuku-check
    cd shinjuku-check
    npm init -y
    npm install --ignore-scripts shinjuku-shield@0.3.218
  2. The npm copy. Hash the wallet file inside the installed package. The hash must equal the SHA-256 above.

    Linux: sha256sum node_modules/shinjuku-shield/shinjuku-wallet.mjs

    macOS: shasum -a 256 node_modules/shinjuku-shield/shinjuku-wallet.mjs

    Windows (PowerShell):

    (Get-FileHash .\node_modules\shinjuku-shield\shinjuku-wallet.mjs -Algorithm SHA256).Hash

    PowerShell prints the hash in capital letters; the letters are the same.

  3. The npm signatures. In the same folder:

    npm audit signatures

    It checks the registry signatures and the provenance attestations of the installed package. It must print "1 package has a verified registry signature" and "1 package has a verified attestation". It does not print who built the package.

  4. Who built it. The provenance attestation is a statement, signed through Sigstore during the build, of where the package was built. To read it, open https://www.npmjs.com/package/shinjuku-shield/v/0.3.218, select the green check mark next to the version, then "View more details". "Source Commit" must be a commit of ShinjukuStaition/shinjuku-shield, and "Build File" must be .github/workflows/publish.yml.

  5. The website copy. Download the file and check it. Go on only when the check prints OK:

    curl -fsSLO https://shinjukustaition.com/wallet/947a6309/shinjuku-wallet.mjs
    echo "947a63099768d243c5d5c8e6cf59d0ca363c213f1e35da7860019e5ccdbb955e  shinjuku-wallet.mjs" | sha256sum -c -

    On macOS, end the second line with shasum -a 256 -c - in place of sha256sum -c -.

    On Windows (PowerShell), type curl.exe in place of curl, then:

    if ((Get-FileHash .\shinjuku-wallet.mjs -Algorithm SHA256).Hash -eq "947a63099768d243c5d5c8e6cf59d0ca363c213f1e35da7860019e5ccdbb955e") { "OK" } else { "MISMATCH" }

    The file and its hash are also in section 7b of https://shinjukustaition.com/skill.md. To run the file itself, replace shinjuku with node /abs/path/shinjuku-wallet.mjs in the commands.

What these steps show: the npm copy, the website copy and the Releases table have the same hash; npm's signatures on the package are valid; and the provenance names the repository and workflow that built the package. They do not show the wallet's source code, which is not public. As npm says, provenance does not guarantee that a package has no malicious code.

Advanced: flags instead of config.json

mcp reads config.json only when you give no --pool and no --wallet. To give the flags yourself (for example, for a wallet that you made with init before 0.2.0):

claude mcp add --scope user shinjuku -- npx -y --prefer-offline --no-audit --no-fund shinjuku-shield@0.3.218 mcp \
  --max-payment 0.05 --max-session 0.2 --tor \
  --pool <pool> \
  --program 8PYPw3FSFTMbvSneXdcoH6jNoN4VD23nHwPY2A2riUy1 \
  --memo-service https://pay.shinjukustaition.com \
  --proof-tools /abs/path/shinjuku-proof-tools/proof-tools.json \
  --exit-proof-tools /abs/path/shinjuku-proof-tools/exit-proof-tools.json \
  --profile /abs/path/shinjuku-proof-tools/public-profile.json \
  --passphrase-file /abs/path/passphrase.txt

With --pool, --program and --memo-service are required. Setup writes the pool, the program, and the facilitator into config.json: <pool> is the pool in your config.json. shinjuku help mcp prints every flag.

Use absolute paths: a host starts the server from its own folder. On Windows, write C:/Users/you/.... --proof-tools turns wallet_shield on. --exit-proof-tools and --profile turn wallet_unshield on.

For an older wallet, you can also run setup once with SHIELDED_WALLET_HOME set to your wallet folder and --passphrase-file set to your passphrase file. It keeps your wallet and writes config.json beside it.

A send to a new address needs a host that supports MCP elicitation (it shows you the confirmation). With a host that does not, name each address with --unshield-to.

Use your private AI from your own code

Your wallet can run a private AI address on your computer. A program that asks OpenAI's chat API text questions can use it, with tool calls too. It does not take images or a reference to an earlier answer (send the whole conversation each time), and it gives one answer per request. Each answer is paid from your private balance. The address always runs through Tor, so the AI company does not see your IP address.

Below: one short question each, with curl, TypeScript, Python and LangChain.

1. Start the address
npx -y --prefer-offline shinjuku@0.3.218 infer start

On Windows, type npx.cmd in place of npx in this step's lines (it runs in Command Prompt and PowerShell).

It prints the address, an API key and the model. You need the first two:

base_url http://127.0.0.1:11402/v1
api key  <your key: 48 letters and numbers>
model    qwen3-8-flash (others: ...)

The address keeps running in the background. It stops when your computer restarts: then run the line again (the key stays the same). To stop it: npx -y --prefer-offline shinjuku@0.3.218 infer stop.

2. Put your key where your program can find it

In the same window (Windows, Command Prompt):

set OPENAI_API_KEY=<your key from step 1>

On a Mac or Linux: export OPENAI_API_KEY=<your key from step 1>. This lasts until you close the window. Keep the key to yourself: a program on your computer that has it can spend from your balance.

3a. curl (no install needed on Windows 10 or 11)

In Command Prompt (one line; copy it as it is):

curl http://127.0.0.1:11402/v1/chat/completions -H "Authorization: Bearer %OPENAI_API_KEY%" -H "Content-Type: application/json" -d "{\"model\":\"qwen3-8-flash\",\"max_tokens\":4096,\"messages\":[{\"role\":\"user\",\"content\":\"What is the capital of Japan?\"}]}"

The answer is the text after "content":. The reply's "paid_atomic" is what you paid, in millionths of a USDC (3118 = 0.003118 USDC).

3b. TypeScript or JavaScript (needs Node.js)

Node.js is already on your computer if the wallet runs. In a new folder:

npm install openai tsx

Save this as ask.ts (in Notepad: File, Save as, "Save as type: All files", file name ask.ts):

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "http://127.0.0.1:11402/v1",
  apiKey: process.env.OPENAI_API_KEY,
});

async function main() {
  const answer = await client.chat.completions.create({
    model: "qwen3-8-flash",
    max_tokens: 4096,
    messages: [{ role: "user", content: "What is the capital of Japan?" }],
  });
  console.log(answer.choices[0].message.content);
}

main();

Run it: npx tsx ask.ts

3c. Python (needs Python 3)

If python --version says "Python was not found" or opens the Microsoft Store, install Python from https://www.python.org/downloads/ and tick "Add python.exe to PATH" in the installer. Then close the window and open a new one (the old window does not see the new Python), go back to your folder and set your key again (step 2).

pip install openai

pip can print yellow "not on PATH" warnings and a note about a newer pip. They do no harm. Save this as ask.py:

import os
from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:11402/v1",
    api_key=os.environ["OPENAI_API_KEY"],
)

answer = client.chat.completions.create(
    model="qwen3-8-flash",
    max_tokens=4096,
    messages=[{"role": "user", "content": "What is the capital of Japan?"}],
)
print(answer.choices[0].message.content)

Run it: python ask.py

3d. LangChain (Python)

Do 3c first, then:

pip install langchain-openai

Save this as ask_langchain.py:

import os
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    base_url="http://127.0.0.1:11402/v1",
    api_key=os.environ["OPENAI_API_KEY"],
    model="qwen3-8-flash",
    max_tokens=4096,
)
print(llm.invoke("What is the capital of Japan?").content)

Run it: python ask_langchain.py

What it costs

Each answer is paid before it runs, for the longest reply you allow (max_tokens). A part you do not use is not paid back.

qwen3-8-flash thinks before it answers, so it needs a max_tokens of at least 4096: with less, it can use every token to think and give no answer, and you still pay. The address refuses a smaller value before anything is paid. A short question at 4096 costs about 0.003 USDC, at most 0.011 USDC. For the other models, 256 is the smallest. A request with no max_tokens pays for 4096 (512 for claude-opus-5). infer start says the most it pays for one answer and for one run.

Examples

examples/ has complete configs and a walkthrough:

Caps and flags

After setup, config.json holds the caps and the paths. You can add any of these flags to the mcp command. A flag wins over config.json.

Flag
--max-payment <usdc> Optional. The most one payment may cost, in USDC (0.05 = 5 cents). Setup records it. Default: no limit.
--max-session <usdc> Optional. The most this wallet may pay in any 24 hours, from every MCP process together. When you set both, it must be at least --max-payment. Setup records it. Default: no limit.
--max-per-host-day <usdc> Optional. The most one seller host may receive in 24 hours, in USDC.
--allow-host <host> Optional, repeatable. Pay only these seller hosts.
--no-shield Optional. Turns wallet_shield off. It is on with --proof-tools.
--max-shield <usdc> Optional. The most one shield call may move, and the most this wallet may shield in any 24 hours, in USDC. Without it, no cap beyond the balance.
--allow-shield Accepted for older configs. wallet_shield is on without it.
--exit-proof-tools <file>, --profile <file> Optional. Turn wallet_unshield on (with --proof-tools).
--unshield-to <address> Optional, repeatable. These addresses receive with no confirmation. Any other address needs your confirmation in the MCP client. The wallet's own key is refused: the server does not start when you name it here.
--ready-pockets <0-5> Accepted for older configs and ignored. Standard exact sellers are paid through Shinjuku, and the wallet fills no pocket.
--no-auto-pockets Accepted for older configs. It also stops the idle return of old pockets to the shielded balance.
--max-unshield <usdc> Optional. The most one unshield call may move, and the most this wallet may unshield in any 24 hours, in USDC. Without it, a send you confirm can move the whole shielded balance.
--no-tor Optional. This run does not use the Tor that setup recorded.
--tor Optional. Every request goes through Tor; our facilitator is reached over its onion service. On Windows the wallet runs its own Tor; on another system (Linux too) it needs your own Tor with HTTPTunnelPort 127.0.0.1:9080 in its torrc. See Privacy modes.
--rpc-file <file> Optional. Your own Solana RPC URL. Without it, reads go to our relay, which sees which addresses the wallet reads.

The passphrase comes from --passphrase-file or SHIELDED_WALLET_PASSPHRASE at start, never from a tool call. A refusal is a normal answer ({"ok": false, "error", "detail", "next"}); the agent does what next says. A cap refusal tells the agent to ask you: only you set the caps.

An unshield is your own money, so it does not count against the payment budget of the wallet file (init --max-payment, --max-cumulative). Payments to sellers still count. To show, change, or remove those wallet-file caps, run shinjuku limits (none removes a cap). A refusal by one of them tells the agent to ask you for this.

Upkeep is automatic. After a deposit lands, and before a payment or unshield when the local balance is stale, the server reads the chain itself. By default it reads the pool history through our facilitator's https history proxy: a new wallet is ready in about 60 s. After each shield and unshield, the wallet writes an encrypted backup to <SHIELDED_WALLET_HOME>/auto-backups/<pool>/. It keeps the newest 5 complete, verified backups. They are on the same disk as the wallet: copy one to another place.

What others can see

  • The seller sees your request, the price, the time, and your IP unless you use --tor.
  • Your agent host and its model provider see every URL, body, price, paid answer, amount, and unshield address the agent handles. A local model removes that observer.
  • Your MCP client app (Claude Code, Codex, Claude Desktop, Cursor, ...) answers the confirmation of a send, not the model. So a prompt-injected agent cannot approve a send. But the wallet trusts the client app to show the dialog to you: a malicious or modified client app could answer "accept" by itself. For a strict setup, name your addresses with --unshield-to and use a client without elicitation. Then any other address is refused.
  • Our facilitator processes your payment. It keeps no access logs.
  • On chain, a shielded-exact payment does not show who paid. A float pay payment is a pool payment to us (the payer hidden), then a normal USDC transfer from a Shinjuku float pocket to the seller. Many buyers pay from the same float pockets. The transfer lands seconds after the pool payment, so time can pair the two.
  • For a float payment, our server sees which private payment paid which seller, the price, the URL, and the time, until the payment is final or refunded. It does not see your wallet.
  • wallet_add_funds: the chain shows the USDC that arrives at the one-time address, the amount, and the time. Use each address for one payer.
  • wallet_shield is a public step: the chain shows USDC leave the wallet's own key, the amount, and the time.
  • wallet_unshield is a public step: the chain shows the amount, the address that receives it, and the time.
  • inference_chat: usePod and the model provider see the prompt and the answer.
  • The UNSHIELDED line of wallet_balance reads the wallet's own key. The RPC (our relay by default) sees which key it reads.
  • Privacy needs a crowd. With few users, timing can still link payments.

Which endpoints you can pay

  • A seller whose 402 offers shielded-exact. The wallet pays it from your shielded balance, and our facilitator settles the payment.
  • Any other Solana x402 exact endpoint that takes USDC, whichever facilitator settles it (float pay). pay (or the MCP x402_pay) pays us privately from your shielded balance: the seller's price plus a flat fee of 0.001 USDC. We then pay the seller at once from our own shared float. You fill nothing and set nothing aside. If the seller does not take the payment, we refund price and fee to your shielded balance by ourselves. This path, and every other payment, needs wallet release 08a4b56f (npm shinjuku-shielded@0.3.8) or later: the pool program was upgraded on 2026-10-11, and earlier releases refuse to pay.

The largest price that float pay can pay for one request is the size of our largest float pocket. Read it, and the fee, before you pay:

curl -fsS https://pay.shinjukustaition.com/api/x402/float/config

feeAtomic is the fee and largestAtomic is the largest price, in atomic USDC (1000000 = 1 USDC). On 2026-10-22 they were 1000 (0.001 USDC) and 10000000 (10 USDC). A higher price is refused before anything is paid (p03_float_price_above_capacity).

The 3D market game Shinjuku Undermarket is our first customer and our live demo.

Status

  • Stable version (pinned 2026-11-11): wallet release 947a6309, npm shinjuku-shield@0.3.218. Install that exact version. The wallet runs Tor for you, Windows needs no WSL (on Windows type npx.cmd -y shinjuku setup in Command Prompt or PowerShell), the shinjuku screen runs every job, setup offers a backup before the first deposit, and a wallet from an older version updates with no new setup. The changelog lists the rest. How to start: the 0.3.218 release notes. Hash: the 947a6309 row of Releases.
  • The stable version before it: wallet release 2b7c138c (npm 0.3.210, pinned 2026-11-11): the 0.3.210 release notes.
  • The stable version before that: wallet release 3c8b302d (npm 0.3.131, pinned 2026-10-30). Its feature list: the 0.3.131 release notes.
  • An older stable version: wallet release b650bf06 (npm 0.3.86).
  • What 0.3.131 changes: a send that stopped at any point finishes with the same plain command, a send to your own wallet needs no address, and a new limit applies without a restart. It shows the QR code of a deposit address in the chat (a picture in an app, text in a terminal), never as a file. It fixes known issues 1 to 7 of 0.3.86, shows a QR code for a deposit, takes any amount from 0.01 USDC in a terminal, keeps every tool text short enough for agent apps to read in full, asks "Use Tor?" when an agent app sets up the wallet, waits for your answer in the setup box, names your recovery file when setup ends, says when you confirmed a send, and asks for each value in a terminal instead of a flag. It adds slash commands in Claude Code (type / and pick a command, then add its value, or press Enter and the agent asks), one default AI model (qwen3-8-flash, 4096 tokens for an answer) for the chat and the private AI address, and the time when a refund lands after a seller refuses at once. It says when a seller works too long before it charges (about 30 s) for any wallet to pay it. A private send keeps the money that its next payments need, so its last payment no longer waits until you cancel it. The balance then says when one payment can use the change of your last payment, and a request id that an earlier payment used gets one new request id named. A new deposit or send leaves its request id out, so an old send never answers for a new one. A new payment or AI question leaves it out too. Answers show you no request id, and the balance names a private send by its amount and address. A payment can go while a private send in parts runs from the same money, and it waits for one step of a part, not the whole part. A refund notice names its payment and stays until an answer shows it. A send that the agent app cut finishes at the next start without holding up the first payment, and a part that finishes before the chain marks it final waits and tries again. A new private send leaves in one transfer, and a terminal send of money you received goes straight to the address. The wallet reads the chain before it says your balance is 0, and a terminal command with no money says how to add money before it asks anything. The words of an answer name no tool and no field. The history reads go in fewer, shared requests. The search for paid APIs reads the seller lists through Shinjuku's copies, so every list works with Tor, and an answer names a list it could not read. An AI answer limit below 0.01 USDC, a price check on a low balance, a declined question and the AI model list say in plain words what stops a payment and what works.
  • shielded-exact payments from the shielded balance: live on mainnet.
  • Float pay to any Solana x402 exact endpoint that takes USDC: live on mainnet since 2026-10-11 (wallet release e3348092 and later). On 2026-10-11 it paid two stock sellers on the PayAI facilitator, 0.10 USDC in 15 s and 1.50 USDC in 20 s, and a stock seller on our own facilitator (488372b4 and later), 0.01 USDC in 16 s and 17 s: see proof.md.
  • Faster pool anchors: live on mainnet since the pool program upgrade of 2026-10-11 (wallet release 08a4b56f and later). The pool takes an anchor about every 30 s when it grew. In our test, 12 of 12 new deposits could pay within 45 s (median 18 s).
  • Pool moves: live from wallet release 701809bd (npm shinjuku-shielded@0.3.9). When we open a new pool, the old pool keeps serving until it is empty, and move moves your whole balance to the new pool privately: you pay our float in the old pool, and the float pays you in the new pool. Nothing goes through a public address.
  • Per-user pockets: replaced by float pay. The wallet fills no new pocket for a payment. pocket reshield returns the USDC of an old pocket to your shielded balance.
  • Hidden amounts (scheme confidential, the V0b vault): retired. The V0b program was closed on chain on 2026-10-11.
  • The wallet file and its proof tools, served from our site and our onion service with SHA-256 hashes: live.
  • Key ceremonies: a multi-party ceremony: not yet.
  • Independent audit: none yet.

Listed in the official MCP Registry as io.github.ShinjukuStaition/shinjuku-mcp. npm: shinjuku-shield (the one package that holds the wallet; the older name shinjuku-shielded runs the same wallet at the same version, so wallets installed under it keep updating: from the release after 0.3.186 it is a small package that runs shinjuku-shield; 0.3.186 and earlier hold the same files), published from this repository's workflow with npm provenance (from 0.1.1).

Live on Solana mainnet. The current wallet release is 947a6309 (npm 0.3.218, pinned 2026-11-11). How to start: Release 0.3.218.

Every release and its changes: CHANGELOG.md.

Float pay paid two stock sellers on the PayAI facilitator on production on 2026-10-11, 0.10 USDC and 1.50 USDC, and a stock seller on our own facilitator, 0.01 USDC twice: the transactions are in proof.md.

These transactions were made with real money through this MCP server, against our production facilitator, on an earlier pool (retired 2026-10-10). The first two came from a new wallet with the default setup and no SOL at any time (wallet release 94a357bc). The others used wallet release 1a336885 (2026-10-08).

Tool Transaction
wallet_shield (no SOL) 5np1EYjN…fH2
x402_pay to a public satellite-imagery seller (0.013 USDC, JPEG answer in 8 s) iC6gnjFM…DHwC
wallet_shield (1 USDC in) hWzDiR1R…izn
wallet_unshield (0.5 USDC out) self-pay 5evVHz8X…r9uv · exit 4yY2YXLS…pgF2i
wallet_unshield with your confirmation (0.25 USDC, release 1a336885) self-pay 3jQyPgrA…QEWw · exit 4yA3qkHU…jCoh
x402_pay (pocket exact, before float pay) kX2zbbuR…8wW

No unshield transaction contains the wallet that shielded; our facilitator paid every network fee of each unshield.

Full guide: https://shinjukustaition.com/skill.md · Onion: http://2kfhlfuyuwvhmibjrpxqsg4nrbcxasjgjq7kmnfzgfwzptkhhznz3dad.onion/skill.md · X: @Shin_StAItion

Check a release with verify.mjs

verify.mjs checks one published release with one command. It needs Node.js 22 or later and nothing else:

git clone https://github.com/ShinjukuStaition/shinjuku-shield
cd shinjuku-shield
node verify.mjs 0.3.218
  • It downloads the npm package shinjuku-shield and checks it against its npm sha512.
  • It checks the sha256 of the wallet file inside it against the package's own record.
  • It checks the wallet file against its row in the Releases table below.
  • It checks the wallet file against the hash our website serves.
  • It reads the npm provenance and checks that it names this exact package file, this repository and .github/workflows/publish.yml.
  • It does the same download and provenance checks for the shinjuku and shinjuku-shielded packages of that version. A small pointer package must depend only on shinjuku-shield at that version and hold no wallet file. An older full copy must hold the same wallet file.

Each check prints OK or FAIL. A package that npm does not have at that version prints SKIP, and the last line counts it. The script runs no downloaded file. It does not check the Sigstore signature of the provenance. To check it, run npm audit signatures in a folder where the package is installed.

Releases

Each release is one file, shinjuku-wallet.mjs, and a set of proof tools.

From npm 0.3.208 (bf8c2b52) on, a release pins one V2 set per platform, and the table names its Linux x64 set; its other sets are Windows x64 e60caaec (225,115,541 bytes) and Linux ARM64 ce903e38 (203,798,977 bytes). The V1 set eb4cbf8a stays pinned only as the fallback for a server that serves no V2 set. From npm 0.3.212 (2dd06d0d) on, after a program upgrade the wallet also installs a V2 set that the signed release channel lists for the pool: since the upgrade of 2026-11-12 the website serves f8ea3738 (Linux x64, 205,459,679 bytes), 0d7e1b50 (Windows x64, 225,117,531) and 150f8bf8 (Linux ARM64, 203,800,967), and a new setup with 0.3.212 or later downloads those. Releases 0.3.208 to 0.3.211 install only their own pinned set, so their setup stops on these; use the current release. Our website serves the files and their SHA-256 hashes at https://shinjukustaition.com/wallet/<sha8>/ and https://shinjukustaition.com/proof-tools/<sha8>/. This repository is a second, separate place for those hashes: each release adds its row here.

The stable version is 947a6309, on npm as shinjuku-shield@0.3.218 (pinned 2026-11-11). Use it for a new install. A row marked "candidate" records a release served beside the stable version and published on npm under the tag next, not latest; it becomes the stable version only when we say so here. Rows marked "no longer served" are gone from the website; the other older rows stay for the record. Some short-lived releases served between 2026-10-05 and 2026-10-07 have no row here. What changed in each release after 08a4b56f is in the changelog.

Facts

Kind
MCP server
Repo
ShinjukuStaition/shinjuku-shield
Group
Uncategorized
Stars
11
License
Apache-2.0
Language
JavaScript
Last push
2026-11-23
MCP Registry
io.github.ShinjukuStaition/shinjuku-mcp
Homepage
shinjukustaition.com/skill.md
Topics
ai-agents, mcp, model-context-protocol, privacy, solana, x402

Next on this shelf

  1. 6255Better-TG-CLI (Telegram)io.github.TheVilfer/better-tg-cliTelegram on your own account: read, search, send and press bot buttons. Writes need your approval.11
  2. 6256ReadAnyDocio.github.arpitpatel25/readanydocParse PDFs, scans and Office files to Markdown; extract typed fields with page citations.11
  3. 6257io.github.ascript-cn/ascript-mcpio.github.ascript-cn/ascript-mcpControl Android/iOS/Windows devices from Claude, Cursor, and other AI tools. iOS without jailbreak.11
  4. 6258Bimwright NWDio.github.bimwright/nwd-mcpMCP gateway for Autodesk Navisworks Manage 2022-2027.11
  5. 6259complydocio.github.complydoc/complydocOpen documents with personal details masked and hidden instructions taken out, on your machine.11
  6. 6260io.github.danishashko/make-mcpio.github.danishashko/make-mcpUnofficial MCP server for Make.com automation - build, validate & deploy scenarios via AI11