@zknexus/bap
v0.1.6
Published
Bid Advisor Partners CLI and local MCP bridge for public procurement and x402
Readme
Bid Advisor Partners CLI
Public procurement discovery, a local stdio MCP bridge, encrypted Base and Solana wallets, and explicit terminal approval for x402 purchases.
Use Node.js 24 or later on macOS or Linux. See the CLI guide for wallet creation, approval and recovery commands.
Test a prerelease tarball
From the repository checkout, enter the package directory and run the following commands.
npm ci
npm test
npm pack
npx --package=./zknexus-bap-0.1.6.tgz bap doctor
npx --package=./zknexus-bap-0.1.6.tgz bap wallet list --chain solanaRun npx --yes @zknexus/bap@latest doctor to check catalog configuration and unsigned quote availability on Base and Solana.
The local storage directory defaults to ~/.bap. Set BAP_HOME to use a separate private profile. Wallets are encrypted with the passphrase entered in the terminal and stored in ~/.bap/wallets/<name>.json by default. wallet create reports the exact file path in its path field. To find existing wallet files, run npx --yes @zknexus/bap@latest wallet list --details. Keep an encrypted backup and protect the receipt database, which contains the original x402 proofs. MCP clients can request quotes and read results. Each purchase requires separate approval in the terminal.
Free previews work with bap mcp serve --stdio and need no wallet. Add --wallet <name> --network base|solana to quote from a specific profile. The optional --share-wallet-activity flag sends the profile’s public address and network with previews and new quote requests.
CLI 0.1.6 shows match and retrieval evidence in free MCP previews. Quotes show the USDC price and available indexed evidence. Use get_purchase_status with the original ID to check local delivery state.
