pp-mercury
Original:🇺🇸 English
Translated
Printing Press CLI for Mercury. Streamline financial tasks with secure account management and transaction processing. Enables user registration,...
10installs
Added on
NPX Install
npx skill4agent add mvanhorn/printing-press-library pp-mercuryTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Mercury — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
mercury-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install mercury --cli-only - Verify:
mercury-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.23+):
npxbash
go install github.com/mvanhorn/printing-press-library/library/payments/mercury/cmd/mercury-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATHUnique Capabilities
These capabilities aren't available in any other tool for this API.
-
— Builds a read-only approval plan with body, idempotency key, dry-run command, and execute command before payment or transfer writes.
workflow payment-planAgents can prepare exact write commands without moving money.bashmercury-pp-cli workflow payment-plan --kind transfer --source-account-id acct_src --destination-account-id acct_dst --amount 25 --agent -
— Syncs supported Mercury resources into a local SQLite store for offline search and analytics.
workflow archiveReduces API calls and gives agents repeatable context.bashmercury-pp-cli workflow archive --agent -
— Emits machine-readable command metadata for agents and MCP hosts.
agent-contextImproves autonomous command selection and reduces context waste.bashmercury-pp-cli agent-context --agent
Command Reference
account — Manage bank accounts
- — Get account by ID
mercury-pp-cli account <accountId>
accounts — Manage bank accounts
- — Retrieve a paginated list of accounts. Supports cursor-based pagination with limit, order, start_after, and...
mercury-pp-cli accounts
ar — Manage ar
- — Cancel an invoice. This action cannot be undone.
mercury-pp-cli ar cancel-invoice - — Create a new customer for the organization
mercury-pp-cli ar create-customer - — Create a new invoice for the organization
mercury-pp-cli ar create-invoice - — Delete a customer. This action cannot be undone.
mercury-pp-cli ar delete-customer - — Retrieve attachment details including download URL
mercury-pp-cli ar get-attachment - — Retrieve details of a specific customer by their ID
mercury-pp-cli ar get-customer - — Retrieve details of an invoice by its ID
mercury-pp-cli ar get-invoice - — Downloads a PDF file for the specified invoice. The response includes a Content-Disposition header set to...
mercury-pp-cli ar get-invoice-pdf - — Retrieve a paginated list of customers. Supports cursor-based pagination with limit, order, start_after, and...
mercury-pp-cli ar list-customers - — Retrieve a list of all attachments for a specific invoice
mercury-pp-cli ar list-invoice-attachments - — Retrieve a paginated list of invoices. Supports cursor-based pagination with limit, order, start_after, and...
mercury-pp-cli ar list-invoices - — Update an existing customer
mercury-pp-cli ar update-customer - — Update an existing invoice
mercury-pp-cli ar update-invoice
books — Manage organization books
- — Delete a specific Chart of Accounts template.
mercury-pp-cli books delete-agent-coa-template - — Delete an existing ledger within an agent-owned Chart of Accounts template.
mercury-pp-cli books delete-agent-ledger-template - — Bulk delete journal entries
mercury-pp-cli books delete-journal-entries - — Retrieve details of a specific Chart of Accounts template.
mercury-pp-cli books get-agent-coa-template - — Retrieve a paginated list of all default and agent-owned Chart of Accounts templates. These templates can be used...
mercury-pp-cli books get-agent-coa-templates - — List all journal entries
mercury-pp-cli books get-journal-entries - — Retrieve a Journal Entry
mercury-pp-cli books get-journal-entry - — Create a new agent-owned Chart of Accounts template. These templates can be used when creating new Books instances...
mercury-pp-cli books post-agent-coa-templates - — Create a new ledger within an agent-owned Chart of Accounts template.
mercury-pp-cli books post-agent-ledger-templates - — Create multiple Journal Entries
mercury-pp-cli books post-journal-entries - — Update an existing ledger within an agent-owned Chart of Accounts template.
mercury-pp-cli books put-agent-ledger-template - — Bulk update journal entries
mercury-pp-cli books put-journal-entries
cards — Manage cards
- — Issue a new virtual card.
mercury-pp-cli cards create - — Retrieve details of a specific card by its ID.
mercury-pp-cli cards get - — Retrieve a paginated list of cards.
mercury-pp-cli cards list - — Update a card's nickname or spending limits.
mercury-pp-cli cards update
categories — Manage expense categories
- — Create a new custom expense category for the organization.
mercury-pp-cli categories create-category - — Retrieve a paginated list of all available custom expense categories for the organization. Supports cursor-based...
mercury-pp-cli categories list
credit — Manage credit accounts
- — Retrieve a list of all credit accounts for the organization.
mercury-pp-cli credit
events — Manage API events
- — Get all events
mercury-pp-cli events get - — Get event by ID
mercury-pp-cli events get-eventid
organization — Organization information
- — Retrieve information about your organization including EIN, legal business name, and DBAs.
mercury-pp-cli organization
recipient — Manage payment recipients
- — Retrieve details of a specific recipient by ID
mercury-pp-cli recipient get - — Edit information about a specific recipient
mercury-pp-cli recipient update
recipients — Manage payment recipients
- — Create a new recipient for making payments
mercury-pp-cli recipients create - — Retrieve a paginated list of all recipients. Use cursor parameters (start_after, end_before) for pagination.
mercury-pp-cli recipients get - — Retrieve a paginated list of all recipient tax form attachments across all recipients in the organization. Use...
mercury-pp-cli recipients list-attachments
request-send-money — Manage request send money
- — Get send money approval request by ID
mercury-pp-cli request-send-money get-send-money-approval-request - — Retrieve a paginated list of send money approval requests for the authenticated organization. Supports filtering by...
mercury-pp-cli request-send-money list-send-money-approval-requests
safes — Manage SAFE (Simple Agreement for Future Equity) requests
- — Retrieve a specific SAFE request by its ID.
mercury-pp-cli safes get-request - — Retrieve all SAFE (Simple Agreement for Future Equity) requests for your organization.
mercury-pp-cli safes get-requests
statements — Download account statements
transaction — Manage transactions
- — Retrieve a single transaction by its ID. Returns full transaction details including attachments, check images, and...
mercury-pp-cli transaction get-by-id - — Update the note and/or category of an existing transaction. Use null values to clear existing data.
mercury-pp-cli transaction update
transactions — Manage transactions
- — Retrieve a paginated list of all transactions across all accounts. Supports advanced filtering by date ranges,...
mercury-pp-cli transactions
transfer — Manage transfer
- — Transfer funds between two accounts within the same organization. Supports transfers between depository accounts...
mercury-pp-cli transfer
treasury — Manage treasury accounts and transactions
- — Retrieve a paginated list of all treasury accounts associated with the authenticated organization. Use cursor...
mercury-pp-cli treasury
users — Manage organization team members
- — Get all users
mercury-pp-cli users get - — Get user by ID
mercury-pp-cli users get-userid
webhooks — Manage webhooks
- — Register a new webhook endpoint to receive event notifications
mercury-pp-cli webhooks create - — Delete a webhook endpoint
mercury-pp-cli webhooks delete - — Retrieve a paginated list of all webhook endpoints for your organization. Supports filtering by status.
mercury-pp-cli webhooks get - — Retrieve details of a specific webhook endpoint by ID
mercury-pp-cli webhooks get-webhookendpointid - — Update the configuration of an existing webhook endpoint. A webhook that has been disabled due to consecutive...
mercury-pp-cli webhooks update
Finding the right command
When you know what you want to do but not which command does it, ask the CLI directly:
bash
mercury-pp-cli which "<capability in your own words>"which02--helpAuth Setup
Store your access token:
bash
mercury-pp-cli auth set-token YOUR_TOKEN_HEREOr set as an environment variable.
MERCURY_BEARER_AUTHRun to verify setup.
mercury-pp-cli doctorAgent Mode
Add to any command. Expands to: .
--agent--json --compact --no-input --no-color --yes-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
--selectbashmercury-pp-cli account mock-value --agent --select id,name,status -
Previewable —shows the request without sending
--dry-run -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Explicit retries — useonly when an already-existing create should count as success, and
--idempotentonly when a missing delete target should count as success--ignore-missing
Response envelope
Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}Parse for data and to know whether it's live or local. A human-readable summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
.results.meta.sourceN results (live)Agent Feedback
When you (or the agent) notice something off about this CLI, record it:
mercury-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
mercury-pp-cli feedback --stdin < notes.txt
mercury-pp-cli feedback list --json --limit 10Entries are stored locally at . They are never POSTed unless is set AND either is passed or . Default behavior is local-only.
~/.mercury-pp-cli/feedback.jsonlMERCURY_FEEDBACK_ENDPOINT--sendMERCURY_FEEDBACK_AUTO_SEND=trueWrite what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
Output Delivery
Every command accepts . The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
--deliver <sink>| Sink | Effect |
|---|---|
| Default; write to stdout only |
| Atomically write output to |
| POST the output body to the URL ( |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
Named Profiles
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
mercury-pp-cli profile save briefing --json
mercury-pp-cli --profile briefing account mock-value
mercury-pp-cli profile list --json
mercury-pp-cli profile show briefing
mercury-pp-cli profile delete briefing --yesExplicit flags always win over profile values; profile values win over defaults. lists all available profiles under so introspecting agents discover them at runtime.
agent-contextavailable_profilesExit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 4 | Authentication required |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
Argument Parsing
Parse :
$ARGUMENTS- Empty, , or
help→ show--helpoutputmercury-pp-cli --help - Starts with → ends with
install→ MCP installation; otherwise → see Prerequisites abovemcp - Anything else → Direct Use (execute as CLI command with )
--agent
MCP Server Installation
- Install the MCP server:
bash
go install github.com/mvanhorn/printing-press-library/library/payments/mercury/cmd/mercury-pp-mcp@latest - Register with Claude Code:
bash
claude mcp add mercury-pp-mcp -- mercury-pp-mcp - Verify:
claude mcp list
Direct Use
- Check if installed: If not found, offer to install (see Prerequisites at the top of this skill).
which mercury-pp-cli - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the flag:
--agentbashmercury-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help: .
mercury-pp-cli <command> --help