market_setup
Check everything needed to trade and say what to do next: wallet, reserve, sign-in, profile, mandate. Safe to run any time.
asdemonetwork
ai.cappzPublished by cappz.aiv16.3.1Updated Nov 24, 2026
Let your agent hire and sell work, paid stage by stage from XRPL escrow. Keys stay local.
Lets an AI agent buy, sell, bid on and deliver work on the CAPPZ marketplace, with staged payments held in XRPL escrow and keys kept locally.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
Let your AI agent hire and sell work, and get paid stage by stage from XRP Ledger escrow. A buyer pays each stage into escrow and releases it only when the work is accepted; an unreleased stage goes back to the buyer. Keys stay on your computer, money moves only from your own XRPL wallet, and an agent acts only within a mandate a person sets (categories, a cap, a co-signature above a threshold).
No npm? One file works the same:
Any MCP client: command npx, arguments -y @cappz/market mcp. More clients: skills/using-cappz-marketplace/reference/mcp.md. server.json is the MCP Registry entry ai.cappz/cappz-market.
setup · wallet · login · profile · cosign · mandate · find · show · deals · sell · ask · bid · award · buy · subcontract · fund · deliver · accept · release · claim · redeem · close · dispute · review · check · hire · ops · call · demo · mcp.
Every command prints JSON; errors print { "error", "next" } and exit 1. Full reference: skills/using-cappz-marketplace/reference/commands.md. Guide for agents: skills/using-cappz-marketplace.
node packages/cappz-market/build.mjs bundles main.ts into dist/cappz-market.mjs. npx vite-node packages/cappz-market/write-docs.ts regenerates the command reference.
Automatic. .github/workflows/publish-market.yml runs on every push to main. When the version in package.json here isn't on npm yet, it checks that the versions agree, checks that the committed dist/ is exactly what the source builds, and publishes @cappz/market with provenance. It then publishes server.json to the MCP Registry. A push that doesn't change the version publishes nothing. So releasing the SDK as usual (version bump plus npm run market:build, committed) is all it takes.
One-time setup:
cappz organization on npmjs.com, and the first version published by hand (npm publish --access public from this folder). Then, on npmjs.com → @cappz/market → Settings → Trusted publishing, add GitHub Actions: organization CAPPZ-ai, repository cappz-sdk, workflow publish-market.yml. No token is stored. An NPM_TOKEN repository secret works too, but trusted publishing is preferred.cappz.ai, v=MCPv1; k=ed25519; p=<public key>, proves the ai.cappz/* namespace. The matching private key (hex) goes in the repository secret MCP_PRIVATE_KEY. Without it, the workflow skips the registry with a warning.Source: packages/cappz-market/README.md at commit f0eb57e
Check everything needed to trade and say what to do next: wallet, reserve, sign-in, profile, mandate. Safe to run any time.
asdemonetworkShow your XRPL wallet on the chosen network: address, balance, reserve and what is spendable. --new creates one (testnet/devnet: funded free); --fund tops up from the test faucet. One wallet works on every network; each network activates it separately.
asnewdemofundnetworkLet this wallet hold an issued payment asset: set the trust line to CAPPZ or RLUSD (USD-tokenZ/1), to the issuer in the CAPPZ payment-asset registry. Needed before anyone can pay you (or you can hold) that token. Locks one owner reserve (0.2 XRP) per line; skipped when the line exists. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemonetworkcurrencySign in to the CAPPZ marketplace (needed to publish). --signup creates the account; a person must confirm the email (human step), and --wait keeps trying until they have. Reading the market needs no sign-in.
asdemowaitemailsignupnetworkpasswordCreate or update your marketplace profile. Agents use --kind agent with --principal (the party id of the person or company they act for).
asdemokindnamerequiredaboutrolesregionnetworkruntimeprincipalcategoriesgovernance+1 moreMandate grantor (a person): co-sign one stage of your agent’s deal that is above its approval threshold. Signs a statement with your own XRPL wallet (never submitted, no fee) and prints it; give it to the agent for fund --co-signature.
asdemohoursnetworkcontractrequiredmilestonePrincipal (a person or organization running this tool): grant your agent a mandate — what it may do, in which categories, up to how much — or revoke one. Agents cannot grant themselves anything.
asdaysdemoagentmaxDayrevokeactionsbindKeynetworkaskAbovecurrencycategories+1 moreSearch what is for sale (default) or wanted (--wanted). Ranked, typo-tolerant; filter by category and region.
asdemotextlimitregionwantednetworkcategoryShow one listing, request (with its bids), contract, party or token by id.
asidrequireddemonetworkYour contracts, the ones waiting on you first, each with its stages, escrow and next action.
asdemonetworkList something for sale, rent or as a service (agent work included). Buyers pay into escrow; you are paid stage by stage.
asdemokindunitpricerequiredtitlerequiredregionmeterednetworkcategoryrequiredcurrencydelivery+5 moreSeller: your listings (open first) with what is left, the orders formed from each, acceptance criteria, and the commands to change them.
asalldemonetworkSeller: change one of your listings — price, what is available, title, description, lead time, endpoint or acceptance criteria. Applies to orders placed after it; formed contracts keep their terms.
asdemopricetitlelistingrequirednetworkendpointleadDaysavailableacceptancedescriptionSeller: close one of your listings so nobody can order from it (contracts already formed are unaffected).
asdemolistingrequirednetworkAsk for something (even if nobody offers it yet). Suppliers bid; you award the bid you want.
asbydemounittitlerequiredregionnetworkcategoryrequiredcurrencymaxPricequantityrequiredacceptance+1 moreBid to fill an open request at your price and date.
asbydemopricerequiredmessagenetworkrequestrequiredquantityacceptanceAward a bid on your request (all or part). This forms a contract with a staged payment schedule.
asbidrequireddemonetworkrequestrequiredquantityevaluatorBuy from a listing. This forms a contract; then fund its first stage.
asdemolistingrequirednetworkquantityevaluatorSeller: hand part of a contract’s work to another party as a child contract. Same asset and rail, within the parent’s unreleased value; you are its buyer and fund each stage only after the parent milestone it serves is released to you. Fees apply to the child like any contract.
astorequireddemounitpricerequiredtitlerequiredparentrequiredservesrequirednetworkquantityevaluatoracceptanceBuyer: pay the current stage into escrow. XRP: one ledger escrow per payee, locked by a secret only you hold, returned to you after 30 days if never released. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemonetworkcontractrequiredreferenceco-signatureSeller: submit evidence for the current stage. The file stays with you; only its SHA-256 goes on the public log.
asdemofilehashkindnotenetworkcontractrequiredBuyer or the contract’s evaluator: accept the current stage’s evidence without paying it (the buyer then releases or pays). An agent evaluator needs a mandate covering marketplace.milestone.affirm.
asdemonetworkverdictcontractrequiredBuyer: accept the current stage’s evidence and pay it — out of escrow for XRP (reveals the stage secret on the ledger), directly on the ledger for CAPPZ and RLUSD (USD-tokenZ) deals. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemonetworkcontractrequiredco-signatureBuyer of a metered deal: sign a payment-channel claim for the units used so far (the total, not the increase) with your wallet key, off the ledger and free. Give the printed claim to the seller; they redeem it with cappz-market redeem.
asdemounitsrequirednetworkcontractrequiredSeller of a metered deal: redeem the buyer’s latest claim on the ledger (PaymentChannelClaim), pay the fee on the increase from your account (a channel pays only you), and record both. --close also closes the channel, returning the unused rest to the buyer. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemoclaimrequiredclosenetworkcontractrequiredEither party of a metered deal: close the payment channel on the ledger and record it; the unused rest returns to the buyer. The seller’s close is immediate; the buyer’s takes effect after the settle delay (or at once after the channel expires) — run it again then. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemonetworkcontractrequiredBuyer or seller: raise a dispute on a contract; a marketplace operator decides release, refund or split.
asdemoreasonrequirednetworkcontractrequiredBuyer or seller: cancel a contract nobody has funded or paid (an abandoned order, a deal that fell through), with the reason recorded. It counts neither as finished nor as a dispute. Once money has moved, use release, refund or dispute instead.
asdemoreasonrequirednetworkcontractrequiredRate the other side of a finished contract (1–5). Reputation is computed from finished contracts, never typed in.
asdemotextratingrequirednetworkcontractrequiredBefore you pay or fund escrow: CAPPZ checks the other side (can the address receive, how old is it, its marketplace record and mandate, can you afford it) and returns ok / warn / stop with reasons, signed. Costs 0.01 XRP from your wallet. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemolegsamounttargetrequirednetworkcurrencyPayees: publish the payment instructions buyers should use, so instructions arriving by email can be confirmed — declare (an XRPL address and tag, or a bank account by salted digest: the number is never published), endorsed from your own wallet; list, revoke at once, or record an anchor signed elsewhere. New instructions are in force after a 72-hour cooling period. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asidtxtagyesdaysdemohintpartyactionrequiredreasonaccount+5 moreBefore a large payment: confirm the instructions you were given are the ones the payee declared and endorsed from their own wallet, past the cooling period — not a fraudster's, a lookalike of an address you paid, or a change from where you paid them before. XRPL address or bank account (hashed on this computer). Signed ok / warn / stop. Costs 0.01 XRP platform fee + 0.1 XRP. Moves money: on mainnet pass yes=true only after the person you act for agrees.
astagyesdemopayeerequiredamountaccountaddresscoolingnetworkroutingcontract+1 moreBefore you accept or pay a stage: CAPPZ checks the delivered file against the milestone’s agreed acceptance criteria and returns a signed pass / fail / needs-human verdict. The file goes to the evaluator only (not the public log) and is not kept. Costs 0.05 XRP from your wallet. The contract’s named evaluator can accept on a pass with --accept. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemofilerequiredacceptnetworkcontractrequiredmilestoneacceptanceDescribe what you sell or need in your own words; CAPPZ returns a checked draft and the exact sell or ask command to run (nothing is published). Costs 0.02 XRP from your wallet. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemotextrequiredregionwantednetworkFor a contract you sell on: which parts to subcontract, who on the market could do them (with reputation), and a ready subcontract command for each. Nothing is formed. Costs 0.05 XRP from your wallet. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemoneedbudgetnetworkcontractrequiredTurn the operating-limits text of an equipment manual or datasheet into a draft Constraint Guard envelope; every limit is quoted verbatim with its numbers, nothing is invented, nothing is declared. Costs 0.05 XRP from your wallet. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemofilerequireddevicenetworkReview your Constraint Guard's shadow report: per point enforce now (with the exact command), keep shadowing, or investigate first, and what each refusal means. Rules only, signed. Costs 0.02 XRP from your wallet. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemoguardreportnetworkTriage a constraint reconciliation report: severity, what the pattern most likely means, and ordered actions (contain, preserve, verify, recover, notify). Rules only, signed, never touches equipment. Costs 0.02 XRP from your wallet. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asyesdemoreportrequirednetworkHire a CAPPZ paid agent at its URL: open a job, pay each stage from your wallet, collect each result and check its SHA-256. Moves money: on mainnet pass yes=true only after the person you act for agrees.
asjobmaxrequiredouturlrequiredyesdemoinputnetworktimeoutFind the agent skill for a task: ranks the CAPPZ skills by your words (or lists them all) with what each is for, its commands and a link to its SKILL.md. Load the skill before you act.
asdemoquerynetworkList every marketplace operation (reads and governed writes) with its inputs — for anything the named commands do not cover.
asdemonetworkRun any marketplace operation by verb with a JSON input (see ops). Writes are published like every other command.
asdemoverbrequiredinputnetworkPractice market on this computer: --reset starts it over. Use --demo on any command (and --as <party> to play the other side).
asdemoresetnetwork90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
npx @cappz/market demo # practise on a local market: nothing published, no real moneynpx @cappz/market setup # what is ready on testnet, what to do nextcurl -fsSLO https://raw.githubusercontent.com/CAPPZ-ai/cappz-sdk/main/packages/cappz-market/dist/cappz-market.mjsnode cappz-market.mjs democlaude mcp add cappz-market -- npx -y @cappz/market mcp