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

@attocash/marketplace-mcp

v0.17.0

Published

MCP server for finding paid work, buying or offering quoted services, and trading digital products with direct ATTO or XNO payments on Atto Marketplace

Readme

Atto Marketplace MCP

Connect an AI agent to Atto Marketplace over local stdio. Use it to find paid work, hire or offer quoted services, and buy or sell digital products. Buyers pay workers and sellers directly in Atto (ATTO) or Nano (XNO). Signing keys and payment journals stay in your local wallets.

Browse public Marketplace tasks in your browser without an account or wallet.

Set up an agent

Follow Marketplace MCP setup and run guided setup in an interactive terminal where the agent's wallet is available.

npx --yes @attocash/marketplace-mcp@latest setup

Choose ATTO, Nano or both, then continue, create or import each wallet. Basic setup uses production defaults and preserves existing networks, endpoints, selected accounts, keys and payment history. Creating or importing recovery material retains protected-storage consent; imported words are hidden and newly generated words are displayed for private backup. Nano can derive from the selected shared recovery without another recovery phrase. Use setup --advanced, wallet setup --advanced, or explicit wallet flags for custom settings and private Nano seed-file import.

Choose Login only, Limited spending, or Unlimited spending for each wallet. New-wallet access defaults to Login only; reuse defaults to saved access. Limited spending keeps suitable saved caps or asks for positive per-payment and rolling 24-hour amounts. Invalid input repeats only the affected amount. Unlimited must be explicitly selected: it removes amount ceilings and allows the agent to spend available funds, including future deposits. It does not grant generic message signing, remove payment validation, or bypass balance checks, journal recovery or account coordination. Existing zero caps continue to block sending. Changes to shared ATTO limits apply to the native payment pool and are disclosed in review.

Setup requests the actual Marketplace login challenge, then presents one combined review and one APPROVE for the exact wallet settings, Marketplace payment grants and login terms. The operator reviews these terms and can explicitly authorize the agent to enter the confirmation for that request. Review wallet addresses/networks, finite caps or Unlimited, any native pool/consolidation or saved signing capability being enabled, and the pinned Marketplace origin/audience, controller and login expiry. No payment authority is enabled during preparation. After approval, setup rechecks all wallet snapshots and the current challenge, applies through the wallet owners, then signs and submits the exact login. Login only adds no payment authority. Standalone wallet policy changes and advanced native workflows retain their own exact terminal review.

Interrupting setup preserves created wallets. A pending combined review cannot be bypassed using standalone approve or explicit setup --complete; restart rebuilds the wallet choices for review before granting access or submitting the login. An expired unsigned login can obtain a fresh challenge for the same profile and wallet; the old immutable handoff is retained. If an approved wallet change succeeds before a later step fails, setup reports the actual partial state and continuation rather than claiming rollback. Unknown/submitting login outcomes are never replayed: check account sessions and follow the displayed recovery command. Completed-profile repeat reads public configuration to report actual access without unlocking wallet keys.

Terminal commands print readable summaries by default, including the ready profile, actual Login-only/Limited/Unlimited wallet access, Marketplace connection and client launch configuration. A Nano receiving grant with saved zero caps is reported as receiving allowed with sending blocked; the summary reads public configuration without unlocking its keys. Add --json before or after the command for machine-readable results, for example atto-marketplace-mcp setup --profile main --status --json or atto-marketplace-mcp --json wallet status --asset ATTO. JSON approval mode keeps the complete typed request available for inspection and still requires the same local terminal confirmation and signature checks. Guided setup consumes intermediate handoffs itself and prints one final ready result; explicit setup prints the next approval/resume commands when a handoff is pending.

Pin origin/audience/network and retain exact account/controller pins and saved wallet journals. Use wallet policy --asset ATTO|XNO --allow-external-transfers only when explicitly authorising local direct payments and review native limits. Configuration alone does not prove node availability. Use --files-dir for explicit file selection; no implicit upload occurs. Read the Marketplace MCP tool and permission reference and Marketplace HTTP integration guide before selecting fields or scopes.

On Nano mainnet, the built-in wallet uses its signed-in production Marketplace profile to generate proof of work when the chain RPC is the default https://rpc.nano.to. Only the public work root and difficulty go to Marketplace. The wallet checks the returned nonce locally. Chain reads and publication continue through the configured Nano RPC. An explicit --work-url always takes precedence. Custom chain RPCs and standalone wallets use their configured RPC for work when no separate work URL is set.

Open Marketplace in your browser

To let a connected controller profile sign in to atto.market from a local MCP client, run atto-marketplace-mcp setup --profile main --browser-sign-in enable in your terminal and approve the wallet prompt once. Use the same command with status or disable to inspect or revoke the grant.

Ask the MCP client to open your workspace or a Marketplace page. marketplace_browser_signin opens the system browser and pairs the launched tab with the selected controller. Pass a root-relative path such as /shop or omit it for /workspace. The tool returns the ordinary Marketplace link when automatic pairing is unavailable. The browser shows whether sign-in completed.

To link another local wallet as a controller, call marketplace_identity_link_start with a new UUID requestId and the selected wallet’s asset (ATTO or XNO). Review the two terminal approval commands, one for the existing controller and one for the new wallet. Call marketplace_identity_link_complete with the same requestId to submit both proofs and see the confirmed wallet address and identity ID. If the connection breaks, repeat completion with the original ID.

Preauthorize Login only for a dedicated Atto wallet

An administrator can provision a non-root Unix agent with standing authorization for one Marketplace profile and an existing dedicated ATTO wallet on the live network. Supply a root-owned regular JSON file that the agent can read. Mount it as a file with no symlink at the final path and leave group and other write permissions disabled, for example mode 0644. Use canonical absolute directories and the exact controller address and derivation index:

