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
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ preview.

## MCP profiles

`peer mcp` requires one of three explicit profiles:
`peer mcp` defaults to `read-only`. Select a different profile with `--profile`:

- `read-only` — default protocol reads plus Peer Cash reads. No signing or
broadcasting.
Expand Down Expand Up @@ -92,7 +92,7 @@ The hosted MCP server exposes only the `read-only` profile over Streamable HTTP:
https://mcp.peer.xyz/mcp
```

Run the same transport yourself with `peer mcp --transport http`. HTTP refuses
Run the same transport yourself with `peer mcp --transport http --profile read-only`. HTTP refuses
the `cash` and `full` profiles; those authority-bearing profiles remain local
stdio processes.

Expand All @@ -118,12 +118,12 @@ custody boundary are unchanged:
6. `peer_cash_finalize` — resolve a confirmed receipt into a durable
`depositId`.
7. `peer_cash_order` / `peer_cash_orders` — resume and inspect orders.
8. `peer_cash_prepare_access_policy`, `peer_cash_prepare_withdraw`, and
`peer_cash_prepare_top_up` — prepare follow-up transactions.
8. `peer_cash_prepare_withdraw` and `peer_cash_prepare_top_up` — prepare a withdrawal or top-up.

Version 0.4.1 still exposes `peer_cash_prepare_access_policy`. Skip this legacy step for new orders. Finalize the confirmed create-deposit receipt and persist the deposit ID, even when the plan reports `accessPolicyRequired`. Applying the old policy would add a retired group to the deposit.

Base USDC amounts are decimal strings in 6-decimal base units: 100 USDC is
`100000000`. Estimates are not locked quotes; the binding Chainlink rate
resolves when a buyer fills.
`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.

Install the packaged portable skill from
[`skills/peer-cash/SKILL.md`](skills/peer-cash/SKILL.md) when the agent host
Expand Down Expand Up @@ -159,6 +159,8 @@ for credentials.

## Command families

Version 0.4.1 bundles a protocol SDK that targets OrchestratorV3. Its historical intent commands remain visible, but new production intents require an OrchestratorV4-capable client. See the [protocol SDK reference](https://docs.peer.xyz/developer/sdk/client-reference).

The CLI covers:

- quotes, payee registration, and payee-hash resolution
Expand Down
3 changes: 1 addition & 2 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ local stdio profiles.
3. peer_cash_prepare
4. host approval and ordered wallet submission
5. peer_cash_finalize after the confirmed createDeposit receipt
6. peer_cash_prepare_access_policy once per accessPolicyPaymentMethods hash
7. persist depositId and resume with peer_cash_order
6. persist depositId and resume with peer_cash_order. Skip the retired group policy even when the 0.4.1 plan reports accessPolicyRequired.

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
14 changes: 6 additions & 8 deletions skills/peer-cash/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@ without inspecting it and obtaining operator approval.
Use `peer_cash_source_capabilities` and `peer_cash_quote_source` before a
non-Base source route; track submitted Relay work with
`peer_cash_relay_status` rather than resubmitting an uncertain transfer.
2. Call `peer_cash_estimate`. State that the Chainlink estimate is approximate;
the binding rate resolves when a buyer fills.
2. Call `peer_cash_estimate` and show the amount as approximate. Use the returned
`binding` and the corridor’s capability pricing to identify when the rate locks.
3. Call `peer_cash_prepare` with the Base USDC amount as a 6-decimal base-unit
string and the required receive legs. For example, 100 USDC is `100000000`.
4. Show the ordered unsigned transaction plan, destination, value, calldata
purpose, and expected effect. Obtain explicit approval for that exact plan.
5. Have the host wallet submit each transaction in order and confirm the
`createDeposit` receipt.
6. Call `peer_cash_finalize` with the confirmed transaction hash. For every
hash in `accessPolicyPaymentMethods`, call `peer_cash_prepare_access_policy`
with the returned `depositId` and that hash, then approve and submit the
transaction with the depositor wallet. An empty list requires no policy.
6. Call `peer_cash_finalize` with the confirmed create-deposit transaction hash.
Skip the legacy `peer_cash_prepare_access_policy` step, including when the plan
reports `accessPolicyRequired`. That transaction adds a retired group.
7. Persist the returned `depositId`; use `peer_cash_order` to resume.

Use `peer_cash_orders` to list a maker's orders,
Expand All @@ -53,8 +52,7 @@ approval and confirmation rules.
be indexer lag.
- 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`, repair the policy step; the deposit
already exists.
- For `ACCESS_POLICY_CONFIGURATION_FAILED`, resume from the existing deposit ID. Leave the retired policy unset.
- Retry `INDEXER_UNAVAILABLE` and `ORACLE_READ_FAILED` only as reads.

If evidence cannot prove whether a mutation occurred, stop and require wallet
Expand Down
Loading