@aifinpay/mcp 2.5.0 → 2.7.0

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.
Files changed (57) hide show
  1. package/README.md +111 -20
  2. package/dist/config.d.ts +6 -2
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +39 -4
  5. package/dist/config.js.map +1 -1
  6. package/dist/native-price.d.ts +1 -1
  7. package/dist/native-price.d.ts.map +1 -1
  8. package/dist/native-price.js +3 -3
  9. package/dist/native-price.js.map +1 -1
  10. package/dist/pay-chains.d.ts +5 -4
  11. package/dist/pay-chains.d.ts.map +1 -1
  12. package/dist/pay-chains.js +29 -28
  13. package/dist/pay-chains.js.map +1 -1
  14. package/dist/payment-identity.d.ts +17 -0
  15. package/dist/payment-identity.d.ts.map +1 -0
  16. package/dist/payment-identity.js +75 -0
  17. package/dist/payment-identity.js.map +1 -0
  18. package/dist/payment-state.d.ts +2 -1
  19. package/dist/payment-state.d.ts.map +1 -1
  20. package/dist/payment-state.js +52 -17
  21. package/dist/payment-state.js.map +1 -1
  22. package/dist/server.d.ts +1 -1
  23. package/dist/server.d.ts.map +1 -1
  24. package/dist/server.js +3 -2
  25. package/dist/server.js.map +1 -1
  26. package/dist/tools/agent-claim-self.d.ts +3 -3
  27. package/dist/tools/agent-claim-self.d.ts.map +1 -1
  28. package/dist/tools/agent-claim-self.js +65 -88
  29. package/dist/tools/agent-claim-self.js.map +1 -1
  30. package/dist/tools/agent-history.d.ts +0 -1
  31. package/dist/tools/agent-history.d.ts.map +1 -1
  32. package/dist/tools/agent-history.js +51 -52
  33. package/dist/tools/agent-history.js.map +1 -1
  34. package/dist/tools/agent-quota.d.ts.map +1 -1
  35. package/dist/tools/agent-quota.js +42 -11
  36. package/dist/tools/agent-quota.js.map +1 -1
  37. package/dist/tools/payable-fetch.d.ts.map +1 -1
  38. package/dist/tools/payable-fetch.js +156 -57
  39. package/dist/tools/payable-fetch.js.map +1 -1
  40. package/package.json +6 -6
  41. package/skills/SKILL.md +165 -43
  42. package/dist/directory.d.ts +0 -55
  43. package/dist/directory.d.ts.map +0 -1
  44. package/dist/directory.js +0 -56
  45. package/dist/directory.js.map +0 -1
  46. package/dist/tools/agent-call.d.ts +0 -68
  47. package/dist/tools/agent-call.d.ts.map +0 -1
  48. package/dist/tools/agent-call.js +0 -129
  49. package/dist/tools/agent-call.js.map +0 -1
  50. package/dist/tools/agent-quote.d.ts +0 -41
  51. package/dist/tools/agent-quote.d.ts.map +0 -1
  52. package/dist/tools/agent-quote.js +0 -81
  53. package/dist/tools/agent-quote.js.map +0 -1
  54. package/dist/tools/pay-with-split.d.ts +0 -93
  55. package/dist/tools/pay-with-split.d.ts.map +0 -1
  56. package/dist/tools/pay-with-split.js +0 -138
  57. package/dist/tools/pay-with-split.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"payable-fetch.js","sourceRoot":"","sources":["../../src/tools/payable-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAA2B,MAAM,iBAAiB,CAAC;AAE5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAiB,MAAM,kBAAkB,CAAC;AAE3D,6EAA6E;AAC7E,iEAAiE;AACjE,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAC;AAG9C,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,qhBAAqhB;QACvhB,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6DAA6D,EAAE;gBACnG,cAAc,EAAE;oBACd,IAA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AE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AACvE,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aifinpay/mcp",
3
- "version": "2.5.0",
3
+ "version": "2.7.0",
4
4
  "mcpName": "io.github.daochild/aifinpay",
5
- "description": "AiFinPay MCP: persistent agent wallets, discovery and owner-enabled verified native Polygon v1.4 payments with durable receipt recovery.",
5
+ "description": "AiFinPay MCP: persistent local agent wallets, owner-configured EVM and Solana payment adapters, durable budgets and receipt recovery.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -28,9 +28,9 @@
28
28
  "scripts": {
29
29
  "sync:skills": "node scripts/sync-skills.mjs",
30
30
  "prebuild": "npm run sync:skills",
31
- "build": "tsc -p tsconfig.json",
31
+ "build": "node scripts/build.mjs",
32
32
  "test": "vitest run",
33
- "prepublishOnly": "npm run build",
33
+ "prepublishOnly": "node scripts/verify-release-inputs.mjs && npm run build && npm test",
34
34
  "lint": "eslint .",
35
35
  "lint:fix": "eslint . --fix",
36
36
  "format": "prettier --write \"**/*.{js,mjs,cjs,jsx,ts,tsx,json,md}\"",
@@ -76,8 +76,8 @@
76
76
  },
77
77
  "bugs": "https://github.com/AiFinPay/sdk/issues",
78
78
  "dependencies": {
79
- "@aifinpay/agent": "^2.3.0",
80
- "@aifinpay/skill": "^2.6.0",
79
+ "@aifinpay/agent": "^2.5.0",
80
+ "@aifinpay/skill": "^2.8.0",
81
81
  "@modelcontextprotocol/sdk": "^1.0.0",
82
82
  "bs58": "^6.0.0",
83
83
  "tweetnacl": "^1.0.3"
package/skills/SKILL.md CHANGED
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: aifinpay
3
- description: Pay for x402-gated APIs and sites as an agent (AIFP-1 on Polygon or Base,
3
+ description: Pay for x402-gated APIs and sites as an agent (AIFP-1 on an owner-selected EVM or accepted Solana network,
4
4
  within owner-set limits) — including when the owner just says "buy access for
5
5
  this site" — link the agent to its owner's AiFinPay dashboard, and read
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.5.0
9
+ version: 2.8.0
10
10
  author: AiFinPay Support
11
11
  metadata:
12
12
  hermes:
@@ -61,20 +61,112 @@ your language. There is no "install together" scenario.
61
61
 
62
62
  ## Version and release status
63
63
 
64
- Released and current: MCP **2.5.0**, Node SDK **2.3.0**, Python **2.3.0**.
65
- Payments are released — `payable_fetch` has shipped since MCP 2.2.0. An older
66
- copy of this skill that calls MCP "read-only" or payments "release pending" is
67
- out of date; follow this one. Install the `latest` release.
64
+ Release target: MCP **2.7.0**, Node SDK **2.5.0**, Python **2.5.0**.
65
+ This skill describes that coordinated package cohort. Check the installed
66
+ versions before using its additional-network instructions; a release target
67
+ does not establish npm/PyPI publication or production network activation.
68
+ Published baseline checked 2026-10-04: MCP **2.5.0**, Node SDK **2.3.2**.
69
+ `payable_fetch` has shipped since MCP 2.2.0, and Base since MCP 2.5.0.
70
+ Published packages remain usable within their documented capabilities.
68
71
 
69
72
  | Surface | Can it pay? |
70
73
  |---|---|
71
- | MCP `@aifinpay/mcp` 2.5.x | Yes — `payable_fetch`, once the owner enables payments; on Polygon (POL) or, with `AIFINPAY_PAY_CHAIN=base`, on Base (ETH); USDC on either with `AIFINPAY_PAY_ASSET=USDC`; `scope: "merchant"` buys a whole site |
72
- | Node `@aifinpay/agent` 2.3.x | Yes — `fetchPaid` with a v14 journal and gas cap; Polygon by default or `v14.chain: "base"`; native POL/ETH (with your own native/USD rate) or USDC (`v14.asset: "USDC"`) |
73
- | Python `aifinpay-agent` 2.3.x | Yes — `agent.fetch_paid(url, allowed_origins=…, max_amount_usd=…, daily_amount_usd=…)`; Polygon by default or `chain="base"`; native POL/ETH (priced independently) or USDC (`asset="USDC"`); recover an unconfirmed payment with `agent.recover_paid(journal_path)` |
74
+ | MCP `@aifinpay/mcp` 2.7.x | `payable_fetch`, only with a persistent wallet and every owner limit set. Polygon is the default; other networks require explicit `AIFINPAY_PAY_CHAIN`. The merchant and backend must authorize and serve that network. `scope: "merchant"` buys a site-wide batch. |
75
+ | Node `@aifinpay/agent` 2.5.x | `fetchPaid` with a v14 journal, gas cap and owner budgets. Select another network with `v14.chain`; select a pinned stablecoin with `v14.asset`. Native payments require an independent native/USD rate. |
76
+ | Python `aifinpay-agent` 2.5.x | `agent.fetch_paid(url, allowed_origins=…, max_amount_usd=…, daily_amount_usd=…)`; use explicit `chain` and the chain's native gas cap for another network, or a pinned stablecoin `asset`. `agent.recover_paid(journal_path)` recovers the original transaction. |
77
+
78
+ The client descriptors below are shared by the target cohort. They do not
79
+ activate a deployment, enroll a merchant or prove a completed payment.
80
+
81
+ | Owner chain name | Chain ID | Native payment and gas | Pinned stablecoin symbols |
82
+ |---|---|---|---|
83
+ | `polygon` | 137 | POL | `USDC`, `USDC.e` |
84
+ | `base` | 8453 | ETH | `USDC` |
85
+ | `optimism` | 10 | ETH | `USDC` |
86
+ | `arbitrum` | 42161 | ETH | `USDC` |
87
+ | `avalanche` | 43114 | AVAX | `USDC`, `USDT` |
88
+ | `bnb` | 56 | BNB | `USDC`, `USDT` |
89
+ | `unichain` | 130 | ETH | `USDC` |
90
+ | `xrplevm` | 1440000 | XRP | None |
91
+ | `robinhood` | 4663 | ETH | `USDe`, `USDG` |
92
+
93
+ Use the exact symbols and chain names. Token addresses and decimals are pinned
94
+ independently per network; a token with the same symbol at another address is
95
+ not accepted. BNB USDC/USDT and Robinhood USDe use 18 decimals; the other pinned
96
+ stablecoins use 6. USD micro-units remain 6 decimals. The SDK validates exact
97
+ integer `token_settlement` amounts, approval, signed gross and every split leg;
98
+ never scale, round or edit quote fields yourself.
99
+
100
+ Read the selected issuer's `/api/payment-capabilities` and the merchant's
101
+ discovery/quote. A new network also requires the merchant's explicit accepted
102
+ network set, verified payout, a served deployment and a working verifier/rate.
103
+ If the backend refuses a network, retain the refusal and ask the owner to
104
+ resolve readiness; do not switch networks or construct a manual payment.
105
+ The Solana source adapter in this target cohort remains unavailable while its
106
+ canonical deployment is disabled. NEAR, Aptos and current Casper payment
107
+ executors are outside this cohort.
108
+ Historical BOT is not an alias for Robinhood. Wallet derivation on a network
109
+ does not establish payment support.
110
+
111
+ ## Solana source integration and activation status
112
+
113
+ The target cohort adds native SOL and accepted classic SPL transaction, receipt
114
+ and recovery adapters using the existing v1.4 program/IDL. The checked
115
+ `@aifinpay/deployments@1.1.3` mainnet and devnet records are disabled. Installing
116
+ this cohort does not override that gate. Do not send a direct transaction to
117
+ work around a refused quote or unavailable payment capability. Mainnet also
118
+ requires governance acceptance; actual funded end-to-end acceptance remains
119
+ separate from source tests.
120
+
121
+ After a deployment is accepted and served, the owner explicitly selects Solana
122
+ and its network. The environment independently binds mainnet to live/prod and
123
+ devnet to dev; a quote cannot select the network. Example owner configuration
124
+ for that future accepted mainnet route (limits are examples, not permission):
125
+
126
+ ```json
127
+ {
128
+ "AIFINPAY_PAY_CHAIN": "solana",
129
+ "AIFINPAY_SOLANA_NETWORK": "mainnet",
130
+ "AIFINPAY_MODE": "live",
131
+ "AIFINPAY_PAY_ASSET": "SOL",
132
+ "AIFINPAY_MAX_FEE_LAMPORTS": "10000000"
133
+ }
134
+ ```
135
+
136
+ Keep the existing enabled-payments, origin, per-payment and daily USD limits.
137
+ Use the existing local Solana identity, not an EVM address. Configure an
138
+ owner-trusted Solana RPC with `AIFINPAY_RPC_URL`. The fee limit is an integer
139
+ number of lamports (1 SOL = 1,000,000,000 lamports) and covers transaction fees
140
+ and required nonce/token account rent; it is not a POL/ETH gas cap. Keep enough
141
+ SOL for these costs even when paying in an accepted SPL asset. The SDK refuses
142
+ missing fee/rent estimates and unsupported mints or decimals. Token2022 is not
143
+ supported by this program. Devnet assets require separate accepted mint pins.
144
+
145
+ Node selects the family with `solanaV14: { environment, network, asset,
146
+ maxFeeLamports, onPrepared }`, preserving the existing EVM `v14` options. Do not
147
+ provide both family options. Python uses `chain="solana"`, `environment`,
148
+ `solana_network` and `max_fee_lamports` alongside its existing allowed origins,
149
+ journal and USD caps. Maintain a private persistent journal and the SDK's
150
+ required prepared-transaction callback; do not remove persistence to make a
151
+ payment proceed.
152
+
153
+ Before requesting a Solana quote, the SDK durably retains the exact owner-signed
154
+ authorization and request identity. After a timeout or restart, resume that same
155
+ admission; do not generate a fresh nonce while its outcome is unknown. An expired
156
+ authorization can reconcile an existing admission but cannot authorize a new
157
+ one. Keep issued-quote evidence separate from a prepared transaction: quote
158
+ expiry alone does not prove a refund of a backend reservation.
159
+
160
+ The signed Solana transaction and its base58 signature are saved before
161
+ broadcast. A timeout, expired blockhash or missing RPC result does not permit
162
+ a second payment: retain the unresolved reservation and recover the same
163
+ transaction/receipt. Case-sensitive payer/mint/program/network identity must
164
+ match throughout quote, journal, receipt and history. An on-chain nonce marker
165
+ or event log alone does not prove a valid paid request.
74
166
 
75
167
  # AiFinPay agent workflow
76
168
 
77
- Use the tools actually returned by MCP tools/list. MCP 2.5.0 exposes
169
+ Use the tools actually returned by MCP tools/list. MCP 2.7.0 exposes
78
170
  agent_address, agent_reload, agent_claim_self, agent_history, agent_quota,
79
171
  agent_passport_resolve, settlement_routes, settlement_invoice and
80
172
  deployment_info; `payable_fetch` appears when the owner has enabled payments.
@@ -99,7 +191,8 @@ into ratersapp.com", "купи доступ до цього сайту". Handle
99
191
  $0.10 for 200 standard requests), that it covers every path on the origin,
100
192
  and how it drains — each request costs its own listed `unit_price_usd`, so
101
193
  the same $0.10 is 200 standard or 20 premium requests in any mix. Gas is
102
- separate, in POL. Use the display rules in "Transaction display" below.
194
+ separate, in the selected network's native currency. Use the display rules
195
+ in "Transaction display" below.
103
196
  4. **Check readiness.** `payable_fetch` must be in your tools and the origin
104
197
  must be in `AIFINPAY_GATEWAY_ORIGINS`; the tool names a refused origin. If
105
198
  either is missing, show the owner the exact change — the environment block
@@ -154,34 +247,51 @@ fund its EVM address on Polygon with POL, or with USDC plus some POL. Funding a
154
247
  unlimited spend authority. Use the owner's actual approved limits and origins,
155
248
  then call `payable_fetch({"url":"https://merchant.example/api/data"})`.
156
249
 
157
- To pay on **Base**, the owner sets `"AIFINPAY_PAY_CHAIN": "base"` and the gas
158
- cap in ETH as `"AIFINPAY_MAX_GAS"` (e.g. `"0.0002"`; one settlement's worst
159
- case including the L1 data fee is typically well under 0.0001 ETH).
160
- `AIFINPAY_MAX_GAS_POL` is refused on Base rather than read as ETH. The wallet's
161
- EVM address is the same on every chain: fund it with ETH **on Base**, not on
162
- Ethereum mainnet. A merchant whose quote names another chain is refused, never
163
- paid on a different chain; only the owner changes the chain. A payment pending
164
- on one chain is recovered only with that chain configured.
165
-
166
- It supports GET resources and AIFP-1 v1.4 payments on Polygon (POL or USDC) and
167
- Base (ETH or USDC). It verifies
250
+ For another network, the owner sets `AIFINPAY_PAY_CHAIN` to an exact name in
251
+ the table and `AIFINPAY_MAX_GAS` in its native currency. For Base, for example,
252
+ the currency is ETH; the owner must choose a cap that covers the current
253
+ worst-case estimate. `AIFINPAY_MAX_GAS_POL` is refused outside Polygon rather
254
+ than interpreted as another currency. Fund the same EVM address **on the
255
+ selected network** with its native currency for gas and the selected asset
256
+ for the batch. A quote for another network is refused; only the owner changes
257
+ the network or limits.
258
+
259
+ Stablecoin payments budget approval and settlement together. Base, Optimism
260
+ and Unichain include L1 data and operator fees in the worst-case gas estimate;
261
+ an unavailable required fee read stops payment before signing. Arbitrum and
262
+ Robinhood use the Nitro estimate that already includes parent-chain data and
263
+ do not add that fee twice. A refusal never authorizes raising a gas cap.
264
+
265
+ It supports GET resources and authorized AIFP-1 v1.4 payments on the selected
266
+ supported EVM network. It verifies
168
267
  the quote, price, deployment, signer and receipt, saves the transaction before
169
268
  broadcasting, and reuses the purchased batch. No custom merchant script is
170
269
  needed. Other protocol/version/asset paths fail closed.
171
270
 
172
- A pending result retains the original transaction. Retrying recovers its receipt;
173
- do not delete its journal, create a replacement wallet or switch contract versions.
174
- Prepared-but-unbroadcast/reverted transactions and stale process locks require
175
- owner reconciliation. Raw transactions and receipt JWTs remain private.
271
+ A pending result retains the original signed transaction and network.
272
+ Retrying recovers its receipt without sending a replacement transaction.
273
+ Unknown broadcasts keep their budget reservation indefinitely; confirmed
274
+ spend is never refunded by a later receipt or HTTP failure. Daily confirmed
275
+ spend uses a rolling 24-hour window. Unresolved access stays guarded even if
276
+ the owner later changes networks. Use one shared local filesystem for the
277
+ wallet's ledger/journal across local processes; this is not a multi-host lock.
278
+ Do not delete journals, remove an unknown lock, replace a wallet, bypass a
279
+ reservation or downgrade with unresolved state. Reconcile with the original
280
+ transaction and verified receipt/revert evidence first. A legacy journal
281
+ without its network can be adopted only when actual signed bytes match the
282
+ owner-selected chain, payer, pinned target and exact call. Insufficient
283
+ evidence requires manual receipt reconciliation. Quote signing expiry does
284
+ not itself require a second settlement. Raw transactions and receipt JWTs
285
+ remain private.
176
286
 
177
287
  ### Network access
178
288
 
179
289
  In a sandbox that allowlists outbound hosts, allow `api.aifinpay.io` and an RPC
180
- for the pay chain (Polygon, or Base: `mainnet.base.org` unless the owner set
181
- `AIFINPAY_RPC_URL`). USDC payments need nothing else. For the independent
182
- native/USD check MCP reads Chainlink on the pay chain over that RPC (POL/USD on
183
- Polygon since 2.3.0, ETH/USD on Base since 2.5.0), then `api.coinbase.com`, then
184
- `api.coingecko.com` — one is enough. (MCP 2.2.3 used only `api.coinbase.com`.) If no rate is available,
290
+ for the owner-selected pay chain (`AIFINPAY_RPC_URL` overrides its default).
291
+ Stablecoin payments need the issuer, merchant and that RPC. For the independent
292
+ native/USD check MCP uses the pinned Chainlink feed on Polygon or Base, then
293
+ `api.coinbase.com`, then `api.coingecko.com`. Other networks use those independent
294
+ HTTP price sources. An implausible, stale or future-dated rate is refused. If no rate is available,
185
295
  `payable_fetch` stops before paying and nothing is spent; tell the owner which
186
296
  hosts to allow rather than inventing a workaround. With the Node SDK, pass your
187
297
  own `nativeUsdPrice`: Chainlink POL/USD on Polygon, Coinbase `POL-USD`, or
@@ -196,14 +306,19 @@ agent's balance, payments and receipts, and can set a daily-spend email alert,
196
306
  at https://dash.aifinpay.io → My Agents:
197
307
 
198
308
  - **MCP:** the owner clicks **Claim via MCP**, gets a one-time URL and gives it
199
- to you; call `agent_claim_self({"magic_link_url": "…"})`.
309
+ to you; call `agent_claim_self({"magic_link_url": "…"})`. The owner-selected
310
+ payment family must be bound successfully; the other wallet is best-effort.
311
+ Binding a wallet does not activate a disabled payment network. Use the
312
+ selected wallet's **Fund** panel for available networks and assets.
200
313
  - **Node / Python:** the owner uses **Add agent by address** and gives you the
201
314
  challenge; return `agent.signDashboardClaim(challenge)` (Node) or
202
315
  `agent.sign_dashboard_claim(challenge)` (Python). These sign only
203
316
  `AiFinPay-claim:polygon:<own address>:<nonce>`.
204
317
 
205
- Hard spending limits stay in the agent's own configuration (`AIFINPAY_MAX_USD`,
206
- `AIFINPAY_DAILY_USD`), not in the dashboard.
318
+ Keep local owner spending limits in the agent's configuration (`AIFINPAY_MAX_USD`,
319
+ `AIFINPAY_DAILY_USD`). Claimed-wallet controls in the dashboard are additional
320
+ backend restrictions on quotes and gateway access; they do not replace local
321
+ limits or control transactions sent directly outside AiFinPay.
207
322
 