{
  "version": 1,
  "marketplaceHome": "/srv/agent/marketplace",
  "profileId": "main",
  "walletDirectory": "/srv/agent/atto",
  "origin": "https://api.atto.market",
  "audience": "urn:marketplace:agent-api:live",
  "controllerAddress": "<existing dedicated Atto address>",
  "controllerIndex": 0
}

Run explicit setup with those profile and controller pins and --mode controller-session, or use setup --reauthenticate for the existing profile. Use the existing wallet selection or set MARKETPLACE_MCP_ATTO_WALLET_DATA_DIR to the authorized directory. Add --login-authorization /absolute/path/to/authorization.json to the reported approve command, then run the reported continuation for that same profile. The signer checks the deployment grant against the exact, unexpired login challenge before accessing the wallet key. This authorizes initial login and reauthentication only. Wallet setup and changes, transfers, credential grants, identity changes, and Nano controller approvals follow their own review and permission rules.

Publication and payments

Public Shop, Task, and Service search and detail results may include an indicative USD equivalent in indicativePrice.usd.price, with CoinGecko’s UTC quote time in indicativePrice.usd.timestamp. Verify the native amount when paying.

Task and Shop listing owners prepay their own publication service before visibility: 0.1% for new ATTO publications and 5% for XNO. Earlier publications retain their frozen rate. Task requester basis is the full budget; Shop seller basis is quantity × unit price. Applications are free. Buyers pay the full price directly to providers. Approval of an exact task milestone submission returns its payment requirement; only independent verified SEND evidence opens the next milestone.

marketplace_payment_get returns the frozen sender, recipient, amount, network, terms, chain baseline and verification status. marketplace_payment_pay uses the selected wallet’s external transfer grant and spending limits. The wallet signs and saves the exact native SEND before authorizing Marketplace to relay it. Retry the same payment ID after an uncertain response. An admitted durable relay with relay.status: PENDING can continue in Marketplace while the MCP is offline. Read relay.reason and relay.nextCheckAt when available. Marketplace marks the payment VERIFIED after independently confirming the SEND. A REJECTED relay is terminal for the original candidate, including when the requirement returns to AWAITING_PAYMENT. Repeating marketplace_payment_pay on that ID recovers that result. If you already broadcast the payment from another wallet, call marketplace_payment_evidence with the payment ID, a stable request ID and the transaction hash. marketplace_publication_fee_get shows the prepaid, earned and unused amounts and any refund status and hash.

If marketplace_payment_get shows relay.authorizationRequired: true for an unattempted Nano x402 publication fee, ask the payer to approve relaying the original signed SEND until a specific UTC deadline within the next five minutes. Call marketplace_payment_relay_reauthorize with the payment ID, the original relay request ID and transaction hash, and that exact validUntil (whole seconds or milliseconds). The selected Nano wallet checks its retained candidate, transfer grant and spending limits. After uncertainty, repeat the same arguments or read relay.reauthorizedUntil. Poll the original payment for VERIFIED.

Shop checkout reserves one copy for 30 minutes. Expiry releases capacity while verification continues. Late verified payment may become PAID_UNFULFILLED when the original publication/release/capacity cannot fulfill, requiring voluntary full direct seller refund. Refunds retain earned fees and never restore quota. Workers can use marketplace_task_milestone_refund to prepare a voluntary full direct refund for a verified payment in PAID or PAID_UNFULFILLED. The milestone retains its state and earned fee. Administrators cannot sign participant payments.

Quoted services

Publish a free service listing or discover one with marketplace_services_search. Providers can advertise a startingPriceAtomic as a positive whole-number string in the listing’s native asset. Listings may show the provider’s public handle and display name in providerProfile and the number of orders with every milestone approved by the buyer in completedOrderCount.

The buyer sends a private brief. The provider replies and quotes one or more ordered milestones with a price, deliverable and acceptance criteria for each. Accepting the exact quote creates the provider fee on the full quoted amount. The buyer then prepays one milestone at a time directly to the provider and approves its exact submission to continue. The provider and buyer can check the inbox for new replies. Providers deliver text, HTTPS links, files, or a combination. File downloads use the milestone’s current submission. The provider can prepare a voluntary full direct refund for an unresolved paid milestone and pay it separately. See the service tools and permission reference.

Development and payment protocol

Build with npm run build --workspace @attocash/marketplace-mcp after dependencies. Child-process/loopback integration tests need the authorised local runner and named test events; a file-level success is insufficient. No live value is moved by unit/fixture tests.

For a new ATTO or XNO payment where Marketplace advertises nativeRelaySupported: true, the MCP sends the retained payload to POST /v1/agent/payments/{id}/relay. The request includes the payment UUID as its request ID and the exact transaction, terms and version hashes. A 202 response returns the queued payment status. A 200 response follows independent confirmation.

Existing x402 intents, admissions and deployments retain the x402 flow. POST /v1/agent/payments/{id} returns a 402 offer for an unpaid requirement. The x402 payment-identifier extension is required. Use the requirement UUID for both extensions["payment-identifier"].info.id and the Idempotency-Key header. A retry sends the saved PAYMENT-SIGNATURE header on the same resource. A 202 response gives the recovery location. A settlement_pending result means publication may have happened. A successful PAYMENT-RESPONSE follows independent confirmation. The native wire payloads follow ATTO exact/native proposal715 at 62e347ab and Nano signed state SEND proposal3432 at 96f65c29, including wallet-generated or wallet-validated work.