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

mercator-cli

v0.0.158

Published

Install Mercator MCP and prepare its payment wallet

Readme

mercator-cli

Install and diagnose the Mercator remote MCP server and a session-capable payment wallet across supported agent clients.

curl -fsSL https://mercator.tempoxyz.dev/install.sh | sh
mercator doctor

The installer places the CLI under ~/.local, links mercator into ~/.local/bin, and launches the same interactive setup flow. Pass CLI arguments after sh -s --, for example:

curl -fsSL https://mercator.tempoxyz.dev/install.sh | sh -s -- --client codex

Setup flow

flowchart LR
    DETECT["Detect supported clients"] --> CONFIGURE["Install Mercator MCP entry"]
    CONFIGURE --> GUIDANCE["Update managed guidance"]
    GUIDANCE --> WALLET{"Ready payment runtime?"}
    WALLET -->|Yes| VERIFY["Run readiness checks"]
    WALLET -->|No| ONBOARD["Create local wallet or connect Tempo Wallet"]
    ONBOARD --> VERIFY

Supported clients:

  • Codex
  • Claude Code
  • Gemini CLI
  • Cursor
  • VS Code
  • Windsurf
  • Cline
  • Continue
  • OpenClaw
  • Hermes

Selection options:

| Option | Behavior | | --- | --- | | No subcommand | Run interactive setup | | Picker | Show detected clients; select several entries or all | | --client <name> | Configure one named client; repeatable | | --all | Configure every supported client non-interactively | | --dry-run | Preview configuration changes | | --force | Recreate Mercator registrations and refresh managed guidance | | --no-agents | Skip Codex AGENTS.md guidance | | --remove-agents | Remove installed Codex guidance |

Setup guarantees:

  • Reuses matching existing configuration safely.
  • Shows a rotating adamsky/globe with live setup progress.
  • Keeps the globe active while the interactive client picker is open.
  • --force never removes or recreates wallets, keys, accounts, balances, sessions, or shared MPP plugins.
  • Wallet and native payment checks remain read-only during forced setup.

Example:

mercator setup --client codex --force

Codex guidance

Codex setup maintains a bounded block in the active global AGENTS.md:

  • Explains when to use Mercator.
  • Requires quote and budget approval before paid execution.
  • Excludes local files and repository work.
  • Preserves content outside mercator:begin and mercator:end HTML comments.
  • Leaves an existing AGENTS.override.md untouched and reports when it shadows the guidance.
  • Applies new guidance to the next Codex session.

Mercator always manages persistent AGENTS.md; use --no-agents to skip installation or --remove-agents to remove the managed block.

Payment runtime selection

Setup chooses the first ready option:

  1. Existing Mercator-authorized Tempo Wallet access key.
  2. Existing Mercator local disk wallet.
  3. Accounts SDK onboarding: connect Tempo Wallet when selected, otherwise create a local wallet.

| Runtime | Paid-request path | Session behavior | | --- | --- | --- | | Local disk wallet | mercator submit | Uses Mercator-owned Accounts SDK storage | | Tempo Wallet | mercator submit | Uses a scoped access key authorized through Accounts | | OpenClaw | Native mpp_fetch | Uses official openclaw-mpp integration | | Hermes | Native mpp_fetch | Uses official hermes-mpp integration |

Mercator requires neither the Tempo Wallet CLI nor the MPPX CLI. An unfunded wallet opens the Mercator card onramp with its address selected.

OpenClaw and Hermes setup:

  • Installs or verifies the official openclaw-mpp or hermes-mpp integration.
  • Preserves existing Hermes allowed origins before adding Mercator.

Wallet onboarding

Run wallet setup separately:

mercator wallet
mercator wallet --wallet tempo
mercator wallet --wallet local
mercator wallet fund

Tempo Wallet authorization opens the Accounts SDK device flow and stores only its Mercator access key locally. Local-wallet private material and connected-wallet access keys share the Accounts SDK filesystem store at ~/.mercator/wallet.json, secured with user-only file permissions.

mercator wallet fund opens Mercator's card onramp with the connected wallet address selected. If no wallet is connected, it prints the exact mercator wallet --wallet ... setup command instead.

Paid job submission

flowchart LR
    MCP["MCP: discover + quote"] --> REST["POST /v1/jobs"]
    REST --> PAYMENT["Mercator wallet"]
    PAYMENT --> POLL["MCP or REST: poll result"]

Recommended path:

  • Use MCP for discovery, quoting, and result polling.
  • Use the bounded mercator submit handoff returned by create_job.
  • The REST endpoint offers both tempo/session and tempo/charge.
  • Some MCP harnesses cannot answer the payment-required protocol error from create_job.
  • Use mpp_fetch in OpenClaw or Hermes.
  • Other clients use the same Mercator wallet created during setup.

Diagnostics

doctor performs read-only checks:

  • MCP transport.
  • Six-tool contract.
  • Free service discovery.
  • Unsigned Mercator session challenge.
  • Local wallet session capability.

Funding is reported separately from session capability. Paid execution remains not_verified.

Uninstall

mercator uninstall --client codex
mercator uninstall --client openclaw --client hermes
mercator uninstall --dry-run
mercator uninstall

Uninstall behavior:

  • Removes only the mercator MCP entry and installer-managed Codex guidance.
  • Preserves other MCP servers and user instructions.
  • Preserves wallets, keys, balances, sessions, and shared MPP plugins.
  • --dry-run previews removal.
  • VS Code removal covers the default user profile; use MCP: Open User Configuration for other profiles.

Command discovery

mercator clients
mercator --help
mercator --llms

The CLI uses Incur for validated options, generated help, machine-readable manifests, structured errors, shell completions, and agent integrations.