@aifinpay/skill 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aifinpay",
|
|
3
3
|
"description": "Payment rail for AI agents: pay for x402 APIs or charge agents for yours.",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.1",
|
|
5
5
|
"author": { "name": "AiFinPay Support" },
|
|
6
6
|
"homepage": "https://aifinpay.io",
|
|
7
7
|
"repository": "https://github.com/AiFinPay/skill",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 2.10.1 — restart after env changes, AIFINPAY_HOME on init
|
|
2
|
+
|
|
3
|
+
- Payer guide: owner limits are read when the MCP server starts, so after the
|
|
4
|
+
env changes the client must restart the `aifinpay` server; `agent_reload`
|
|
5
|
+
re-reads only the keystore. Until the restart `payment_setup_status`
|
|
6
|
+
reports `payments_enabled: false`, which the agent reports as expected and
|
|
7
|
+
waits on instead of treating as a refusal.
|
|
8
|
+
- Payer guide: step 3 runs the init command exactly as `next_step` gives it,
|
|
9
|
+
keeping the `AIFINPAY_HOME=…` prefix for a server with its own wallet
|
|
10
|
+
directory, and never replaces a keystore it cannot open.
|
|
11
|
+
- Release target MCP 2.11.1; published baseline checked 2026-10-19
|
|
12
|
+
(MCP 2.11.0, Node SDK 2.8.0).
|
|
13
|
+
|
|
1
14
|
## 2.10.0 — first payment in five steps
|
|
2
15
|
|
|
3
16
|
- Payer guide: a fresh install reaches its first payment in five steps —
|
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ any client that loads `SKILL.md`).
|
|
|
9
9
|
| `aifinpay` | Paying — agent buys x402-gated API access | `agent/skills/aifinpay/SKILL.md` |
|
|
10
10
|
| `aifinpay-merchant` | Earning — merchant charges agents per request | `agent/skills/aifinpay-merchant/SKILL.md` |
|
|
11
11
|
|
|
12
|
-
Version **2.10.
|
|
13
|
-
Release target: MCP **2.11.
|
|
12
|
+
Version **2.10.1** describes the first-payment path for a fresh agent.
|
|
13
|
+
Release target: MCP **2.11.1**, Node SDK **2.8.0**, Python **2.7.0**.
|
|
14
14
|
Reporting release target: Node gate **0.4.0**, Python gate **0.1.3**.
|
|
15
15
|
The merchant guide describes explicit opt-in observations, consent, queue loss
|
|
16
16
|
and producer health using the SDK's reporting v2 contract. It adds no MCP tools
|
|
@@ -6,7 +6,7 @@ description: Pay for x402-gated APIs and sites as an agent (AIFP-1 on an owner-s
|
|
|
6
6
|
wallet, payment history, prepaid quotas and Agent Passport records through
|
|
7
7
|
the AiFinPay MCP server or SDK.
|
|
8
8
|
license: MIT
|
|
9
|
-
version: 2.10.
|
|
9
|
+
version: 2.10.1
|
|
10
10
|
author: AiFinPay Support
|
|
11
11
|
metadata:
|
|
12
12
|
hermes:
|
|
@@ -61,11 +61,11 @@ your language. There is no "install together" scenario.
|
|
|
61
61
|
|
|
62
62
|
## Version and release status
|
|
63
63
|
|
|
64
|
-
Release target: MCP **2.11.
|
|
64
|
+
Release target: MCP **2.11.1**, Node SDK **2.8.0**, Python **2.7.0**.
|
|
65
65
|
This skill describes that coordinated package cohort. Check the installed
|
|
66
66
|
versions before using its additional-network instructions; a release target
|
|
67
67
|
does not establish npm/PyPI publication or production network activation.
|
|
68
|
-
Published baseline checked 2026-10-19: MCP **2.
|
|
68
|
+
Published baseline checked 2026-10-19: MCP **2.11.0**, Node SDK **2.8.0**.
|
|
69
69
|
`payable_fetch` has shipped since MCP 2.2.0, and Base since MCP 2.5.0.
|
|
70
70
|
Published packages remain usable within their documented capabilities.
|
|
71
71
|
|
|
@@ -194,21 +194,32 @@ step — no key handling of your own, no funding of an ephemeral address.
|
|
|
194
194
|
(`persistent` or ephemeral), `payments_enabled`, which owner limits are
|
|
195
195
|
set, the balance when the RPC answers, `ready`, and `next_step` — the one
|
|
196
196
|
thing still missing. Follow `next_step`; do not skip ahead.
|
|
197
|
-
3. **Persistent wallet.** If `wallet.persistent` is false, run
|
|
198
|
-
`npx @aifinpay/mcp init
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
3. **Persistent wallet.** If `wallet.persistent` is false, run the exact
|
|
198
|
+
command in `next_step` (it is `npx @aifinpay/mcp init`, prefixed with
|
|
199
|
+
`AIFINPAY_HOME=…` when the server uses its own wallet directory — keep
|
|
200
|
+
that prefix, or the server will not see the keystore). Without a terminal
|
|
201
|
+
init does not prompt: it generates the passphrase, writes the keystore and
|
|
202
|
+
prints one JSON document with `addresses` and an `env` block. Put that
|
|
203
|
+
`env` into the `aifinpay` server entry of the MCP client config (the
|
|
204
|
+
passphrase is only there — the output is a secret, and a second run never
|
|
205
|
+
reprints it), then call `agent_reload`: it reads the keystore and switches
|
|
206
|
+
this server to the persistent wallet. If init answers that a keystore
|
|
207
|
+
already exists and cannot be opened, do not delete or replace it: follow
|
|
208
|
+
its `next_step` and start a new wallet directory. Never fund an ephemeral
|
|
209
|
+
address.
|
|
204
210
|
4. **Fund and enable.** Tell the owner `addresses.evm` and the amount: the
|
|
205
211
|
batch price in the pay chain's native currency plus the gas cap (on
|
|
206
212
|
Polygon, about `0.5 POL` covers one `$0.10` batch plus a `0.3 POL` cap).
|
|
207
213
|
When the owner confirms funding, they add the payment settings from
|
|
208
214
|
"Paying with payable_fetch" below — with their real origin and limits —
|
|
209
|
-
to the same `env
|
|
210
|
-
`
|
|
211
|
-
|
|
215
|
+
to the same `env`. **Limits are read only when the server starts**:
|
|
216
|
+
`agent_reload` re-reads the keystore and nothing else, so after the env
|
|
217
|
+
changes the client has to restart the `aifinpay` MCP server (restart the
|
|
218
|
+
client, or disable and re-enable the server in it). Until that restart
|
|
219
|
+
`payment_setup_status` keeps reporting `payments_enabled: false`; that is
|
|
220
|
+
expected, not a refusal — say so, ask the owner for the restart, and stop.
|
|
221
|
+
After it, `payment_setup_status` reports `ready: true`. Funding, origins
|
|
222
|
+
and limits are the owner's decisions; never choose them yourself.
|
|
212
223
|
5. **Pay.** `payable_fetch({"url":"<origin><path>"})` (add
|
|
213
224
|
`"scope":"merchant"` for a site-wide batch) buys the batch and returns the
|
|
214
225
|
content with the receipt summary. Later requests reuse the batch.
|
|
@@ -238,9 +249,10 @@ into ratersapp.com", "купи доступ до цього сайту". Handle
|
|
|
238
249
|
persistent wallet first, then the owner's funding and environment block
|
|
239
250
|
with this origin in `AIFINPAY_GATEWAY_ORIGINS` (and
|
|
240
251
|
`AIFINPAY_GATEWAY_PATH_MODE=direct` when the 402 comes from the site
|
|
241
|
-
itself) — and stop until the owner has done their part.
|
|
242
|
-
|
|
243
|
-
|
|
252
|
+
itself) — and stop until the owner has done their part. Env changes take
|
|
253
|
+
effect only after the client restarts the `aifinpay` server; `agent_reload`
|
|
254
|
+
does not read them. Adding a site, raising a limit and funding the wallet
|
|
255
|
+
are the owner's decisions; never make them on your own initiative.
|
|
244
256
|
5. **Buy.** `payable_fetch({"url":"<origin><path>","scope":"merchant"})`, where
|
|
245
257
|
the path is what the owner wants to read, or a standard resource from the
|
|
246
258
|
discovery document.
|
|
@@ -4,7 +4,7 @@ description: Configure an HTTP 402 gate for agent access to a website or API,
|
|
|
4
4
|
with owner-selected routes, verified payouts and explicitly accepted EVM
|
|
5
5
|
networks. Agents settle from their own wallets; the merchant receives 99%.
|
|
6
6
|
license: MIT
|
|
7
|
-
version: 2.10.
|
|
7
|
+
version: 2.10.1
|
|
8
8
|
author: AiFinPay Support
|
|
9
9
|
metadata:
|
|
10
10
|
hermes:
|
|
@@ -155,7 +155,7 @@ Gate 0.3.3 source adds `instructions_url` (payer skill),
|
|
|
155
155
|
links to maintained public instructions, not stored wallet or receipt data.
|
|
156
156
|
Existing sites must upgrade/redeploy gate to emit those new fields.
|
|
157
157
|
|
|
158
|
-
Release target: MCP **2.11.
|
|
158
|
+
Release target: MCP **2.11.1**, Node SDK **2.8.0**, Python **2.7.0**.
|
|
159
159
|
This coordinated target does not establish publication or reporting rollout.
|
|
160
160
|
Those clients
|
|
161
161
|
reuse the signed v1.4 payment kernel for nine EVM network descriptors; network
|
package/package.json
CHANGED