Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.5.0

- Pin `@zkp2p/sdk` 0.16.0 for the stable CLI release. The Cash MCP tools
use `peer.sell` for deposits, tracking, withdrawals and Relay source routing.
- Update the MCP launcher and packaged skill to use `peer-protocol-cli@0.5.0`.

## 0.5.0-rc.0

Release candidate on the npm `rc` tag; `latest` stays 0.4.1 during the soak.
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ The package is `peer-protocol-cli`; do not install the unrelated unscoped
`peer-cli` package.

```bash
npm install --global peer-protocol-cli@0.4.1
npm install --global peer-protocol-cli@0.5.0
peer --help
```

Run without a global install:

```bash
npx -y peer-protocol-cli@0.4.1 quote --from USD --amount 100 --platform wise
npx -y peer-protocol-cli@0.5.0 quote --from USD --amount 100 --platform wise
```

Successful output is JSON by default. Errors always use the canonical JSON
Expand Down Expand Up @@ -73,7 +73,7 @@ The current tool counts are generated in `agents/runtime-manifest.json`.
"command": "npx",
"args": [
"-y",
"peer-protocol-cli@0.4.1",
"peer-protocol-cli@0.5.0",
"mcp",
"--profile",
"read-only"
Expand Down Expand Up @@ -120,16 +120,16 @@ custody boundary are unchanged:
7. `peer_cash_order` / `peer_cash_orders` — resume and inspect orders.
8. `peer_cash_prepare_withdraw` and `peer_cash_prepare_top_up` — prepare a withdrawal or top-up.

After 0.4.1, every one of these tools runs on `peer.sell` from `@zkp2p/sdk`
`0.16.0-rc.2`, including the Relay source tools. `peer_cash_capabilities` no
Every one of these tools runs on `peer.sell` from `@zkp2p/sdk`
`0.16.0`, including the Relay source tools. `peer_cash_capabilities` no
longer takes `includeRelaySources`; call `peer_cash_source_capabilities`
instead. A payee handle that does not exist on its platform fails with
`PAYEE_NOT_FOUND`, which is not retryable.

`peer_cash_prepare_access_policy` is a retired step. After 0.4.1 it answers `accessPolicyRequired: false` with no transaction, because the merchant group it configured was retired in `@zkp2p/sdk` 0.15. Version 0.4.1 still returns a transaction from it: skip that step, finalize the confirmed create-deposit receipt and persist the deposit ID, even when the plan reports `accessPolicyRequired`.
`peer_cash_prepare_access_policy` is a retired step. It answers `accessPolicyRequired: false` with no transaction, because the merchant group it configured was retired in `@zkp2p/sdk` 0.15. Version 0.4.1 still returns a transaction from it: skip that step, finalize the confirmed create-deposit receipt and persist the deposit ID, even when the plan reports `accessPolicyRequired`.

Base USDC amounts are decimal strings in 6-decimal base units: 100 USDC is
`100000000`. For pricing, read the corridor’s `pricing.kind` in `peer_cash_capabilities`. In the published CLI 0.4.1, Alipay/CNY and UPI/INR fix the rate at deposit creation. Other supported corridors bind the oracle rate when a buyer signals an intent. After 0.4.1, every corridor binds the oracle rate when a buyer signals an intent.
`100000000`. For pricing, read the corridor’s `pricing.kind` in `peer_cash_capabilities`. Every corridor binds the oracle rate when a buyer signals an intent.

Install the packaged portable skill from
[`skills/peer-cash/SKILL.md`](skills/peer-cash/SKILL.md) when the agent host
Expand Down
4 changes: 2 additions & 2 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ catalogs own enumerations; prose must not duplicate a command inventory.

## MCP

Run `npx -y peer-protocol-cli@0.4.1 mcp --profile <profile>`.
Run `npx -y peer-protocol-cli@0.5.0 mcp --profile <profile>`.

- read-only: generic and Peer Cash reads; no signing or broadcasting
- cash: complete peer_cash_* surface; prepares unsigned plans and never accepts
Expand All @@ -48,7 +48,7 @@ local stdio profiles.
5. peer_cash_finalize after the confirmed createDeposit receipt
6. persist depositId and resume with peer_cash_order. Skip the retired group policy even when the 0.4.1 plan reports accessPolicyRequired.

After 0.4.1, every peer_cash_* tool runs on @zkp2p/sdk peer.sell, including the Relay source tools. peer_cash_prepare_access_policy answers accessPolicyRequired: false with no transaction (the merchant group it configured was retired in @zkp2p/sdk 0.15).
Every peer_cash_* tool runs on @zkp2p/sdk peer.sell, including the Relay source tools. peer_cash_prepare_access_policy answers accessPolicyRequired: false with no transaction (the merchant group it configured was retired in @zkp2p/sdk 0.15).

Base USDC uses 6 decimals. Treat estimates as approximate. Retry read failures
as reads; never retry an uncertain transaction without hash, wallet, and order
Expand Down
2 changes: 1 addition & 1 deletion mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"command": "npx",
"args": [
"-y",
"peer-protocol-cli@0.4.1",
"peer-protocol-cli@0.5.0",
"mcp",
"--profile",
"cash"
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peer-protocol-cli",
"version": "0.5.0-rc.0",
"version": "0.5.0",
"mcpName": "io.github.zkp2p/peer",
"description": "Agent-first CLI and MCP server for the Peer (ZKP2P) protocol and Peer Cash",
"bin": {
Expand Down Expand Up @@ -77,7 +77,7 @@
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"@zkp2p/sdk": "0.16.0-rc.2",
"@zkp2p/sdk": "0.16.0",
"commander": "^14.0.3",
"viem": "^2.55.19",
"zod": "^4.4.3"
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "peer",
"version": "0.4.1",
"version": "0.5.0",
"description": "Operate the Peer protocol and prepare custody-separated Peer Cash transactions through one CLI and MCP server.",
"author": {
"name": "Peer",
Expand Down
2 changes: 1 addition & 1 deletion server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "io.github.zkp2p/peer",
"title": "Peer",
"description": "Read Peer protocol, market, checkout, and Peer Cash data through one MCP server.",
"version": "0.4.1",
"version": "0.5.0",
"websiteUrl": "https://agents.peer.xyz",
"repository": {
"url": "https://github.com/zkp2p/peer-cli",
Expand Down
6 changes: 3 additions & 3 deletions skills/peer-cash/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ broadcasts.
Configure the host to run:

```bash
npx -y peer-protocol-cli@0.4.1 mcp --profile cash
npx -y peer-protocol-cli@0.5.0 mcp --profile cash
```

Keep optional `PEER_CASH_*` values in the host's secret or MCP configuration,
Expand All @@ -38,7 +38,7 @@ without inspecting it and obtaining operator approval.
`createDeposit` receipt.
6. Call `peer_cash_finalize` with the confirmed create-deposit transaction hash.
Skip the retired `peer_cash_prepare_access_policy` step, including when the plan
reports `accessPolicyRequired`. After 0.4.1 it answers that no policy is needed;
reports `accessPolicyRequired`. In 0.5.0 it answers that no policy is needed;
in 0.4.1 its transaction adds a retired group.
7. Persist the returned `depositId`; use `peer_cash_order` to resume.

Expand All @@ -54,7 +54,7 @@ approval and confirmation rules.
- For `TRANSACTION_SUBMISSION_UNKNOWN` or `TRANSACTION_STATUS_UNKNOWN`, inspect
the named hash, wallet activity, and existing orders before any resubmission.
- For `ACCESS_POLICY_CONFIGURATION_FAILED`, resume from the existing deposit ID. Leave the retired policy unset.
- For `PAYEE_NOT_FOUND` (after 0.4.1), the handle does not exist on that
- For `PAYEE_NOT_FOUND`, the handle does not exist on that
platform. Ask for a corrected payee; do not retry the same one.
- Retry `INDEXER_UNAVAILABLE` and `ORACLE_READ_FAILED` only as reads.

Expand Down
Loading