agentpay-mcp 4.1.10 → 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 +13 -1
- package/dist/index.js +2 -2
- package/dist/utils/authorized-cybersecurity-scan-profile.d.ts +216 -0
- package/dist/utils/authorized-cybersecurity-scan-profile.d.ts.map +1 -0
- package/dist/utils/authorized-cybersecurity-scan-profile.js +130 -0
- package/dist/utils/authorized-cybersecurity-scan-profile.js.map +1 -0
- package/dist/utils/paid-provider-health-proof.d.ts +4 -4
- package/dist/utils/paid-tool-quality-threshold.d.ts +261 -0
- package/dist/utils/paid-tool-quality-threshold.d.ts.map +1 -0
- package/dist/utils/paid-tool-quality-threshold.js +155 -0
- package/dist/utils/paid-tool-quality-threshold.js.map +1 -0
- package/dist/utils/post-quantum-spend-envelope-compatibility.d.ts +22 -0
- package/dist/utils/post-quantum-spend-envelope-compatibility.d.ts.map +1 -0
- package/dist/utils/post-quantum-spend-envelope-compatibility.js +61 -0
- package/dist/utils/post-quantum-spend-envelope-compatibility.js.map +1 -0
- package/dist/utils/wallet-action-preflight-profile.d.ts +70 -0
- package/dist/utils/wallet-action-preflight-profile.d.ts.map +1 -0
- package/dist/utils/wallet-action-preflight-profile.js +151 -0
- package/dist/utils/wallet-action-preflight-profile.js.map +1 -0
- package/dist/utils/x402-chain-neutral-gateway-profile.d.ts +66 -0
- package/dist/utils/x402-chain-neutral-gateway-profile.d.ts.map +1 -0
- package/dist/utils/x402-chain-neutral-gateway-profile.js +145 -0
- package/dist/utils/x402-chain-neutral-gateway-profile.js.map +1 -0
- package/dist/utils/x402-dynamic-paid-mcp-manifest-drift.d.ts +82 -0
- package/dist/utils/x402-dynamic-paid-mcp-manifest-drift.d.ts.map +1 -0
- package/dist/utils/x402-dynamic-paid-mcp-manifest-drift.js +158 -0
- package/dist/utils/x402-dynamic-paid-mcp-manifest-drift.js.map +1 -0
- package/dist/utils/x402-multi-ledger-receipt.d.ts +64 -0
- package/dist/utils/x402-multi-ledger-receipt.d.ts.map +1 -0
- package/dist/utils/x402-multi-ledger-receipt.js +150 -0
- package/dist/utils/x402-multi-ledger-receipt.js.map +1 -0
- package/docs/agentpay-escrow-reputation-boundary.md +64 -0
- package/docs/agentpay-five-tool-parity-proof.json +56 -0
- package/docs/agentpay-five-tool-parity-proof.md +64 -0
- package/docs/agentpay-machine-payment-directory-listing-pack.md +101 -0
- package/docs/agentpay-machine-payment-directory-listing.json +41 -0
- package/docs/agentpay-paid-proxy-discovery-listing.json +42 -0
- package/docs/authorized-cybersecurity-scan-profile.md +56 -0
- package/docs/fixtures/authorized-cybersecurity-scan-profile-agentaegis-2026-05-04.json +43 -0
- package/docs/fixtures/chain-neutral-gateway-profile-rugmunch-2026-05-03.json +43 -0
- package/docs/fixtures/dynamic-paid-mcp-manifest-rugmunch-2026-05-04-baseline.json +67 -0
- package/docs/fixtures/dynamic-paid-mcp-manifest-rugmunch-2026-05-04.json +67 -0
- package/docs/fixtures/multi-ledger-receipt-xrpl-utilities-2026-05-04.json +35 -0
- package/docs/fixtures/paid-tool-quality-threshold-strale-2026-05-04.json +53 -0
- package/docs/fixtures/wallet-action-preflight-merx-2026-05-04.json +54 -0
- package/docs/paid-mcp-proxy-discovery-readiness.md +70 -0
- package/docs/paid-tool-quality-thresholds.md +47 -0
- package/docs/post-quantum-spend-envelope-compatibility.md +37 -0
- package/docs/smithery-paid-mcp-installation.md +180 -0
- package/docs/wallet-action-preflight-profile.md +57 -0
- package/docs/x402-chain-neutral-gateway-profile.md +65 -0
- package/docs/x402-chain-neutral-gateway-profile.schema.json +75 -0
- package/docs/x402-dynamic-paid-mcp-manifest-drift.md +41 -0
- package/docs/x402-dynamic-paid-mcp-manifest-drift.schema.json +193 -0
- package/docs/x402-multi-ledger-receipt-normalization.md +57 -0
- package/docs/x402-multi-ledger-receipt-normalization.schema.json +67 -0
- package/examples/smithery-paid-mcp-installation/README.md +63 -0
- package/llms.txt +4 -0
- package/package.json +2 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/up2itnow0822/agentpay-mcp/docs/x402-multi-ledger-receipt-normalization.schema.json",
|
|
4
|
+
"title": "AgentPay x402 multi-ledger receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schema", "observedAt", "source", "payment", "ledger", "settlement", "verification", "boundary"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": { "const": "agentpay-x402-multi-ledger-receipt/v1" },
|
|
9
|
+
"observedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"source": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["name"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"name": { "type": "string", "minLength": 1 },
|
|
15
|
+
"repo": { "type": "string" },
|
|
16
|
+
"evidenceUrl": { "type": "string" },
|
|
17
|
+
"pushedAt": { "type": "string", "format": "date-time" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"payment": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["x402Version", "paymentHeader", "receiptHeader"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"x402Version": { "type": "string" },
|
|
25
|
+
"paymentHeader": { "const": "Payment-Signature" },
|
|
26
|
+
"receiptHeader": { "const": "payment-response" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"ledger": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["label", "namespace"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"label": { "type": "string" },
|
|
34
|
+
"namespace": { "enum": ["eip155", "xrpl", "tvm", "solana", "other"] },
|
|
35
|
+
"chainId": {}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"settlement": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": ["asset", "target"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"asset": { "type": "string" },
|
|
43
|
+
"target": { "type": "string" },
|
|
44
|
+
"reference": { "type": "string" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"verification": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": ["status", "checkedAt"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"status": { "enum": ["verified", "pending", "unsupported_refused", "failed", "unknown"] },
|
|
52
|
+
"verifier": { "type": "string" },
|
|
53
|
+
"checkedAt": { "type": "string", "format": "date-time" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"boundary": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["custody", "nonCustodial", "description"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"custody": { "enum": ["non-custodial", "facilitator", "managed", "unknown"] },
|
|
61
|
+
"nonCustodial": { "type": "boolean" },
|
|
62
|
+
"description": { "type": "string" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"unsupportedLedgerRefusal": { "type": "string" }
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Smithery paid MCP installation example
|
|
2
|
+
|
|
3
|
+
This example is intentionally documentation-first because the live Smithery listing for AgentPay MCP still needs external verification. It gives app teams the copy-paste shape for Smithery CLI, Vercel AI SDK MCP, and `@smithery/api` TypeScript usage while preserving AgentPay's payment-safety invariant.
|
|
4
|
+
|
|
5
|
+
## Install shape
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g smithery
|
|
9
|
+
smithery namespace create agentpay-buyer-demo
|
|
10
|
+
smithery mcp add up2itnow0822/agentpay-mcp
|
|
11
|
+
smithery tool list <connection>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Do not run a paid tool from a directory-installed server until the host app has loaded a spend policy and captured a fresh `.well-known/x402` snapshot.
|
|
15
|
+
|
|
16
|
+
## Safety defaults
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
export CHAIN_ID="84532"
|
|
20
|
+
export AGENTPAY_DEFAULT_MAX_USDC="1.00"
|
|
21
|
+
export AGENTPAY_APPROVAL_MODE="human_required"
|
|
22
|
+
export AGENTPAY_MANIFEST_MAX_AGE_SECONDS="300"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Vercel AI SDK MCP shape
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { createMCPClient } from "@ai-sdk/mcp";
|
|
29
|
+
import { createConnection } from "@smithery/api/mcp";
|
|
30
|
+
|
|
31
|
+
const { transport } = await createConnection({
|
|
32
|
+
mcpUrl: process.env.AGENTPAY_SMITHERY_MCP_URL!,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const client = await createMCPClient({ transport });
|
|
36
|
+
const tools = await client.tools();
|
|
37
|
+
|
|
38
|
+
// Wrap paid tools with host-side approval before calling x402_pay.
|
|
39
|
+
console.log(Object.keys(tools));
|
|
40
|
+
await client.close();
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## TypeScript SDK shape
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import Smithery from "@smithery/api";
|
|
47
|
+
import { AgentpayMcp } from "https://api.smithery.ai/sdks/typescript/up2itnow0822/agentpay-mcp/latest";
|
|
48
|
+
|
|
49
|
+
const smithery = new Smithery({ apiKey: process.env.SMITHERY_API_KEY });
|
|
50
|
+
const conn = await smithery.connections.create("agentpay-buyer-demo", {
|
|
51
|
+
mcpUrl: process.env.AGENTPAY_SMITHERY_MCP_URL!,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const agentpay = new AgentpayMcp({
|
|
55
|
+
smithery,
|
|
56
|
+
namespace: "agentpay-buyer-demo",
|
|
57
|
+
connectionId: conn.connectionId,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// Check manifest freshness and request human approval before calling agentpay.tools.x402_pay.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
See `docs/smithery-paid-mcp-installation.md` for the full proof and acceptance checklist.
|
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.
|
|
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",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"docs/*.md",
|
|
17
17
|
"docs/*.json",
|
|
18
18
|
"docs/fixtures/*.json",
|
|
19
|
+
"examples/smithery-paid-mcp-installation/*.md",
|
|
19
20
|
"Dockerfile",
|
|
20
21
|
"smithery.yaml",
|
|
21
22
|
"glama.json",
|