208
323
  Discover routes on the exact requested origin: `/.well-known/x402.json` and any
209
324
  API catalog linked by that site. A dev hostname does not imply testnet. If a
@@ -265,17 +380,23 @@ Use agent_history. Do not guess /v1/history, /v1/payments or /v1/wallet/tx.
265
380
 
266
381
  Canonical AIFP-1 economics are gross-inclusive: the agent pays the quoted
267
382
  price, AiFinPay takes **1 %** (100 bps) from it, and the merchant receives
268
- **99 %**. No fixed fee is implied. AIFP-1 settles live
269
- on Polygon and Base (splitter v1.4); Solana settlement is disabled. The smallest batch is
270
- $0.10 plus gas.
383
+ **99 %**. No fixed fee is implied. Production served Polygon and Base
384
+ (splitter v1.4) at the 2026-10-04 baseline check. Additional client descriptors
385
+ do not prove production activation; check issuer capabilities and merchant
386
+ authorization. This source cohort adds a Solana v1.4 adapter with explicit
387
+ network, asset and fee/rent limits; current published Solana deployment records
388
+ remain disabled. The smallest paid batch is $0.10, plus network fees and any
389
+ required account rent.
271
390
 
272
391
  (The older "98.99 / 1 / 0.01" figure was the v1.2 fee-on-top model.)
