@xrpl-utilities/mcp 0.1.23 → 0.1.25

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.
@@ -10,7 +10,8 @@ import { sentinel } from "./sentinel.js";
10
10
  import { pulse } from "./pulse.js";
11
11
  import { telemetry } from "./telemetry.js";
12
12
  import { trust } from "./trust.js";
13
- export const SERVICES = [sentinel, pulse, telemetry, trust];
13
+ import { vault } from "./vault.js";
14
+ export const SERVICES = [sentinel, pulse, telemetry, trust, vault];
14
15
  /** Flat list of every tool across every registered service. */
15
16
  export const ALL_TOOLS = SERVICES.flatMap((s) => s.tools.map((t) => ({ ...t, _serviceId: s.id, _baseUrl: s.baseUrl })));
16
17
  /** Look up the owning service for a given tool name. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,CAAC,MAAM,QAAQ,GAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;AAE1E,+DAA+D;AAC/D,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAC9C,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CACtE,CAAC;AAEF,wDAAwD;AACxD,MAAM,UAAU,aAAa,CAAC,QAAgB;IAG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AAC,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;QAC5D,IAAI,IAAI;YAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACrC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * XR-Vault: real-world asset tracker for the XRP Ledger.
3
+ *
4
+ * Single paid endpoint: POST /scan returns a per-issuer deep dive
5
+ * (current circulating, 24h mint/burn flow, AMM-of-RWA pool exposure,
6
+ * accruing daily history). Native unit-of-account only — no fabricated
7
+ * USD valuation. $0.10 USD per call via x402.
8
+ */
9
+ import type { ServiceDef } from "../types.js";
10
+ export declare const vault: ServiceDef;
@@ -0,0 +1,59 @@
1
+ /**
2
+ * XR-Vault: real-world asset tracker for the XRP Ledger.
3
+ *
4
+ * Single paid endpoint: POST /scan returns a per-issuer deep dive
5
+ * (current circulating, 24h mint/burn flow, AMM-of-RWA pool exposure,
6
+ * accruing daily history). Native unit-of-account only — no fabricated
7
+ * USD valuation. $0.10 USD per call via x402.
8
+ */
9
+ export const vault = {
10
+ id: "vault",
11
+ label: "XR-Vault",
12
+ baseUrl: "https://vault.xrpl-utilities.io",
13
+ manifestUrl: "https://vault.xrpl-utilities.io/agents.json",
14
+ knownSchemaVersions: ["1.0.0", "1.0.1"],
15
+ tools: [
16
+ {
17
+ name: "xrpl_vault_scan",
18
+ description: "Per-issuer real-world-asset deep dive on the XRP Ledger. Accepts " +
19
+ "{issuer: <wallet OR logical_label OR currency>} and returns the " +
20
+ "issuer's metadata, current obligations + net-circulating supply " +
21
+ "(treasury-adjusted where applicable), trustline count, last-24h " +
22
+ "mint and burn flow, AMM-of-RWA pool exposure (every XLS-30 pool " +
23
+ "containing this issuer's IOU with native-unit balances + LP " +
24
+ "supply), and a daily history series that accrues over time. " +
25
+ "Tracked issuer set covers Ondo OUSG (permissioned + public), " +
26
+ "Schuman EUROP, Braza USDB, Braza BBRL, SG-FORGE EURCV, Guggenheim " +
27
+ "DCP (Zeconomy SPV), Justoken JMWH (in MWh, not USD), OpenEden " +
28
+ "TBL, Ripple RLUSD, AUDD, plus Archax abrdn USD Liquidity Fund as " +
29
+ "rails-only for first-mint capture. $0.10 USD per call paid via " +
30
+ "x402 v2 (XRP or RLUSD via t54 facilitator).",
31
+ inputSchema: {
32
+ type: "object",
33
+ properties: {
34
+ issuer: {
35
+ type: "string",
36
+ description: "Wallet (r-prefix XRPL classic address; exact match) OR " +
37
+ "logical_label (e.g. 'Ondo OUSG', 'Justoken JMWH'; " +
38
+ "case-insensitive) OR currency code (e.g. 'OUSG', 'TBL', " +
39
+ "'RLUSD'; case-insensitive). Resolution priority: wallet > " +
40
+ "logical_label > currency. Returns 404 when no tracked " +
41
+ "issuer matches.",
42
+ },
43
+ payment_signature: {
44
+ type: "string",
45
+ description: "x402 v2 PAYMENT-SIGNATURE header.",
46
+ },
47
+ },
48
+ required: ["issuer"],
49
+ additionalProperties: false,
50
+ },
51
+ method: "POST",
52
+ path: "/scan",
53
+ authMode: "inline_x402",
54
+ bodyFromArgs: true,
55
+ stripArgs: ["payment_signature"],
56
+ },
57
+ ],
58
+ };
59
+ //# sourceMappingURL=vault.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vault.js","sourceRoot":"","sources":["../../src/services/vault.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,KAAK,GAAe;IAC/B,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,iCAAiC;IAC1C,WAAW,EAAE,6CAA6C;IAC1D,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;IACvC,KAAK,EAAE;QACL;YACE,IAAI,EAAE,iBAAiB;YACvB,WAAW,EACT,mEAAmE;gBACnE,kEAAkE;gBAClE,kEAAkE;gBAClE,kEAAkE;gBAClE,kEAAkE;gBAClE,8DAA8D;gBAC9D,8DAA8D;gBAC9D,+DAA+D;gBAC/D,oEAAoE;gBACpE,gEAAgE;gBAChE,mEAAmE;gBACnE,iEAAiE;gBACjE,6CAA6C;YAC/C,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,yDAAyD;4BACzD,oDAAoD;4BACpD,0DAA0D;4BAC1D,4DAA4D;4BAC5D,wDAAwD;4BACxD,iBAAiB;qBACpB;oBACD,iBAAiB,EAAE;wBACjB,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,mCAAmC;qBACjD;iBACF;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,oBAAoB,EAAE,KAAK;aAC5B;YACD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,aAAa;YACvB,YAAY,EAAE,IAAI;YAClB,SAAS,EAAE,CAAC,mBAAmB,CAAC;SACjC;KACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xrpl-utilities/mcp",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Model Context Protocol server for the XRPL-Utilities portfolio: Sentinel (wallet classifier), Pulse (signal feed), Telemetry (supply + utility floor), and Trust (XLS-70/80/81 directory). Exposes each service's read endpoints as MCP tools so AI agents can discover and use them via stdio (Claude Desktop) or HTTP/SSE (hosted at mcp.xrpl-utilities.io). Stateless passthrough — caller provides their own x402 payment header.",
5
5
  "license": "MIT",
6
6
  "type": "module",