agentpay-mcp 4.1.15 → 4.1.16

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.
package/README.md CHANGED
@@ -100,6 +100,9 @@ AgentPay MCP is built for enterprise MCP deployments where supply chain security
100
100
  - **Multi-ledger x402 receipt normalization.** Use the [multi-ledger receipt normalization proof](docs/x402-multi-ledger-receipt-normalization.md), schema, and XRPL fixture to normalize ledger labels, assets, settlement targets, `Payment-Signature`, `payment-response`, verification status, non-custodial boundaries, and unsupported-ledger refusals before signing.
101
101
  - **Wallet-action preflight profile.** Use the [wallet-action preflight profile](docs/wallet-action-preflight-profile.md) and TRON fixture to require simulation, chain/resource caps, allowlists, recipient and amount confirmation, nonce guidance, and approval copy before irreversible sends, swaps, or resource purchases.
102
102
  - **Machine-payment directory listing pack.** Use the [directory listing pack](docs/agentpay-machine-payment-directory-listing-pack.md) and [listing JSON](docs/agentpay-machine-payment-directory-listing.json) for MPP and paid-MCP directories without claiming unsupported non-EVM signing.
103
+ - **Five-tool x402 parity proof.** Use the [five-tool parity proof](docs/agentpay-five-tool-parity-proof.md) and [machine-readable map](docs/agentpay-five-tool-parity-proof.json) to map search, check, fetch, wallet, and pay flows to AgentPay's local-signer, approval-gated controls.
104
+ - **Escrow and reputation boundary.** Use the [escrow/reputation boundary proof](docs/agentpay-escrow-reputation-boundary.md) to keep x402 payment authorization separate from task escrow, identity, reputation, and work proof.
105
+ - **Paid MCP proxy and discovery readiness.** Use the [paid-proxy and discovery readiness pack](docs/paid-mcp-proxy-discovery-readiness.md) plus [listing JSON](docs/agentpay-paid-proxy-discovery-listing.json) for Toolstem/Cinderwright-style proxy and directory submissions.
103
106
  - **Dynamic paid MCP manifest drift.** Use the [dynamic manifest drift proof](docs/x402-dynamic-paid-mcp-manifest-drift.md), schema, and Rug Munch fixtures to validate fresh `.well-known/x402` snapshots, stale-metadata warnings, no-trial/pricing clarity, supported networks, and directory endpoint freshness before buyer agents sign.
104
107
  - **Smithery paid MCP installation.** Use the [Smithery install proof](docs/smithery-paid-mcp-installation.md) and [`examples/smithery-paid-mcp-installation`](examples/smithery-paid-mcp-installation/) for Smithery CLI, Vercel AI SDK MCP, `@smithery/api`, approval gates, spend-limit defaults, and fresh x402 manifest checks. Do not claim live Smithery verification until the listing is verified.
105
108
  - **x402-native vs Stripe-proxy MCP.** For builders comparing AgentPay MCP with emerging Stripe-proxy MCP repos, use the [x402-native vs Stripe-proxy note](docs/x402-native-vs-stripe-proxy.md) to keep approval gates, spend caps, audit rows, and non-custodial signing separate from proxy billing claims.