273
392
 
274
393
  Routes:
275
394
 
276
395
  - GET /v1/agents/:address/transactions?chain=polygon&limit=25&offset=0:
277
- public facts from indexed AiFinPay Polygon settlements in the durable
278
- ledger. Excludes arbitrary wallet transfers and may lag the chain.
396
+ public facts from indexed AiFinPay settlements in the durable ledger on
397
+ backends with that network's indexer. Select the configured network with
398
+ `chain`; a source descriptor does not prove indexing coverage. Excludes
399
+ arbitrary wallet transfers and may lag the chain.
279
400
  - GET /v1/agents/:address/receipts?limit=25&offset=0: retained prepaid-batch
280
401
  metadata, including test payments. Never includes the spendable receipt JWT.
281
402
  - GET /v1/agents/:address/statement?days=7: retained billing statement.
@@ -370,8 +491,9 @@ retype from memory:
370
491
  `setBudget({ per_call_usd, daily_usd })`, discovery + `fetchPaid`
371
492
  - `wallet-budget-paid.mjs` (JavaScript, ESM): same flow, no types
372
493
  - `wallet-budget-call.py` (Python): `from_seed(os.environ["SEED_HASH"])`,
373
- `call(provider, body, cost=…)` cap; fails closed on paid 402s — use Node
374
- `fetchPaid` for paid settlement
494
+ `call(provider, body, cost=…)` cap; this legacy snippet fails closed on paid
495
+ 402s. For a paid purchase use the current SDK `fetch_paid` guide or Node
496
+ `fetchPaid`, with explicit origin, amount and gas limits.
375
497
 
