@scriptmasterlabs/mcp-x402 2.1.0 → 2.1.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.
- package/.well-known/x402.json +37 -0
- package/LICENSE +57 -21
- package/README.md +185 -227
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-wrapper.d.ts +71 -0
- package/dist/mcp-wrapper.d.ts.map +1 -0
- package/dist/mcp-wrapper.js +104 -0
- package/dist/mcp-wrapper.js.map +1 -0
- package/dist/x402-middleware.d.ts +76 -0
- package/dist/x402-middleware.d.ts.map +1 -0
- package/dist/x402-middleware.js +113 -0
- package/dist/x402-middleware.js.map +1 -0
- package/dist/xrpl-facilitator.d.ts +77 -0
- package/dist/xrpl-facilitator.d.ts.map +1 -0
- package/dist/xrpl-facilitator.js +156 -0
- package/dist/xrpl-facilitator.js.map +1 -0
- package/llms.txt +108 -170
- package/package.json +43 -56
- package/schema.jsonld +97 -0
- package/.well-known/agentcard.json +0 -34
- package/.well-known/ai.txt +0 -32
- package/CONTRIBUTING.md +0 -76
- package/agents.json +0 -81
- package/ai/faq.json +0 -74
- package/ai/summary.json +0 -157
- package/dist/lib/chains/base.d.ts +0 -10
- package/dist/lib/chains/base.d.ts.map +0 -1
- package/dist/lib/chains/base.js +0 -75
- package/dist/lib/chains/base.js.map +0 -1
- package/dist/lib/chains/solana.d.ts +0 -10
- package/dist/lib/chains/solana.d.ts.map +0 -1
- package/dist/lib/chains/solana.js +0 -49
- package/dist/lib/chains/solana.js.map +0 -1
- package/dist/lib/chains/xrpl.d.ts +0 -10
- package/dist/lib/chains/xrpl.d.ts.map +0 -1
- package/dist/lib/chains/xrpl.js +0 -55
- package/dist/lib/chains/xrpl.js.map +0 -1
- package/dist/lib/credit/bureau.d.ts +0 -16
- package/dist/lib/credit/bureau.d.ts.map +0 -1
- package/dist/lib/credit/bureau.js +0 -88
- package/dist/lib/credit/bureau.js.map +0 -1
- package/dist/lib/sml-api/agentcard.d.ts +0 -17
- package/dist/lib/sml-api/agentcard.d.ts.map +0 -1
- package/dist/lib/sml-api/agentcard.js +0 -30
- package/dist/lib/sml-api/agentcard.js.map +0 -1
- package/dist/lib/sml-api/backtest.d.ts +0 -22
- package/dist/lib/sml-api/backtest.d.ts.map +0 -1
- package/dist/lib/sml-api/backtest.js +0 -28
- package/dist/lib/sml-api/backtest.js.map +0 -1
- package/dist/lib/sml-api/brokers.d.ts +0 -40
- package/dist/lib/sml-api/brokers.d.ts.map +0 -1
- package/dist/lib/sml-api/brokers.js +0 -128
- package/dist/lib/sml-api/brokers.js.map +0 -1
- package/dist/lib/sml-api/copytrader.d.ts +0 -11
- package/dist/lib/sml-api/copytrader.d.ts.map +0 -1
- package/dist/lib/sml-api/copytrader.js +0 -30
- package/dist/lib/sml-api/copytrader.js.map +0 -1
- package/dist/lib/sml-api/crawl.d.ts +0 -20
- package/dist/lib/sml-api/crawl.d.ts.map +0 -1
- package/dist/lib/sml-api/crawl.js +0 -32
- package/dist/lib/sml-api/crawl.js.map +0 -1
- package/dist/lib/sml-api/echo.d.ts +0 -10
- package/dist/lib/sml-api/echo.d.ts.map +0 -1
- package/dist/lib/sml-api/echo.js +0 -23
- package/dist/lib/sml-api/echo.js.map +0 -1
- package/dist/lib/sml-api/forge.d.ts +0 -11
- package/dist/lib/sml-api/forge.d.ts.map +0 -1
- package/dist/lib/sml-api/forge.js +0 -29
- package/dist/lib/sml-api/forge.js.map +0 -1
- package/dist/lib/sml-api/ftd.d.ts +0 -18
- package/dist/lib/sml-api/ftd.d.ts.map +0 -1
- package/dist/lib/sml-api/ftd.js +0 -43
- package/dist/lib/sml-api/ftd.js.map +0 -1
- package/dist/lib/sml-api/ghost.d.ts +0 -13
- package/dist/lib/sml-api/ghost.d.ts.map +0 -1
- package/dist/lib/sml-api/ghost.js +0 -29
- package/dist/lib/sml-api/ghost.js.map +0 -1
- package/dist/lib/sml-api/launchpad.d.ts +0 -20
- package/dist/lib/sml-api/launchpad.d.ts.map +0 -1
- package/dist/lib/sml-api/launchpad.js +0 -31
- package/dist/lib/sml-api/launchpad.js.map +0 -1
- package/dist/lib/sml-api/leviathan.d.ts +0 -22
- package/dist/lib/sml-api/leviathan.d.ts.map +0 -1
- package/dist/lib/sml-api/leviathan.js +0 -33
- package/dist/lib/sml-api/leviathan.js.map +0 -1
- package/dist/lib/sml-api/nexus.d.ts +0 -18
- package/dist/lib/sml-api/nexus.d.ts.map +0 -1
- package/dist/lib/sml-api/nexus.js +0 -40
- package/dist/lib/sml-api/nexus.js.map +0 -1
- package/dist/lib/sml-api/proof402.d.ts +0 -6
- package/dist/lib/sml-api/proof402.d.ts.map +0 -1
- package/dist/lib/sml-api/proof402.js +0 -30
- package/dist/lib/sml-api/proof402.js.map +0 -1
- package/dist/lib/sml-api/rails.d.ts +0 -12
- package/dist/lib/sml-api/rails.d.ts.map +0 -1
- package/dist/lib/sml-api/rails.js +0 -29
- package/dist/lib/sml-api/rails.js.map +0 -1
- package/dist/lib/sml-api/shadow.d.ts +0 -15
- package/dist/lib/sml-api/shadow.d.ts.map +0 -1
- package/dist/lib/sml-api/shadow.js +0 -27
- package/dist/lib/sml-api/shadow.js.map +0 -1
- package/dist/lib/sml-api/squeezeos.d.ts +0 -21
- package/dist/lib/sml-api/squeezeos.d.ts.map +0 -1
- package/dist/lib/sml-api/squeezeos.js +0 -97
- package/dist/lib/sml-api/squeezeos.js.map +0 -1
- package/dist/lib/sml-api/xdeo.d.ts +0 -13
- package/dist/lib/sml-api/xdeo.d.ts.map +0 -1
- package/dist/lib/sml-api/xdeo.js +0 -34
- package/dist/lib/sml-api/xdeo.js.map +0 -1
- package/dist/lib/sml-api/xmit.d.ts +0 -13
- package/dist/lib/sml-api/xmit.d.ts.map +0 -1
- package/dist/lib/sml-api/xmit.js +0 -34
- package/dist/lib/sml-api/xmit.js.map +0 -1
- package/dist/server/health.d.ts +0 -16
- package/dist/server/health.d.ts.map +0 -1
- package/dist/server/health.js +0 -39
- package/dist/server/health.js.map +0 -1
- package/dist/server/index.d.ts +0 -3
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -322
- package/dist/server/index.js.map +0 -1
- package/dist/server/payments/ap2.d.ts +0 -17
- package/dist/server/payments/ap2.d.ts.map +0 -1
- package/dist/server/payments/ap2.js +0 -77
- package/dist/server/payments/ap2.js.map +0 -1
- package/dist/server/payments/receipt.d.ts +0 -28
- package/dist/server/payments/receipt.d.ts.map +0 -1
- package/dist/server/payments/receipt.js +0 -60
- package/dist/server/payments/receipt.js.map +0 -1
- package/dist/server/payments/router.d.ts +0 -23
- package/dist/server/payments/router.d.ts.map +0 -1
- package/dist/server/payments/router.js +0 -69
- package/dist/server/payments/router.js.map +0 -1
- package/dist/server/payments/wallet.d.ts +0 -18
- package/dist/server/payments/wallet.d.ts.map +0 -1
- package/dist/server/payments/wallet.js +0 -107
- package/dist/server/payments/wallet.js.map +0 -1
- package/dist/server/payments/x402.d.ts +0 -29
- package/dist/server/payments/x402.d.ts.map +0 -1
- package/dist/server/payments/x402.js +0 -138
- package/dist/server/payments/x402.js.map +0 -1
- package/dist/server/registry/catalog.d.ts +0 -12
- package/dist/server/registry/catalog.d.ts.map +0 -1
- package/dist/server/registry/catalog.js +0 -55
- package/dist/server/registry/catalog.js.map +0 -1
- package/dist/server/registry/discovery.d.ts +0 -16
- package/dist/server/registry/discovery.d.ts.map +0 -1
- package/dist/server/registry/discovery.js +0 -33
- package/dist/server/registry/discovery.js.map +0 -1
- package/dist/server/registry/pricing.d.ts +0 -10
- package/dist/server/registry/pricing.d.ts.map +0 -1
- package/dist/server/registry/pricing.js +0 -123
- package/dist/server/registry/pricing.js.map +0 -1
- package/dist/server/security/acl.d.ts +0 -28
- package/dist/server/security/acl.d.ts.map +0 -1
- package/dist/server/security/acl.js +0 -36
- package/dist/server/security/acl.js.map +0 -1
- package/dist/server/security/audit.d.ts +0 -15
- package/dist/server/security/audit.d.ts.map +0 -1
- package/dist/server/security/audit.js +0 -77
- package/dist/server/security/audit.js.map +0 -1
- package/dist/server/security/rate-limit.d.ts +0 -12
- package/dist/server/security/rate-limit.d.ts.map +0 -1
- package/dist/server/security/rate-limit.js +0 -72
- package/dist/server/security/rate-limit.js.map +0 -1
- package/dist/server/security/sandbox.d.ts +0 -7
- package/dist/server/security/sandbox.d.ts.map +0 -1
- package/dist/server/security/sandbox.js +0 -42
- package/dist/server/security/sandbox.js.map +0 -1
- package/dist/server/tools/agentcard.d.ts +0 -3
- package/dist/server/tools/agentcard.d.ts.map +0 -1
- package/dist/server/tools/agentcard.js +0 -118
- package/dist/server/tools/agentcard.js.map +0 -1
- package/dist/server/tools/backtest.d.ts +0 -3
- package/dist/server/tools/backtest.d.ts.map +0 -1
- package/dist/server/tools/backtest.js +0 -112
- package/dist/server/tools/backtest.js.map +0 -1
- package/dist/server/tools/brokers.d.ts +0 -3
- package/dist/server/tools/brokers.d.ts.map +0 -1
- package/dist/server/tools/brokers.js +0 -223
- package/dist/server/tools/brokers.js.map +0 -1
- package/dist/server/tools/copytrader.d.ts +0 -3
- package/dist/server/tools/copytrader.d.ts.map +0 -1
- package/dist/server/tools/copytrader.js +0 -90
- package/dist/server/tools/copytrader.js.map +0 -1
- package/dist/server/tools/crawl.d.ts +0 -3
- package/dist/server/tools/crawl.d.ts.map +0 -1
- package/dist/server/tools/crawl.js +0 -60
- package/dist/server/tools/crawl.js.map +0 -1
- package/dist/server/tools/discovery.d.ts +0 -3
- package/dist/server/tools/discovery.d.ts.map +0 -1
- package/dist/server/tools/discovery.js +0 -188
- package/dist/server/tools/discovery.js.map +0 -1
- package/dist/server/tools/echo.d.ts +0 -3
- package/dist/server/tools/echo.d.ts.map +0 -1
- package/dist/server/tools/echo.js +0 -48
- package/dist/server/tools/echo.js.map +0 -1
- package/dist/server/tools/forge.d.ts +0 -3
- package/dist/server/tools/forge.d.ts.map +0 -1
- package/dist/server/tools/forge.js +0 -77
- package/dist/server/tools/forge.js.map +0 -1
- package/dist/server/tools/ftd.d.ts +0 -3
- package/dist/server/tools/ftd.d.ts.map +0 -1
- package/dist/server/tools/ftd.js +0 -70
- package/dist/server/tools/ftd.js.map +0 -1
- package/dist/server/tools/ghost.d.ts +0 -3
- package/dist/server/tools/ghost.d.ts.map +0 -1
- package/dist/server/tools/ghost.js +0 -83
- package/dist/server/tools/ghost.js.map +0 -1
- package/dist/server/tools/index.d.ts +0 -3
- package/dist/server/tools/index.d.ts.map +0 -1
- package/dist/server/tools/index.js +0 -44
- package/dist/server/tools/index.js.map +0 -1
- package/dist/server/tools/launchpad.d.ts +0 -3
- package/dist/server/tools/launchpad.d.ts.map +0 -1
- package/dist/server/tools/launchpad.js +0 -151
- package/dist/server/tools/launchpad.js.map +0 -1
- package/dist/server/tools/leviathan.d.ts +0 -3
- package/dist/server/tools/leviathan.d.ts.map +0 -1
- package/dist/server/tools/leviathan.js +0 -73
- package/dist/server/tools/leviathan.js.map +0 -1
- package/dist/server/tools/nexus.d.ts +0 -3
- package/dist/server/tools/nexus.d.ts.map +0 -1
- package/dist/server/tools/nexus.js +0 -65
- package/dist/server/tools/nexus.js.map +0 -1
- package/dist/server/tools/proof402.d.ts +0 -3
- package/dist/server/tools/proof402.d.ts.map +0 -1
- package/dist/server/tools/proof402.js +0 -74
- package/dist/server/tools/proof402.js.map +0 -1
- package/dist/server/tools/rails.d.ts +0 -3
- package/dist/server/tools/rails.d.ts.map +0 -1
- package/dist/server/tools/rails.js +0 -82
- package/dist/server/tools/rails.js.map +0 -1
- package/dist/server/tools/shadow.d.ts +0 -3
- package/dist/server/tools/shadow.d.ts.map +0 -1
- package/dist/server/tools/shadow.js +0 -114
- package/dist/server/tools/shadow.js.map +0 -1
- package/dist/server/tools/squeezeos.d.ts +0 -3
- package/dist/server/tools/squeezeos.d.ts.map +0 -1
- package/dist/server/tools/squeezeos.js +0 -231
- package/dist/server/tools/squeezeos.js.map +0 -1
- package/dist/server/tools/xdeo.d.ts +0 -3
- package/dist/server/tools/xdeo.d.ts.map +0 -1
- package/dist/server/tools/xdeo.js +0 -58
- package/dist/server/tools/xdeo.js.map +0 -1
- package/dist/server/tools/xmit.d.ts +0 -3
- package/dist/server/tools/xmit.d.ts.map +0 -1
- package/dist/server/tools/xmit.js +0 -59
- package/dist/server/tools/xmit.js.map +0 -1
- package/server.json +0 -52
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"protocol": "x402",
|
|
3
|
+
"version": "1.0",
|
|
4
|
+
"maintainer": "ScriptMasterLabs",
|
|
5
|
+
"homepage": "https://scriptmasterlabs.com",
|
|
6
|
+
"repository": "https://github.com/Timwal78/mcp-x402-xrpl",
|
|
7
|
+
"npm": "@scriptmasterlabs/mcp-x402",
|
|
8
|
+
"networks": [
|
|
9
|
+
{
|
|
10
|
+
"id": "xrpl-mainnet",
|
|
11
|
+
"name": "XRP Ledger Mainnet",
|
|
12
|
+
"rpc": "wss://xrplcluster.com",
|
|
13
|
+
"currencies": ["XRP", "RLUSD"],
|
|
14
|
+
"settlementFinality": "3-5 seconds",
|
|
15
|
+
"averageFee": "0.00001 XRP"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "xahau-mainnet",
|
|
19
|
+
"name": "Xahau Mainnet",
|
|
20
|
+
"rpc": "wss://xahau.network",
|
|
21
|
+
"currencies": ["XAH"],
|
|
22
|
+
"settlementFinality": "3-5 seconds",
|
|
23
|
+
"averageFee": "0.00001 XAH"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"capabilities": [
|
|
27
|
+
"mcp-tool-payment-gate",
|
|
28
|
+
"x402-middleware",
|
|
29
|
+
"xrpl-payment-signing",
|
|
30
|
+
"xahau-payment-signing",
|
|
31
|
+
"payment-proof-verification"
|
|
32
|
+
],
|
|
33
|
+
"relatedProjects": [
|
|
34
|
+
"https://github.com/Timwal78/zeroquery-protocol",
|
|
35
|
+
"https://github.com/Timwal78/ago-orchestrator"
|
|
36
|
+
]
|
|
37
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution.
|
|
10
|
+
"Licensor" shall mean ScriptMasterLabs.
|
|
11
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that
|
|
12
|
+
control, are controlled by, or are under common control with that entity.
|
|
13
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions
|
|
14
|
+
granted by this License.
|
|
15
|
+
"Source" form shall mean the preferred form for making modifications.
|
|
16
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation
|
|
17
|
+
of a Source form.
|
|
18
|
+
"Work" shall mean the work of authorship made available under the License.
|
|
19
|
+
"Derivative Works" shall mean any work that is based on the Work.
|
|
20
|
+
"Contribution" shall mean any work of authorship submitted to the Licensor for inclusion.
|
|
21
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of whom a Contribution
|
|
22
|
+
has been received by the Licensor and subsequently incorporated within the Work.
|
|
23
|
+
|
|
24
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each
|
|
25
|
+
Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
|
|
26
|
+
royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
27
|
+
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
28
|
+
Derivative Works in Source or Object form.
|
|
29
|
+
|
|
30
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each
|
|
31
|
+
Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
|
|
32
|
+
royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell,
|
|
33
|
+
import, and otherwise transfer the Work.
|
|
34
|
+
|
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works
|
|
36
|
+
thereof in any medium, with or without modifications, and in Source or Object form,
|
|
37
|
+
provided that You meet the following conditions:
|
|
38
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License.
|
|
39
|
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files.
|
|
40
|
+
(c) You must retain, in the Source form of any Derivative Works, all copyright, patent, trademark,
|
|
41
|
+
and attribution notices from the Source form of the Work.
|
|
42
|
+
(d) If the Work includes a "NOTICE" text file, You must include a readable copy of the attribution
|
|
43
|
+
notices contained within such NOTICE file.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally
|
|
46
|
+
submitted for inclusion in the Work shall be under the terms and conditions of this License.
|
|
47
|
+
|
|
48
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks,
|
|
49
|
+
or product names of the Licensor.
|
|
50
|
+
|
|
51
|
+
7. Disclaimer of Warranty. THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
|
52
|
+
|
|
53
|
+
8. Limitation of Liability. IN NO EVENT SHALL ANY CONTRIBUTOR BE LIABLE FOR ANY DAMAGES.
|
|
54
|
+
|
|
55
|
+
9. Accepting Warranty or Additional Liability. You may choose to offer warranty or liability obligations.
|
|
56
|
+
|
|
57
|
+
Copyright 2025 ScriptMasterLabs (https://scriptmasterlabs.com)
|
package/README.md
CHANGED
|
@@ -1,304 +1,262 @@
|
|
|
1
|
-
# mcp-x402
|
|
1
|
+
# mcp-x402-xrpl
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[](https://github.com/timwal78/sml_portfolio/actions)
|
|
3
|
+
> **x402 HTTP payment middleware for MCP servers — XRPL, Xahau, XAH, RLUSD.**
|
|
4
|
+
> The first production-ready x402 facilitator for the XRP Ledger ecosystem.
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
[](https://npmjs.com/package/@scriptmasterlabs/mcp-x402)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://xrpl.org)
|
|
9
|
+
[](https://x402.org)
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
Drop-in middleware for [Model Context Protocol (MCP)](https://modelcontextprotocol.io) servers
|
|
12
|
+
that lets AI agents autonomously pay for tool access using the
|
|
13
|
+
[x402 protocol](https://x402.org) — no API keys, no subscriptions, no human in the loop.
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
npx @scriptmasterlabs/mcp-x402
|
|
13
|
-
```
|
|
15
|
+
**Powered by [ScriptMasterLabs](https://scriptmasterlabs.com)**
|
|
14
16
|
|
|
15
17
|
---
|
|
16
18
|
|
|
17
|
-
##
|
|
19
|
+
## What is x402?
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
- A human to top up credits when they run out
|
|
23
|
-
- A human to rotate keys when they expire
|
|
21
|
+
The **x402 protocol** revives the dormant HTTP `402 Payment Required` status code as a
|
|
22
|
+
machine-native payment standard. When an AI agent calls a gated API and gets a 402 response,
|
|
23
|
+
it automatically pays using blockchain rails and retries the request with a payment proof header.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Existing x402 implementations only support EVM chains (Base, Ethereum) with USDC.
|
|
26
|
+
**mcp-x402-xrpl is the only x402 implementation for XRPL and Xahau.**
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
---
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
## How it works
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
```
|
|
33
|
+
Agent → POST /tools/premium-query
|
|
34
|
+
↓
|
|
35
|
+
Server ← HTTP 402 X-Payment-Requirements: { destination, amountDrops, currency: "XRP" }
|
|
36
|
+
↓
|
|
37
|
+
Middleware signs XRPL payment tx (wallet.sign → submit)
|
|
38
|
+
↓
|
|
39
|
+
XRPL/Xahau confirms in ~3 seconds
|
|
40
|
+
↓
|
|
41
|
+
Agent → POST /tools/premium-query X-Payment-Proof: { txHash, ledgerIndex, payer }
|
|
42
|
+
↓
|
|
43
|
+
Server verifies proof on-ledger → 200 OK + tool result
|
|
44
|
+
```
|
|
32
45
|
|
|
33
46
|
---
|
|
34
47
|
|
|
35
|
-
##
|
|
48
|
+
## Quick start
|
|
36
49
|
|
|
37
50
|
```bash
|
|
38
|
-
npm
|
|
51
|
+
npm install @scriptmasterlabs/mcp-x402 xrpl express
|
|
39
52
|
```
|
|
40
53
|
|
|
41
|
-
|
|
54
|
+
### Gate an MCP tool (server side)
|
|
42
55
|
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
```typescript
|
|
57
|
+
import express from "express";
|
|
58
|
+
import { createPaymentGate } from "@scriptmasterlabs/mcp-x402";
|
|
59
|
+
|
|
60
|
+
const app = express();
|
|
61
|
+
app.use(express.json());
|
|
62
|
+
|
|
63
|
+
app.post(
|
|
64
|
+
"/tools/market-data",
|
|
65
|
+
createPaymentGate({
|
|
66
|
+
destination: "rYourXRPLReceivingAddress",
|
|
67
|
+
amountDrops: "100000", // 0.1 XRP per tool call
|
|
68
|
+
currency: "XRP",
|
|
69
|
+
description: "Real-time market data — 0.1 XRP per query",
|
|
70
|
+
}),
|
|
71
|
+
(req, res) => {
|
|
72
|
+
res.json({ price: 0.52, timestamp: Date.now() });
|
|
50
73
|
}
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
For Cursor (SSE mode), add to your MCP settings:
|
|
74
|
+
);
|
|
55
75
|
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
"mcp-x402": {
|
|
59
|
-
"url": "http://localhost:3402/sse"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
76
|
+
app.listen(3402);
|
|
62
77
|
```
|
|
63
78
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## Architecture
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
Claude / Cursor
|
|
72
|
-
│
|
|
73
|
-
▼ MCP Protocol (stdio / SSE)
|
|
74
|
-
mcp-x402 Server
|
|
75
|
-
├─ Input validation (Zod, 100% coverage)
|
|
76
|
-
├─ Rate limiter (100/min per tool)
|
|
77
|
-
├─ AP2 Mandate check (deny-by-default)
|
|
78
|
-
├─ Credit Bureau check (min score 300)
|
|
79
|
-
├─ Price registry (60s max cache)
|
|
80
|
-
├─ x402 payment engine
|
|
81
|
-
│ ├─ Base USDC (preferred, <3s)
|
|
82
|
-
│ ├─ XRPL RLUSD (500ms fallback)
|
|
83
|
-
│ └─ Solana USDC (last resort)
|
|
84
|
-
├─ 402Proof receipt generation
|
|
85
|
-
├─ SML API call (mTLS)
|
|
86
|
-
└─ Append-only SHA-256 audit log
|
|
87
|
-
│
|
|
88
|
-
▼ Result + receipt_id back to agent
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## The 6 Tools
|
|
94
|
-
|
|
95
|
-
### `leviathan_signal` — $0.05 USDC | AP2 required
|
|
96
|
-
Institutional-grade squeeze signals. Multi-engine verdict (OracleEngine + RDT + SML Fractal Cascade).
|
|
79
|
+
### Pay for a tool (agent / client side)
|
|
97
80
|
|
|
98
81
|
```typescript
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
82
|
+
import { createX402Middleware } from "@scriptmasterlabs/mcp-x402";
|
|
83
|
+
import express from "express";
|
|
84
|
+
|
|
85
|
+
const agentApp = express();
|
|
86
|
+
agentApp.use(
|
|
87
|
+
createX402Middleware({
|
|
88
|
+
walletSeed: process.env.XRPL_WALLET_SEED!,
|
|
89
|
+
network: "xrpl-mainnet",
|
|
90
|
+
maxPaymentDrops: "1000000", // 1 XRP safety cap per request
|
|
91
|
+
})
|
|
92
|
+
);
|
|
105
93
|
```
|
|
106
94
|
|
|
107
|
-
###
|
|
108
|
-
Parse SEC DEF 14A / 13F / 13D filings. Raw text never leaves SML servers.
|
|
95
|
+
### Drop-in MCP server wrapper
|
|
109
96
|
|
|
110
97
|
```typescript
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
98
|
+
import { wrapMcpServer } from "@scriptmasterlabs/mcp-x402";
|
|
99
|
+
|
|
100
|
+
const server = wrapMcpServer({
|
|
101
|
+
x402: {
|
|
102
|
+
walletSeed: process.env.XRPL_WALLET_SEED!,
|
|
103
|
+
network: "xrpl-mainnet",
|
|
104
|
+
},
|
|
105
|
+
tools: [
|
|
106
|
+
{
|
|
107
|
+
name: "premium-query",
|
|
108
|
+
description: "AI-powered XRPL data analysis",
|
|
109
|
+
pricing: {
|
|
110
|
+
destination: "rYourAddress",
|
|
111
|
+
amountDrops: "100000",
|
|
112
|
+
currency: "XRP",
|
|
113
|
+
},
|
|
114
|
+
handler: async (params) => {
|
|
115
|
+
return { result: "your tool output here" };
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
],
|
|
115
119
|
});
|
|
120
|
+
|
|
121
|
+
server.listen(); // Starts on port 3402
|
|
116
122
|
```
|
|
117
123
|
|
|
118
|
-
###
|
|
119
|
-
Decentralized earnings oracle. Earns +2 Credit Bureau points per successful call.
|
|
124
|
+
### Run the testnet demo
|
|
120
125
|
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
```bash
|
|
127
|
+
git clone https://github.com/Timwal78/mcp-x402-xrpl
|
|
128
|
+
cd mcp-x402-xrpl
|
|
129
|
+
npm install
|
|
130
|
+
npm run build
|
|
131
|
+
node examples/pay-per-tool.js
|
|
127
132
|
```
|
|
128
133
|
|
|
129
|
-
|
|
130
|
-
SEC Reg SHO FTD spike detection. 15-minute cache.
|
|
134
|
+
---
|
|
131
135
|
|
|
132
|
-
|
|
133
|
-
// Free tier:
|
|
134
|
-
await use_mcp_tool('sml', 'ftd_threshold_scan', { scan_type: 'alerts' });
|
|
135
|
-
// Paid tier:
|
|
136
|
-
await use_mcp_tool('sml', 'ftd_threshold_scan', { scan_type: 'full', min_spike_multiplier: 3 });
|
|
137
|
-
```
|
|
136
|
+
## Supported networks & currencies
|
|
138
137
|
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
| Network | Chain | Currency | Settlement time | Avg fee |
|
|
139
|
+
|---------|-------|----------|-----------------|---------|
|
|
140
|
+
| `xrpl-mainnet` | XRP Ledger | XRP (drops) | ~3 sec | 0.00001 XRP |
|
|
141
|
+
| `xrpl-mainnet` | XRP Ledger | RLUSD (IOU) | ~3 sec | 0.00001 XRP |
|
|
142
|
+
| `xrpl-testnet` | XRP Ledger testnet | XRP | ~3 sec | free |
|
|
143
|
+
| `xahau-mainnet` | Xahau | XAH (drops) | ~3 sec | 0.00001 XAH |
|
|
144
|
+
| `xahau-testnet` | Xahau testnet | XAH | ~3 sec | free |
|
|
141
145
|
|
|
142
|
-
|
|
143
|
-
// Free query:
|
|
144
|
-
await use_mcp_tool('sml', 'nexus_agent_hire', { capability: 'options flow analysis', max_budget: '1.00', action: 'query' });
|
|
145
|
-
// Hire:
|
|
146
|
-
await use_mcp_tool('sml', 'nexus_agent_hire', { action: 'hire', agent_id: 'agent_abc', max_budget: '0.50' });
|
|
147
|
-
```
|
|
146
|
+
---
|
|
148
147
|
|
|
149
|
-
|
|
150
|
-
Pay-per-fetch web scraping. Humans bypass automatically.
|
|
148
|
+
## XRPL vs EVM: x402 settlement comparison
|
|
151
149
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
| Feature | mcp-x402-xrpl (XRPL) | EVM x402 (Base/Ethereum) |
|
|
151
|
+
|---------|----------------------|--------------------------|
|
|
152
|
+
| Settlement finality | ~3 seconds | ~2 sec (Base) / ~12 sec (ETH) |
|
|
153
|
+
| Avg tx fee | $0.000005 | $0.001–$0.10 |
|
|
154
|
+
| Stablecoin support | RLUSD | USDC |
|
|
155
|
+
| Custodian required | ❌ No | ❌ No |
|
|
156
|
+
| Smart contract risk | ❌ Minimal (no EVM) | ⚠️ EVM surface area |
|
|
157
|
+
| DID / Identity | ✅ Xahau Hooks (XAH) | ⚠️ External |
|
|
158
|
+
| MCP x402 package | `@scriptmasterlabs/mcp-x402` | `@x402/mcp`, `mcp-go-x402` |
|
|
158
159
|
|
|
159
160
|
---
|
|
160
161
|
|
|
161
|
-
##
|
|
162
|
-
|
|
163
|
-
1. **Discover** — Agent reads `agents.json` or `llms.txt`, sees tool prices
|
|
164
|
-
2. **Authorize** — AP2 mandate checked. Credit Bureau score ≥ 300 auto-approves
|
|
165
|
-
3. **Pay** — x402 stablecoin on cheapest/fastest chain (<3s on Base)
|
|
166
|
-
4. **Prove** — 402Proof receipt in every response
|
|
167
|
-
5. **Earn** — Credit Bureau score updates after success
|
|
168
|
-
|
|
169
|
-
Every successful tool call returns a `_meta` block:
|
|
170
|
-
```json
|
|
171
|
-
{
|
|
172
|
-
"_meta": {
|
|
173
|
-
"receipt_id": "uuid-here",
|
|
174
|
-
"tx_hash": "0xabc...",
|
|
175
|
-
"chain": "base",
|
|
176
|
-
"amount_paid": "0.05 USDC",
|
|
177
|
-
"timestamp": 1750000000000
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
```
|
|
162
|
+
## API reference
|
|
181
163
|
|
|
182
|
-
|
|
164
|
+
### `createX402Middleware(opts)` → Express middleware
|
|
183
165
|
|
|
184
|
-
|
|
166
|
+
Intercepts `X-Payment-Requirements` headers on incoming requests and
|
|
167
|
+
automatically fulfils them using the configured XRPL wallet.
|
|
185
168
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
169
|
+
| Option | Type | Default | Description |
|
|
170
|
+
|--------|------|---------|-------------|
|
|
171
|
+
| `walletSeed` | `string` | required | XRPL family seed (sEdT...) |
|
|
172
|
+
| `network` | `XrplNetwork` | `"xrpl-mainnet"` | Network to use |
|
|
173
|
+
| `maxPaymentDrops` | `string` | none | Safety cap per request |
|
|
190
174
|
|
|
191
|
-
|
|
192
|
-
```typescript
|
|
193
|
-
import { x402Payment } from '@scriptmasterlabs/mcp-x402-sdk';
|
|
194
|
-
|
|
195
|
-
server.tool(
|
|
196
|
-
'my_paid_tool',
|
|
197
|
-
myInputSchema,
|
|
198
|
-
x402Payment({
|
|
199
|
-
price: '0.01',
|
|
200
|
-
currency: 'USDC',
|
|
201
|
-
inputSchema: MyZodSchema,
|
|
202
|
-
handler: async (input, receipt) => ({
|
|
203
|
-
content: [{ type: 'text', text: JSON.stringify({ result: await myApi(input), receipt }) }],
|
|
204
|
-
}),
|
|
205
|
-
}),
|
|
206
|
-
);
|
|
207
|
-
```
|
|
175
|
+
### `createPaymentGate(opts)` → Express middleware
|
|
208
176
|
|
|
209
|
-
|
|
177
|
+
Issues HTTP 402 challenges to callers without a valid payment proof.
|
|
210
178
|
|
|
211
|
-
|
|
179
|
+
| Option | Type | Default | Description |
|
|
180
|
+
|--------|------|---------|-------------|
|
|
181
|
+
| `destination` | `string` | required | XRPL receiving address |
|
|
182
|
+
| `amountDrops` | `string` | — | XRP amount in drops |
|
|
183
|
+
| `amount` | `string` | — | Non-XRP amount (RLUSD/XAH) |
|
|
184
|
+
| `currency` | `"XRP"\|"RLUSD"\|"XAH"` | `"XRP"` | Settlement currency |
|
|
185
|
+
| `destinationTag` | `number` | — | Optional destination tag |
|
|
212
186
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
| Requirement | Implementation |
|
|
216
|
-
|-------------|----------------|
|
|
217
|
-
| Keys in OS keychain only | `keytar` — macOS Keychain / Windows DPAPI / Linux Secret Service |
|
|
218
|
-
| mTLS on SML APIs | Pinned cert via `node-forge` |
|
|
219
|
-
| No PII in logs | Wallet addresses hashed (SHA-256 prefix), filing content redacted |
|
|
220
|
-
| Zod on all inputs | 100% coverage, validated before any execution |
|
|
221
|
-
| Append-only audit log | SHA-256 HMAC chained log, 7-day local + cloud backup |
|
|
222
|
-
| AP2 mandate required | Verified before every paid call, fail-closed |
|
|
223
|
-
| 402Proof receipt | Every transaction, registered with proof server |
|
|
224
|
-
| Credit Bureau check | min score 300 for auto-approve |
|
|
225
|
-
| $50 daily spend cap | Per wallet, enforced in-process |
|
|
226
|
-
| Testnet in CI | Base Sepolia only, max $0.10 test value |
|
|
227
|
-
| <3s end-to-end | Base mainnet target, 500ms multi-chain fallback |
|
|
187
|
+
### `wrapMcpServer(opts)` → `{ app, listen }`
|
|
228
188
|
|
|
229
|
-
|
|
189
|
+
Spins up a complete MCP-compatible Express server with per-tool x402 gating.
|
|
230
190
|
|
|
231
|
-
|
|
191
|
+
### `XrplFacilitator`
|
|
232
192
|
|
|
233
|
-
|
|
193
|
+
Low-level class for direct payment signing and proof verification.
|
|
234
194
|
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
XRPL_RPC_URL=wss://xrplcluster.com
|
|
240
|
-
DAILY_SPEND_CAP_USD=50
|
|
241
|
-
AUTO_APPROVE_THRESHOLD_USD=1
|
|
242
|
-
TESTNET=false # Set true + CI_WALLET_SEED for CI
|
|
195
|
+
```typescript
|
|
196
|
+
const facilitator = new XrplFacilitator({ walletSeed, network });
|
|
197
|
+
const proof = await facilitator.pay(requirements);
|
|
198
|
+
const valid = await facilitator.verify(proof, requirements);
|
|
243
199
|
```
|
|
244
200
|
|
|
245
|
-
**Private keys**: Stored in your OS keychain automatically on first run. Never in env vars.
|
|
246
|
-
|
|
247
201
|
---
|
|
248
202
|
|
|
249
|
-
##
|
|
203
|
+
## FAQ
|
|
250
204
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
npm run build
|
|
256
|
-
npm start
|
|
257
|
-
```
|
|
205
|
+
**Q: What is mcp-x402?**
|
|
206
|
+
A: mcp-x402 is a Node.js/TypeScript library that adds HTTP 402 payment gating to any
|
|
207
|
+
MCP server using the XRP Ledger or Xahau as the payment rail. AI agents pay per tool call
|
|
208
|
+
autonomously — no human intervention needed.
|
|
258
209
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
docker run -p 3402:3402 -e MCP_TRANSPORT=sse mcp-x402
|
|
263
|
-
```
|
|
210
|
+
**Q: Does this support Xahau and XAH?**
|
|
211
|
+
A: Yes. All four networks are supported: XRPL mainnet, XRPL testnet, Xahau mainnet,
|
|
212
|
+
and Xahau testnet. XAH (Xahau's native currency) can be used for tool payments.
|
|
264
213
|
|
|
265
|
-
|
|
214
|
+
**Q: Is mcp-x402-xrpl the only x402 implementation for XRPL?**
|
|
215
|
+
A: Yes. As of mid-2025, all other x402 packages (MetaMask's `mcp-x402`, Civic Team's
|
|
216
|
+
`x402-mcp`, mark3labs' `mcp-go-x402`) target EVM chains only. This is the first
|
|
217
|
+
and only XRPL/Xahau x402 facilitator.
|
|
266
218
|
|
|
267
|
-
|
|
219
|
+
**Q: How is x402 different from an API key?**
|
|
220
|
+
A: API keys require human signup, billing setup, and account management — incompatible
|
|
221
|
+
with fully autonomous AI agents. x402 is HTTP-native: the agent pays cryptographically
|
|
222
|
+
on-chain per request, verified automatically by the server.
|
|
268
223
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
TESTNET=true CI_WALLET_SEED="your mnemonic" npm run test:integration
|
|
273
|
-
```
|
|
224
|
+
**Q: Can I use RLUSD instead of XRP?**
|
|
225
|
+
A: Yes. Pass `currency: "RLUSD"` and `amount: "0.10"` (human-readable string)
|
|
226
|
+
instead of `amountDrops`. RLUSD settles on XRPL with the same 3-second finality.
|
|
274
227
|
|
|
275
|
-
|
|
228
|
+
**Q: Do I need an XRPL node?**
|
|
229
|
+
A: No. The library connects to public XRPL cluster nodes (`xrplcluster.com` for mainnet,
|
|
230
|
+
`s.altnet.rippletest.net` for testnet) automatically.
|
|
276
231
|
|
|
277
|
-
|
|
232
|
+
**Q: Is this related to ZeroQuery?**
|
|
233
|
+
A: Yes. ZeroQuery (Proof-of-Intent Protocol) uses the x402 escrow pattern on Solana
|
|
234
|
+
and is being extended to XRPL via this library. mcp-x402-xrpl is the XRPL payment
|
|
235
|
+
settlement layer for the ZeroQuery ecosystem.
|
|
278
236
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
| SqueezeOS API | `squeezeos-api.onrender.com` | Market intelligence |
|
|
282
|
-
| 402Proof | `four02proof.onrender.com` | Payment receipts + Credit Bureau |
|
|
283
|
-
| Ghost Layer | `ghost-layer.onrender.com` | XRPL+Base toll gateway |
|
|
284
|
-
| ScriptMasterLabs | `scriptmasterlabs.com` | Operator homepage |
|
|
237
|
+
**Q: What is the npm package name?**
|
|
238
|
+
A: `@scriptmasterlabs/mcp-x402`. Install with `npm install @scriptmasterlabs/mcp-x402`.
|
|
285
239
|
|
|
286
240
|
---
|
|
287
241
|
|
|
288
|
-
##
|
|
242
|
+
## Related projects
|
|
289
243
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
-
|
|
293
|
-
-
|
|
294
|
-
|
|
244
|
+
| Project | Description |
|
|
245
|
+
|---------|-------------|
|
|
246
|
+
| [ZeroQuery Protocol](https://github.com/Timwal78/zeroquery-protocol) | Proof-of-Intent — AI-to-AI intent resolution with x402 escrow |
|
|
247
|
+
| [AGO Orchestrator](https://github.com/Timwal78/ago-orchestrator) | Autonomous GEO agent for content distribution and gap analysis |
|
|
248
|
+
| [ScriptMasterLabs](https://scriptmasterlabs.com) | Home base — autonomous agent infrastructure |
|
|
295
249
|
|
|
296
250
|
---
|
|
297
251
|
|
|
298
252
|
## License
|
|
299
253
|
|
|
300
|
-
|
|
254
|
+
Apache-2.0 — See [LICENSE](LICENSE).
|
|
255
|
+
|
|
256
|
+
Built by [ScriptMasterLabs](https://scriptmasterlabs.com).
|
|
257
|
+
|
|
258
|
+
---
|
|
301
259
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
260
|
+
*Keywords: mcp x402 xrpl, mcp-x402 xrpl, x402 payment xrpl, autonomous agent payments xrpl,
|
|
261
|
+
http 402 xahau, mcp tool payment middleware, xrpl mcp payment, rlusd mcp x402,
|
|
262
|
+
xah autonomous payment, model context protocol payment, agentic commerce xrpl*
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @scriptmasterlabs/mcp-x402 — Public API barrel
|
|
3
|
+
*
|
|
4
|
+
* Everything a consumer needs is exported from this single file.
|
|
5
|
+
*/
|
|
6
|
+
export { createX402Middleware, createPaymentGate } from "./x402-middleware.js";
|
|
7
|
+
export type { X402MiddlewareOptions, PaymentGateOptions, PaymentRequirements, PaymentProof } from "./x402-middleware.js";
|
|
8
|
+
export { XrplFacilitator } from "./xrpl-facilitator.js";
|
|
9
|
+
export type { XrplFacilitatorOptions, XrplNetwork } from "./xrpl-facilitator.js";
|
|
10
|
+
export { wrapMcpServer } from "./mcp-wrapper.js";
|
|
11
|
+
export type { McpTool, McpToolWithPricing, McpServerOptions } from "./mcp-wrapper.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,YAAY,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @scriptmasterlabs/mcp-x402 — Public API barrel
|
|
3
|
+
*
|
|
4
|
+
* Everything a consumer needs is exported from this single file.
|
|
5
|
+
*/
|
|
6
|
+
export { createX402Middleware, createPaymentGate } from "./x402-middleware.js";
|
|
7
|
+
export { XrplFacilitator } from "./xrpl-facilitator.js";
|
|
8
|
+
export { wrapMcpServer } from "./mcp-wrapper.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|