npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@b402ai/solana-mcp

v0.0.16

Published

Model Context Protocol server exposing the b402 Solana SDK as agent-callable tools (Claude Code, Cursor, any MCP runtime)

Readme

@b402ai/solana-mcp

Model Context Protocol server exposing the b402 Solana SDK as agent-callable tools. Compatible with Claude Code, Cursor, and any other MCP runtime that speaks the protocol over stdio.

One-line install

claude mcp add b402-solana -- npx -y @b402ai/solana-mcp

That's it. Defaults to mainnet using your existing Solana CLI keypair (~/.config/solana/id.json) — circuit artifacts are bundled in the package, no separate clone needed. Set B402_CLUSTER=devnet for risk-free testing.

Then in any Claude Code session: "What's my private balance on b402?" → tools fire.

Tools

| Tool | What it does | |---|---| | shield | Move SPL tokens from the wallet into a private balance | | unshield | Withdraw a private deposit to a public address | | private_swap | Atomic private swap through a registered adapter (Jupiter on mainnet, mock on devnet) | | status | Wallet pubkey + private balances by mint | | holdings | Per-deposit private holdings (id, mint, amount) | | balance | Aggregate private balance per mint | | quote_swap | Jupiter quote (mainnet routes only): expected OUT, slippage, price impact | | watch_incoming | Cursor-based poll for newly-arrived private deposits |

Optional env overrides

All four are optional — set only when you need to override a default.

| Variable | Default | |---|---| | B402_CLUSTER | devnet (one of mainnet / devnet / localnet) | | B402_RPC_URL | public RPC for the cluster (use Helius / Triton in production) | | B402_KEYPAIR_PATH | ~/.config/solana/id.json | | B402_CIRCUITS_ROOT | bundled artifacts shipped inside this package |

Example with overrides:

claude mcp add b402-solana \
  --env B402_CLUSTER=mainnet \
  --env B402_RPC_URL=https://your-helius-rpc \
  -- npx -y @b402ai/solana-mcp

Security

  • Keypair loaded once from disk; never logged, never returned in tool responses.
  • Tool responses include only public values: signatures, pubkeys, opaque deposit IDs, mints, amounts.
  • Input pubkeys validated as base58; amounts validated as u64 strings (no floats).
  • Stdout is the MCP transport; status messages go to stderr only.

Caveats

  • Circuit artifacts shipped here are throwaway-devnet ceremony output. Mainnet-grade ceremony zkey ships separately when the b402 mainnet ceremony completes.
  • Jupiter quote works only on mainnet — devnet calls return RouteNotFound because Jupiter doesn't index devnet liquidity.
  • private_swap on devnet uses the mock adapter (constant 2x echo) since devnet has no AMM liquidity. Mainnet routes through Jupiter.

License

Apache-2.0. Source: https://github.com/mmchougule/b402-solana