@@ -0,0 +1,64 @@
1
+ # AgentPay escrow and reputation boundary proof
2
+
3
+ Execution Market packages x402 payment claims with escrow, ERC-8004 identity, A2A task execution, World ID proof, worker evidence, and reputation. That is a useful market signal: buyers will compare payment tools by trust outcomes, not only by payment headers.
4
+
5
+ This proof separates the layers so buyers do not treat payment authorization as proof that work was completed.
6
+
7
+ ## Market signal
8
+
9
+ Source: `UltravioletaDAO/execution-market` README, fetched during the May 4 market-intel cycle.
10
+
11
+ Observed claims:
12
+
13
+ - Task bounties can lock USDC in on-chain escrow.
14
+ - The product exposes MCP, REST, WebSocket, and A2A paths.
15
+ - Identity references include ERC-8004 and World ID.
16
+ - Worker submissions, evidence, approval, cancellation, refund, and escrow-state checks sit around payment.
17
+ - x402 is part of a broader task market, not the whole trust system.
18
+
19
+ ## Boundary table
20
+
21
+ | Layer | What the buyer needs | AgentPay role | Boundary |
22
+ |---|---|---|---|
23
+ | Payment authorization | Decide whether an agent may spend a given amount to a given recipient | Enforce approval gates, hard spend caps, allowlists, x402 metadata checks, and receipt logging | Payment authorization does not prove the seller did the task. |
24
+ | x402 settlement | Produce and verify the payment proof for a paid endpoint | Sign and retry x402 calls only after policy passes | x402 receipt is payment evidence, not work evidence. |
25
+ | Escrow | Lock funds until task terms, evidence, and approval rules are satisfied | AgentPay has a separate `create_escrow` tool for mutual-stake escrow when a factory is configured | Escrow must be explicit. It must not be hidden inside `x402_pay`. |
26
+ | Identity | Bind buyers, workers, agents, and policies to identities | AgentPay exposes wallet and identity/reputation utilities from the wallet stack | Identity signals can inform policy, but they are not spend approval by themselves. |
27
+ | Reputation | Score prior behavior and outcomes | AgentPay can read reputation signals and log payment outcomes | Reputation should be an input to policy, not the only policy. |
28
+ | Work proof | Validate evidence, fulfillment, dispute state, and release conditions | Integration boundary with task-market or verifier systems | Work proof belongs above payment execution. |
29
+
30
+ ## Safe buyer architecture
31
+
32
+ Use AgentPay as the x402 control layer in front of any task marketplace or paid worker flow:
33
+
34
+ 1. Discover the task or endpoint.
35
+ 2. Read identity, reputation, escrow, and work-proof requirements.
36
+ 3. Run AgentPay policy checks for spend cap, `payTo`, asset, network, price, manifest freshness, provider health, and approval mode.
37
+ 4. If the task requires escrow, call an escrow-specific flow such as `create_escrow`; do not treat a normal x402 receipt as escrow.
38
+ 5. Release or dispute funds only through the task-market or escrow contract state machine.
39
+ 6. Persist x402 receipts, escrow transaction hashes, worker evidence IDs, and approval logs as separate audit fields.
40
+
41
+ ## AgentPay guarantees today
42
+
43
+ AgentPay can guarantee these payment-control properties when configured correctly:
44
+
45
+ - Non-custodial local signing.
46
+ - Human approval for high-risk or high-value payments.
47
+ - Per-transaction and daily spend caps.
48
+ - Network, asset, recipient, and manifest checks.
49
+ - x402 `Payment-Signature` and `payment-response` receipt handling.
50
+ - Separate escrow creation through `create_escrow` when the wallet SDK factory is configured.
51
+ - Fail-closed behavior for unsupported ledgers or incomplete payment metadata.
52
+
53
+ AgentPay should not claim these as automatic x402 guarantees:
54
+
55
+ - Worker identity verification.
56
+ - World ID proof.
57
+ - Task outcome verification.
58
+ - Dispute resolution.
59
+ - Reputation scoring accuracy.
60
+ - Escrow release correctness.
61
+
62
+ ## Integration rule
63
+
64
+ A task platform can integrate AgentPay safely by treating it as the buyer-side payment policy layer. The platform should keep escrow, worker evidence, reputation, identity, and dispute state in its own task protocol or contracts, then pass only verified payment intents to AgentPay for approval and signing.
@@ -0,0 +1,56 @@
1
+ {
2
+ "proof": "agentpay-five-tool-x402-parity",
3
+ "market_signal": "OpenDexter documents x402_search, x402_check, x402_fetch, x402_wallet, and x402_pay across hosted session wallets and a local signer package.",
4
+ "agentpay_position": "Buyer-flow parity with local signing, explicit policy checks, and fail-closed unsupported-ledger handling.",
5
+ "grammar": [
6
+ {
7
+ "canonical_tool": "x402_search",
8
+ "agentpay_equivalent": [
9
+ "docs/agentpay-machine-payment-directory-listing.json",
10
+ "docs/mcp-registry-listing-proof.md",
11
+ "docs/directory-introspection-readiness.md"
12
+ ],
13
+ "safety_rule": "Search metadata cannot authorize payment."
14
+ },
15
+ {
16
+ "canonical_tool": "x402_check",
17
+ "agentpay_equivalent": [
18
+ "check_budget",
19
+ "check_spend_limit",
20
+ "docs/x402-dynamic-paid-mcp-manifest-drift.md",
21
+ "docs/paid-provider-health-proof.md",
22
+ "docs/paid-tool-quality-thresholds.md"
23
+ ],
24
+ "safety_rule": "Fail closed when network, asset, payTo, price, manifest freshness, or quality proof is missing."
25
+ },
26
+ {
27
+ "canonical_tool": "x402_fetch",
28
+ "agentpay_equivalent": [
29
+ "x402_pay",
30
+ "x402_session_start",
31
+ "x402_session_fetch"
32
+ ],
33
+ "safety_rule": "No automatic payment before policy, approval, cap, receipt, and session checks pass."
34
+ },
35
+ {
36
+ "canonical_tool": "x402_wallet",
37
+ "agentpay_equivalent": [
38
+ "get_wallet_info",
39
+ "set_spend_policy",
40
+ "deploy_wallet",
41
+ "x402_session_status"
42
+ ],
43
+ "safety_rule": "Private keys remain local and are never stored in directory or proxy metadata."
44
+ },
45
+ {
46
+ "canonical_tool": "x402_pay",
47
+ "agentpay_equivalent": [
48
+ "x402_pay",
49
+ "docs/x402-multi-ledger-receipt-normalization.md",
50
+ "docs/wallet-action-preflight-profile.md"
51
+ ],
52
+ "safety_rule": "Sign only after network, asset, amount, recipient, policy, and approval checks."
53
+ }
54
+ ],
55
+ "unsupported_ledger_policy": "Non-EVM rails remain fail-closed extension points until signer, asset, receipt, refund, and settlement semantics are implemented."
56
+ }
@@ -0,0 +1,64 @@
1
+ # AgentPay five-tool x402 parity proof
2
+
3
+ OpenDexter documents a compact paid-MCP grammar: `x402_search`, `x402_check`, `x402_fetch`, `x402_wallet`, and `x402_pay`. That grammar is useful because it gives buyer agents one mental model for discovery, policy checks, fetching, wallet state, and final payment.
4
+
5
+ AgentPay does not need to copy hosted session custody to be compatible with that buyer flow. The safer parity target is a mapping that lets agents run the same sequence while keeping signing local, policy explicit, and unsupported chains fail closed.
6
+
7
+ ## Market signal
8
+
9
+ Source: `Dexter-DAO/dexter-mcp` README, fetched during the May 4 market-intel cycle.
10
+
11
+ Observed claims:
12
+
13
+ - Hosted sessions create one Solana address and one EVM address for the user.
14
+ - `x402_fetch` checks balances across chains and picks the best-funded chain accepted by the endpoint.
15
+ - Sessions persist for 30 days in PostgreSQL.
16
+ - The local signer package exposes the same five-tool story and stores a local wallet file.
17
+ - The local signing path is currently optimized around Solana.
18
+
19
+ ## AgentPay parity map
20
+
21
+ | OpenDexter grammar | AgentPay equivalent | Proof surface | Buyer safety rule |
22
+ |---|---|---|---|
23
+ | `x402_search` | Directory/listing metadata, registry proof, and discovery docs | `docs/agentpay-machine-payment-directory-listing.json`, `docs/mcp-registry-listing-proof.md`, `docs/directory-introspection-readiness.md` | Search results are metadata only. They cannot authorize payment. |
24
+ | `x402_check` | Budget, spend-limit, manifest, provider-health, quality, and chain checks | `check_budget`, `check_spend_limit`, `docs/x402-dynamic-paid-mcp-manifest-drift.md`, `docs/paid-provider-health-proof.md`, `docs/paid-tool-quality-thresholds.md` | Checks must fail closed when network, asset, `payTo`, price, manifest freshness, or quality proof is missing. |
25
+ | `x402_fetch` | `x402_pay` for paid fetches, or `x402_session_fetch` for reusable paid sessions | `x402_pay`, `x402_session_start`, `x402_session_fetch`, `docs/x402-v211-paid-mcp-compatibility.md` | Fetch must not auto-pay unless policy, approval, cap, receipt, and session state pass first. |
26
+ | `x402_wallet` | Local wallet info, policy, deployment, and session status | `get_wallet_info`, `set_spend_policy`, `deploy_wallet`, `x402_session_status` | Wallet state stays local. Directories and hosted proxies do not receive private keys. |
27
+ | `x402_pay` | Approval-gated x402 payment execution | `x402_pay`, `docs/x402-multi-ledger-receipt-normalization.md`, `docs/wallet-action-preflight-profile.md` | Payment signs only after explicit network, asset, amount, recipient, policy, and approval checks. |
28
+
29
+ ## Hosted session wallet boundary
30
+
31
+ Hosted session wallets can reduce onboarding friction, but they move two risks into the provider surface:
32
+
33
+ 1. The provider or database becomes part of the wallet trust boundary.
34
+ 2. Chain auto-selection can hide which ledger, asset, and settlement target the buyer is about to use.
35
+
36
+ AgentPay's default posture is different:
37
+
38
+ - Signing stays local to the buyer runtime.
39
+ - Policy approval happens before payment, not after a provider selects a chain.
40
+ - The buyer sees `payTo`, network, asset, amount, session, receipt, and unsupported-ledger refusal copy before signing.
41
+ - Directory and proxy metadata can help the buyer discover endpoints, but metadata alone never grants spend authority.
42
+
43
+ ## Multi-chain selection guardrails
44
+
45
+ If a paid MCP endpoint supports more than one network, AgentPay should preserve these guardrails before any future auto-selection flow:
46
+
47
+ - Require an allowlist for network and asset.
48
+ - Require non-zero and verified `payTo`.
49
+ - Prefer a deterministic buyer policy over provider-selected best balance.
50
+ - Log why a chain was selected.
51
+ - Refuse Solana, XRPL, TRON, TVM, or other non-EVM payments until signer, asset, receipt, refund, and settlement semantics are implemented for that rail.
52
+ - Show the final chain and asset in approval copy.
53
+
54
+ ## Acceptance proof
55
+
56
+ A buyer agent can follow the five-step grammar today without handing custody to AgentPay or a hosted directory:
57
+
58
+ 1. Search: read AgentPay listing metadata and proof docs.
59
+ 2. Check: validate price, manifest, chain, provider health, quality, budget, and approval policy.
60
+ 3. Fetch: use `x402_pay` or `x402_session_fetch` only after checks pass.
61
+ 4. Wallet: inspect local wallet and active sessions without exposing private keys.
62
+ 5. Pay: sign a capped x402 payment and persist the receipt/audit trail.
63
+
64
+ This is five-tool parity at the buyer-flow layer, with local signer safety instead of hidden hosted-session custody.
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "agentpay-mcp",
3
+ "title": "AgentPay MCP",
4
+ "role": "buyer-side x402 payment-control layer for paid MCP tools",
5
+ "package": "agentpay-mcp",
6
+ "mcp_name": "io.github.up2itnow0822/agentpay",
7
+ "repository": "https://github.com/up2itnow0822/agentpay-mcp",
8
+ "npm": "https://www.npmjs.com/package/agentpay-mcp",
9
+ "install": {
10
+ "command": "npx",
11
+ "args": ["agentpay-mcp"],
12
+ "required_env": ["AGENT_PRIVATE_KEY", "AGENT_WALLET_ADDRESS", "CHAIN_ID", "RPC_URL"]
13
+ },
14
+ "supports": [
15
+ "MCP",
16
+ "x402 payment execution",
17
+ "human approval",
18
+ "per-transaction spend caps",
19
+ "daily spend caps",
20
+ "receipt logging",
21
+ "manifest freshness checks",
22
+ "provider-health checks",
23
+ "quality-threshold checks"
24
+ ],
25
+ "does_not_provide": [
26
+ "managed custody",
27
+ "pooled SaaS token custody",
28
+ "automatic non-EVM signing",
29
+ "task outcome verification",
30
+ "reputation scoring as payment approval"
31
+ ],
32
+ "proofs": [
33
+ "docs/agentpay-five-tool-parity-proof.md",
34
+ "docs/agentpay-escrow-reputation-boundary.md",
35
+ "docs/paid-mcp-proxy-discovery-readiness.md",
36
+ "docs/agentpay-machine-payment-directory-listing.json",
37
+ "docs/x402-dynamic-paid-mcp-manifest-drift.md",
38
+ "docs/paid-provider-health-proof.md",
39
+ "docs/paid-tool-quality-thresholds.md"
40
+ ],
41
+ "settlement_wording": "Buyer-side x402 payment controls with local non-custodial signing. Base/USDC-oriented production signing; unsupported non-EVM rails fail closed until signer, asset, receipt, refund, and settlement semantics are implemented."
42
+ }
@@ -0,0 +1,70 @@
1
+ # Paid MCP proxy and discovery readiness pack
2
+
3
+ Toolstem and Cinderwright show the next buyer channel for paid tools: proxies that convert existing SaaS tools into x402-paid MCP endpoints, plus directories that compare paid services across x402, MPP, and L402.
4
+
5
+ AgentPay should be easy for those surfaces to list without giving them custody, overstating ledger support, or hiding buyer policy.
6
+
7
+ ## Market signal
8
+
9
+ Sources fetched during the May 4 market-intel cycle:
10
+
11
+ - `toolstem/toolstem-proxy` describes an x402-paid proxy for Apify-backed MCP tools without Apify signup.
12
+ - `cinderwright-ai/cinderwright-api` describes discovery data across x402, MPP, and L402, with 1,551 services and paid market-intelligence endpoints.
13
+
14
+ ## Paid-proxy recipe for tool authors
15
+
16
+ Use this pattern when wrapping an existing API, actor, or MCP server with x402:
17
+
18
+ 1. Keep the upstream service token on the provider side. Do not ask buyer agents to hold pooled SaaS credentials.
19
+ 2. Publish a fresh `.well-known/x402` offer with price, asset, network, `payTo`, terms, and refund policy.
20
+ 3. Return typed 402 errors for unpaid, underpaid, wrong-network, stale-receipt, quota, and provider-health failures.
21
+ 4. Charge only after the request is valid enough to execute. Validation failures should not bill.
22
+ 5. Expose provider-health and quality fields before payment.
23
+ 6. Include idempotency keys so retries do not double charge.
24
+ 7. Make directory metadata crawlable without a private key.
25
+ 8. Let buyers bring AgentPay for approval gates, caps, allowlists, and x402 receipt logging.
26
+
27
+ ## AgentPay listing metadata
28
+
29
+ Directories can list AgentPay with these fields:
30
+
31
+ ```json
32
+ {
33
+ "name": "agentpay-mcp",
34
+ "role": "buyer-side x402 payment-control layer",
35
+ "package": "agentpay-mcp",
36
+ "mcp_name": "io.github.up2itnow0822/agentpay",
37
+ "settlement": "x402 with local non-custodial signing",
38
+ "supports": ["MCP", "x402", "human approval", "spend caps", "receipt logging"],
39
+ "does_not_provide": ["managed custody", "pooled SaaS token custody", "automatic non-EVM signing"],
40
+ "install": "npx agentpay-mcp",
41
+ "proofs": [
42
+ "docs/agentpay-five-tool-parity-proof.md",
43
+ "docs/agentpay-escrow-reputation-boundary.md",
44
+ "docs/agentpay-machine-payment-directory-listing.json",
45
+ "docs/x402-dynamic-paid-mcp-manifest-drift.md",
46
+ "docs/paid-provider-health-proof.md"
47
+ ]
48
+ }
49
+ ```
50
+
51
+ ## Discovery insertion checklist
52
+
53
+ Before submitting AgentPay to a paid-MCP or machine-payment directory, verify:
54
+
55
+ - npm package name and current version.
56
+ - GitHub repository URL.
57
+ - MCP package identity.
58
+ - Install command and required environment variables.
59
+ - No private key required for `initialize` or `tools/list`.
60
+ - x402-only wording is present.
61
+ - Base/USDC production signing is not broadened into unsupported non-EVM claims.
62
+ - Proof docs are linked for five-tool parity, manifest drift, provider health, quality gates, receipt normalization, and escrow boundary.
63
+
64
+ ## Outreach posture
65
+
66
+ For Toolstem-style proxies, propose buyer-side approval and receipt guidance, not a partnership claim.
67
+
68
+ For Cinderwright-style directories, propose adding AgentPay as a buyer-control tool with exact metadata and proof links.
69
+
70
+ For Dexter-style five-tool flows, propose interoperability language: AgentPay can satisfy the same buyer sequence with local signing and explicit policy checks, while hosted session wallets remain a different trust model.
package/llms.txt CHANGED
@@ -19,3 +19,7 @@ Important docs:
19
19
  - `docs/mcp-registry-listing-proof.md` for registry, Glama, Smithery, and install-readiness proof
20
20
  - `docs/directory-introspection-readiness.md` for npx and Docker introspection
21
21
  - `docs/dependency-pin-policy.md` for payment-critical dependency pinning
22
+
23
+ - `docs/agentpay-five-tool-parity-proof.md` and `docs/agentpay-five-tool-parity-proof.json` for search/check/fetch/wallet/pay buyer-flow parity without hosted-session custody
24
+ - `docs/agentpay-escrow-reputation-boundary.md` for separating x402 payment authorization from escrow, identity, reputation, and work proof
25
+ - `docs/paid-mcp-proxy-discovery-readiness.md` and `docs/agentpay-paid-proxy-discovery-listing.json` for paid-proxy and directory listing submissions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentpay-mcp",
3
- "version": "4.1.15",
3
+ "version": "4.1.16",
4
4
  "mcpName": "io.github.up2itnow0822/agentpay",
5
5
  "description": "AgentPay MCP Server - Non-custodial x402 payment layer for AI agents. Multi-chain wallets, spending limits, and machine-to-machine payments. Patent Pending.",
6
6
  "main": "dist/index.js",