376
498
  Browse: `https://github.com/AiFinPay/sdk/tree/main/examples/agent-snippets`
377
499
 
@@ -425,8 +547,8 @@ terminal for that request: do not lower units below the server minimum, edit
425
547
  quotes, or construct a manual nonce, receipt or transaction workaround.
426
548
 
427
549
  This dev quote tool never broadcasts. The new low-level SDK executor supports
428
- native Amoy v1.4, while MCP/fetchPaid receipt purchases are live on Polygon and Base only.
429
- A full paid testnet receipt flow is not yet claimed. A prepaid batch means one settlement funding
550
+ native Amoy v1.4; this MCP exposes no Amoy paid receipt executor.
551
+ A full paid testnet receipt flow is not claimed. A prepaid batch means one settlement funding
430
552
  multiple API calls, not an arbitrary batch of on-chain transfers.
431
553
 
432
554
  After any actual settlement, retain its quote and transaction reference.
@@ -1,55 +0,0 @@
1
- /**
2
- * createDirectoryServer — the READ-ONLY MCP server submitted to the OpenAI
3
- * ChatGPT App Directory. Distinct from `createServer` (the full BYO-MCP
4
- * connector with payment execution): this one exposes ONLY the read-only
5
- * directory tools, requires NO agent identity and NO auth, and never moves
6
- * money — so it is reviewable under OpenAI's directory policy (Obsidian/32 /34).
7
- *
8
- * One codebase, two profiles: the HTTP wrapper picks this when
9
- * AIFINPAY_MCP_PROFILE=directory.
10
- */
11
- import { Server } from "@modelcontextprotocol/sdk/server/index.js";
12
- export interface DirectoryServerConfig {
13
- /** Public API base for the wrapped GET endpoints. Defaults to production. */
14
- apiBase?: string;
15
- /** Per-request timeout (ms). */
16
- timeoutMs?: number;
17
- log?: (level: "info" | "warn" | "error", msg: string) => void;
18
- }
19
- export declare function createDirectoryServer(config?: DirectoryServerConfig): Promise<{
20
- server: Server<{
21
- method: string;
22
- params?: {
23
- [x: string]: unknown;
24
- _meta?: {
25
- [x: string]: unknown;
26
- progressToken?: string | number | undefined;
27
- "io.modelcontextprotocol/related-task"?: {
28
- taskId: string;
29
- } | undefined;
30
- } | undefined;
31
- } | undefined;
32
- }, {
33
- method: string;
34
- params?: {
35
- [x: string]: unknown;
36
- _meta?: {
37
- [x: string]: unknown;
38
- progressToken?: string | number | undefined;
39
- "io.modelcontextprotocol/related-task"?: {
40
- taskId: string;
41
- } | undefined;
42
- } | undefined;
43
- } | undefined;
44
- }, {
45
- [x: string]: unknown;
46
- _meta?: {
47
- [x: string]: unknown;
48
- progressToken?: string | number | undefined;
49
- "io.modelcontextprotocol/related-task"?: {
50
- taskId: string;
51
- } | undefined;
52
- } | undefined;
53
- }>;
54
- }>;
55
- //# sourceMappingURL=directory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAYnE,MAAM,WAAW,qBAAqB;IACpC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/D;AAwBD,wBAAsB,qBAAqB,CAAC,MAAM,GAAE,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B7E"}
package/dist/directory.js DELETED
@@ -1,56 +0,0 @@
1
- /**
2
- * createDirectoryServer — the READ-ONLY MCP server submitted to the OpenAI
3
- * ChatGPT App Directory. Distinct from `createServer` (the full BYO-MCP
4
- * connector with payment execution): this one exposes ONLY the read-only
5
- * directory tools, requires NO agent identity and NO auth, and never moves
6
- * money — so it is reviewable under OpenAI's directory policy (Obsidian/32 /34).
7
- *
8
- * One codebase, two profiles: the HTTP wrapper picks this when
9
- * AIFINPAY_MCP_PROFILE=directory.
10
- */
11
- import { Server } from "@modelcontextprotocol/sdk/server/index.js";
12
- import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
13
- import { directoryTools, runDirectoryTool, DIRECTORY_API_BASE, } from "./tools/directory.js";
14
- // Server-wide instructions returned at initialize. ChatGPT/Codex use these as a
15
- // cross-tool guide (OpenAI readiness checklist item; the audit found it ABSENT
16
- // on the connector server). States the read-only contract, networks, and limits.
17
- const DIRECTORY_INSTRUCTIONS = [
18
- "AiFinPay is payment infrastructure for AI agents. THIS server is the",
19
- "read-only directory surface: it answers questions about the AiFinPay agent",
20
- "economy and prices AI services — it does NOT move money, hold funds, sign",
21
- "transactions, or execute any payment. Every tool is read-only.",
22
- "",
23
- "Use it to: list available AI providers and their per-call prices",
24
- "(list_providers / provider_info / provider_status / service_coverage),",
25
- "preview a fee-on-top cost breakdown without paying (quote_cost), read public",
26
- "protocol stats (network_stats) and the on-chain agent leaderboard",
27
- "(leaderboard), verify an agent's AgentPassport (verify_passport), and look up",
28
- "a public agent profile (agent_profile).",
29
- "",
30
- "Networks: Polygon and Solana mainnet. Data is public on-chain / registry",
31
- "information. To actually execute a payment, an agent uses the separate",
32
- "AiFinPay connector or SDK — not this directory app. Requests are rate limited;",
33
- "on HTTP 429 (rate_limit_exceeded), back off and retry.",
34
- ].join("\n");
35
- export async function createDirectoryServer(config = {}) {
36
- const log = config.log ?? ((lvl, msg) => process.stderr.write(`[${lvl}] ${msg}\n`));
37
- const ctx = {
38
- apiBase: (config.apiBase || DIRECTORY_API_BASE).replace(/\/$/, ""),
39
- timeoutMs: config.timeoutMs ?? 15000,
40
- log,
41
- };
42
- const server = new Server({ name: "@aifinpay/mcp-directory", version: "1.0.0" }, {
43
- capabilities: { tools: {} },
44
- instructions: DIRECTORY_INSTRUCTIONS,
45
- });
46
- server.setRequestHandler(ListToolsRequestSchema, async () => ({
47
- tools: directoryTools(),
48
- }));
49
- server.setRequestHandler(CallToolRequestSchema, async (request) => {
50
- const { name, arguments: args } = request.params;
51
- return runDirectoryTool(ctx, name, args ?? {});
52
- });
53
- log("info", `[aifinpay-mcp-directory] read-only profile · api=${ctx.apiBase}`);
54
- return { server };
55
- }
56
- //# sourceMappingURL=directory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"directory.js","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GAEnB,MAAM,sBAAsB,CAAC;AAU9B,g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I,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QACjD,OAAO,gBAAgB,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,MAAM,EAAE,oDAAoD,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/E,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC"}
@@ -1,68 +0,0 @@
1
- import type { ToolContext } from "../server.js";
2
- /**
3
- * `agent_call` — unified registry-resolved paid HTTP call.
4
- *
5
- * The agent picks a provider by name ("exa", "io-net", "venice", …),
6
- * the SDK looks up the bridge URL + price from the public AiFinPay
7
- * registry, negotiates the 402 challenge, settles on Polygon via
8
- * B2BSplitter.payMatic, retries with proof, and returns the upstream
9
- * response body.
10
- *
11
- * Use this in preference to `payable_fetch` when you have a registered
12
- * provider name — it auto-routes price, chain, and bridge URL.
13
- *
14
- * Requires the EVM address (from `agent_address`) to be funded with POL
15
- * on Polygon mainnet (gas + payment), or USDC if the provider quotes in
16
- * stablecoin.
17
- */
18
- export declare function agentCallTool(): {
19
- name: string;
20
- description: string;
21
- inputSchema: {
22
- type: string;
23
- properties: {
24
- provider: {
25
- type: string;
26
- description: string;
27
- };
28
- body: {
29
- type: string;
30
- description: string;
31
- additionalProperties: boolean;
32
- };
33
- method: {
34
- type: string;
35
- enum: string[];
36
- default: string;
37
- description: string;
38
- };
39
- cost: {
40
- type: string;
41
- description: string;
42
- };
43
- };
44
- required: string[];
45
- };
46
- annotations: {
47
- readOnlyHint: boolean;
48
- openWorldHint: boolean;
49
- destructiveHint: boolean;
50
- };
51
- outputSchema: {
52
- type: string;
53
- };
54
- };
55
- export declare function runAgentCall(ctx: ToolContext, args: Record<string, unknown>): Promise<{
56
- isError: boolean;
57
- content: {
58
- type: string;
59
- text: string;
60
- }[];
61
- } | {
62
- content: {
63
- type: string;
64
- text: string;
65
- }[];
66
- isError?: undefined;
67
- }>;
68
- //# sourceMappingURL=agent-call.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-call.d.ts","sourceRoot":"","sources":["../../src/tools/agent-call.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD5B;AAED,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;GAkE9B"}