@settlemint/sdk-mcp 2.3.2-pr27792ff1 → 2.3.2-pr27e77ed4
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/dist/mcp.js +88 -28
- package/dist/mcp.js.map +4 -4
- package/package.json +3 -3
package/dist/mcp.js
CHANGED
|
@@ -29561,7 +29561,7 @@ var require_webcrypto = __commonJS((exports) => {
|
|
|
29561
29561
|
exports.gcm = /* @__PURE__ */ (() => generate(mode.GCM))();
|
|
29562
29562
|
});
|
|
29563
29563
|
|
|
29564
|
-
// ../../node_modules
|
|
29564
|
+
// ../../node_modules/@noble/hashes/cryptoNode.js
|
|
29565
29565
|
var require_cryptoNode2 = __commonJS((exports) => {
|
|
29566
29566
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29567
29567
|
exports.crypto = undefined;
|
|
@@ -29569,7 +29569,7 @@ var require_cryptoNode2 = __commonJS((exports) => {
|
|
|
29569
29569
|
exports.crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
|
|
29570
29570
|
});
|
|
29571
29571
|
|
|
29572
|
-
// ../../node_modules
|
|
29572
|
+
// ../../node_modules/@noble/hashes/utils.js
|
|
29573
29573
|
var require_utils7 = __commonJS((exports) => {
|
|
29574
29574
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
29575
29575
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -29806,7 +29806,7 @@ var require_utils7 = __commonJS((exports) => {
|
|
|
29806
29806
|
}
|
|
29807
29807
|
});
|
|
29808
29808
|
|
|
29809
|
-
// ../../node_modules
|
|
29809
|
+
// ../../node_modules/@noble/hashes/_md.js
|
|
29810
29810
|
var require__md = __commonJS((exports) => {
|
|
29811
29811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29812
29812
|
exports.SHA512_IV = exports.SHA384_IV = exports.SHA224_IV = exports.SHA256_IV = exports.HashMD = undefined;
|
|
@@ -29982,7 +29982,7 @@ var require__md = __commonJS((exports) => {
|
|
|
29982
29982
|
]);
|
|
29983
29983
|
});
|
|
29984
29984
|
|
|
29985
|
-
// ../../node_modules
|
|
29985
|
+
// ../../node_modules/@noble/hashes/_u64.js
|
|
29986
29986
|
var require__u64 = __commonJS((exports) => {
|
|
29987
29987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29988
29988
|
exports.toBig = exports.shrSL = exports.shrSH = exports.rotrSL = exports.rotrSH = exports.rotrBL = exports.rotrBH = exports.rotr32L = exports.rotr32H = exports.rotlSL = exports.rotlSH = exports.rotlBL = exports.rotlBH = exports.add5L = exports.add5H = exports.add4L = exports.add4H = exports.add3L = exports.add3H = undefined;
|
|
@@ -30075,7 +30075,7 @@ var require__u64 = __commonJS((exports) => {
|
|
|
30075
30075
|
exports.default = u64;
|
|
30076
30076
|
});
|
|
30077
30077
|
|
|
30078
|
-
// ../../node_modules
|
|
30078
|
+
// ../../node_modules/@noble/hashes/sha2.js
|
|
30079
30079
|
var require_sha2 = __commonJS((exports) => {
|
|
30080
30080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30081
30081
|
exports.sha512_224 = exports.sha512_256 = exports.sha384 = exports.sha512 = exports.sha224 = exports.sha256 = exports.SHA512_256 = exports.SHA512_224 = exports.SHA384 = exports.SHA512 = exports.SHA224 = exports.SHA256 = undefined;
|
|
@@ -30545,7 +30545,7 @@ var require_sha2 = __commonJS((exports) => {
|
|
|
30545
30545
|
exports.sha512_224 = (0, utils_ts_1.createHasher)(() => new SHA512_224);
|
|
30546
30546
|
});
|
|
30547
30547
|
|
|
30548
|
-
// ../../node_modules
|
|
30548
|
+
// ../../node_modules/@noble/curves/abstract/utils.js
|
|
30549
30549
|
var require_utils8 = __commonJS((exports) => {
|
|
30550
30550
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
30551
30551
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -30819,7 +30819,7 @@ var require_utils8 = __commonJS((exports) => {
|
|
|
30819
30819
|
}
|
|
30820
30820
|
});
|
|
30821
30821
|
|
|
30822
|
-
// ../../node_modules
|
|
30822
|
+
// ../../node_modules/@noble/curves/abstract/modular.js
|
|
30823
30823
|
var require_modular = __commonJS((exports) => {
|
|
30824
30824
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30825
30825
|
exports.isNegativeLE = undefined;
|
|
@@ -31149,7 +31149,7 @@ var require_modular = __commonJS((exports) => {
|
|
|
31149
31149
|
}
|
|
31150
31150
|
});
|
|
31151
31151
|
|
|
31152
|
-
// ../../node_modules
|
|
31152
|
+
// ../../node_modules/@noble/curves/abstract/curve.js
|
|
31153
31153
|
var require_curve = __commonJS((exports) => {
|
|
31154
31154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31155
31155
|
exports.wNAF = wNAF;
|
|
@@ -31398,7 +31398,7 @@ var require_curve = __commonJS((exports) => {
|
|
|
31398
31398
|
}
|
|
31399
31399
|
});
|
|
31400
31400
|
|
|
31401
|
-
// ../../node_modules
|
|
31401
|
+
// ../../node_modules/@noble/curves/abstract/edwards.js
|
|
31402
31402
|
var require_edwards = __commonJS((exports) => {
|
|
31403
31403
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31404
31404
|
exports.twistedEdwards = twistedEdwards;
|
|
@@ -31757,7 +31757,7 @@ var require_edwards = __commonJS((exports) => {
|
|
|
31757
31757
|
}
|
|
31758
31758
|
});
|
|
31759
31759
|
|
|
31760
|
-
// ../../node_modules
|
|
31760
|
+
// ../../node_modules/@noble/curves/abstract/hash-to-curve.js
|
|
31761
31761
|
var require_hash_to_curve = __commonJS((exports) => {
|
|
31762
31762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31763
31763
|
exports.expand_message_xmd = expand_message_xmd;
|
|
@@ -31910,7 +31910,7 @@ var require_hash_to_curve = __commonJS((exports) => {
|
|
|
31910
31910
|
}
|
|
31911
31911
|
});
|
|
31912
31912
|
|
|
31913
|
-
// ../../node_modules
|
|
31913
|
+
// ../../node_modules/@noble/curves/abstract/montgomery.js
|
|
31914
31914
|
var require_montgomery = __commonJS((exports) => {
|
|
31915
31915
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31916
31916
|
exports.montgomery = montgomery;
|
|
@@ -32017,7 +32017,7 @@ var require_montgomery = __commonJS((exports) => {
|
|
|
32017
32017
|
}
|
|
32018
32018
|
});
|
|
32019
32019
|
|
|
32020
|
-
// ../../node_modules
|
|
32020
|
+
// ../../node_modules/@noble/curves/ed25519.js
|
|
32021
32021
|
var require_ed25519 = __commonJS((exports) => {
|
|
32022
32022
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32023
32023
|
exports.hash_to_ristretto255 = exports.hashToRistretto255 = exports.RistrettoPoint = exports.encodeToCurve = exports.hashToCurve = exports.ed25519_hasher = exports.edwardsToMontgomery = exports.x25519 = exports.ed25519ph = exports.ed25519ctx = exports.ed25519 = exports.ED25519_TORSION_SUBGROUP = undefined;
|
|
@@ -32381,7 +32381,7 @@ var require_ed25519 = __commonJS((exports) => {
|
|
|
32381
32381
|
exports.hash_to_ristretto255 = exports.hashToRistretto255;
|
|
32382
32382
|
});
|
|
32383
32383
|
|
|
32384
|
-
// ../../node_modules
|
|
32384
|
+
// ../../node_modules/@noble/hashes/hmac.js
|
|
32385
32385
|
var require_hmac = __commonJS((exports) => {
|
|
32386
32386
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32387
32387
|
exports.hmac = exports.HMAC = undefined;
|
|
@@ -32457,7 +32457,7 @@ var require_hmac = __commonJS((exports) => {
|
|
|
32457
32457
|
exports.hmac.create = (hash, key) => new HMAC(hash, key);
|
|
32458
32458
|
});
|
|
32459
32459
|
|
|
32460
|
-
// ../../node_modules
|
|
32460
|
+
// ../../node_modules/@noble/curves/abstract/weierstrass.js
|
|
32461
32461
|
var require_weierstrass = __commonJS((exports) => {
|
|
32462
32462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32463
32463
|
exports.DER = exports.DERErr = undefined;
|
|
@@ -33376,7 +33376,7 @@ var require_weierstrass = __commonJS((exports) => {
|
|
|
33376
33376
|
}
|
|
33377
33377
|
});
|
|
33378
33378
|
|
|
33379
|
-
// ../../node_modules
|
|
33379
|
+
// ../../node_modules/@noble/curves/_shortw_utils.js
|
|
33380
33380
|
var require__shortw_utils = __commonJS((exports) => {
|
|
33381
33381
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33382
33382
|
exports.getHash = getHash;
|
|
@@ -33398,7 +33398,7 @@ var require__shortw_utils = __commonJS((exports) => {
|
|
|
33398
33398
|
}
|
|
33399
33399
|
});
|
|
33400
33400
|
|
|
33401
|
-
// ../../node_modules
|
|
33401
|
+
// ../../node_modules/@noble/curves/secp256k1.js
|
|
33402
33402
|
var require_secp256k1 = __commonJS((exports) => {
|
|
33403
33403
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33404
33404
|
exports.encodeToCurve = exports.hashToCurve = exports.secp256k1_hasher = exports.schnorr = exports.secp256k1 = undefined;
|
|
@@ -33724,7 +33724,7 @@ var require_elliptic = __commonJS((exports) => {
|
|
|
33724
33724
|
};
|
|
33725
33725
|
});
|
|
33726
33726
|
|
|
33727
|
-
// ../../node_modules
|
|
33727
|
+
// ../../node_modules/@noble/hashes/hkdf.js
|
|
33728
33728
|
var require_hkdf = __commonJS((exports) => {
|
|
33729
33729
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33730
33730
|
exports.hkdf = undefined;
|
|
@@ -72457,7 +72457,7 @@ var {
|
|
|
72457
72457
|
var package_default = {
|
|
72458
72458
|
name: "@settlemint/sdk-mcp",
|
|
72459
72459
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
72460
|
-
version: "2.3.2-
|
|
72460
|
+
version: "2.3.2-pr27e77ed4",
|
|
72461
72461
|
type: "module",
|
|
72462
72462
|
private: false,
|
|
72463
72463
|
license: "FSL-1.1-MIT",
|
|
@@ -72499,8 +72499,8 @@ var package_default = {
|
|
|
72499
72499
|
"@graphql-tools/load": "8.1.0",
|
|
72500
72500
|
"@graphql-tools/url-loader": "8.0.31",
|
|
72501
72501
|
"@modelcontextprotocol/sdk": "1.12.0",
|
|
72502
|
-
"@settlemint/sdk-js": "2.3.2-
|
|
72503
|
-
"@settlemint/sdk-utils": "2.3.2-
|
|
72502
|
+
"@settlemint/sdk-js": "2.3.2-pr27e77ed4",
|
|
72503
|
+
"@settlemint/sdk-utils": "2.3.2-pr27e77ed4",
|
|
72504
72504
|
"@commander-js/extra-typings": "14.0.0",
|
|
72505
72505
|
commander: "14.0.0",
|
|
72506
72506
|
zod: "^3.25.0"
|
|
@@ -73630,24 +73630,84 @@ ${Object.keys(rawSchemaInfo.queries).join(`
|
|
|
73630
73630
|
};
|
|
73631
73631
|
|
|
73632
73632
|
// ../utils/dist/http.mjs
|
|
73633
|
+
var maskTokens2 = (output) => {
|
|
73634
|
+
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
73635
|
+
};
|
|
73636
|
+
function createLogger(options = {}) {
|
|
73637
|
+
const { level = "warn", prefix = "" } = options;
|
|
73638
|
+
const logLevels = {
|
|
73639
|
+
debug: 0,
|
|
73640
|
+
info: 1,
|
|
73641
|
+
warn: 2,
|
|
73642
|
+
error: 3,
|
|
73643
|
+
none: 4
|
|
73644
|
+
};
|
|
73645
|
+
const currentLevelValue = logLevels[level];
|
|
73646
|
+
const formatArgs = (args) => {
|
|
73647
|
+
if (args.length === 0 || args.every((arg) => arg === undefined || arg === null)) {
|
|
73648
|
+
return "";
|
|
73649
|
+
}
|
|
73650
|
+
const formatted = args.map((arg) => {
|
|
73651
|
+
if (arg instanceof Error) {
|
|
73652
|
+
return `
|
|
73653
|
+
${arg.stack || arg.message}`;
|
|
73654
|
+
}
|
|
73655
|
+
if (typeof arg === "object" && arg !== null) {
|
|
73656
|
+
return `
|
|
73657
|
+
${JSON.stringify(arg, null, 2)}`;
|
|
73658
|
+
}
|
|
73659
|
+
return ` ${String(arg)}`;
|
|
73660
|
+
}).join("");
|
|
73661
|
+
return `, args:${formatted}`;
|
|
73662
|
+
};
|
|
73663
|
+
const shouldLog = (level2) => {
|
|
73664
|
+
return logLevels[level2] >= currentLevelValue;
|
|
73665
|
+
};
|
|
73666
|
+
return {
|
|
73667
|
+
debug: (message, ...args) => {
|
|
73668
|
+
if (shouldLog("debug")) {
|
|
73669
|
+
console.debug(`\x1B[32m${prefix}[DEBUG] ${maskTokens2(message)}${maskTokens2(formatArgs(args))}\x1B[0m`);
|
|
73670
|
+
}
|
|
73671
|
+
},
|
|
73672
|
+
info: (message, ...args) => {
|
|
73673
|
+
if (shouldLog("info")) {
|
|
73674
|
+
console.info(`\x1B[34m${prefix}[INFO] ${maskTokens2(message)}${maskTokens2(formatArgs(args))}\x1B[0m`);
|
|
73675
|
+
}
|
|
73676
|
+
},
|
|
73677
|
+
warn: (message, ...args) => {
|
|
73678
|
+
if (shouldLog("warn")) {
|
|
73679
|
+
console.warn(`\x1B[33m${prefix}[WARN] ${maskTokens2(message)}${maskTokens2(formatArgs(args))}\x1B[0m`);
|
|
73680
|
+
}
|
|
73681
|
+
},
|
|
73682
|
+
error: (message, ...args) => {
|
|
73683
|
+
if (shouldLog("error")) {
|
|
73684
|
+
console.error(`\x1B[31m${prefix}[ERROR] ${maskTokens2(message)}${maskTokens2(formatArgs(args))}\x1B[0m`);
|
|
73685
|
+
}
|
|
73686
|
+
}
|
|
73687
|
+
};
|
|
73688
|
+
}
|
|
73689
|
+
var logger = createLogger();
|
|
73633
73690
|
async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 1000, stopOnError) {
|
|
73634
|
-
let
|
|
73635
|
-
|
|
73691
|
+
let retries = 0;
|
|
73692
|
+
const maxAttempts = maxRetries + 1;
|
|
73693
|
+
while (retries < maxAttempts) {
|
|
73636
73694
|
try {
|
|
73637
73695
|
return await fn();
|
|
73638
73696
|
} catch (e3) {
|
|
73697
|
+
const error35 = e3;
|
|
73639
73698
|
if (typeof stopOnError === "function") {
|
|
73640
|
-
const error35 = e3;
|
|
73641
73699
|
if (stopOnError(error35)) {
|
|
73642
73700
|
throw error35;
|
|
73643
73701
|
}
|
|
73644
73702
|
}
|
|
73645
|
-
|
|
73646
|
-
if (attempt >= maxRetries) {
|
|
73703
|
+
if (retries >= maxRetries) {
|
|
73647
73704
|
throw e3;
|
|
73648
73705
|
}
|
|
73649
|
-
const
|
|
73650
|
-
const
|
|
73706
|
+
const baseDelay = 2 ** retries * initialSleepTime;
|
|
73707
|
+
const jitterAmount = initialSleepTime * (Math.random() / 10);
|
|
73708
|
+
const delay = baseDelay + jitterAmount;
|
|
73709
|
+
retries += 1;
|
|
73710
|
+
logger.warn(`An error occurred ${error35.message}, retrying in ${delay.toFixed(0)}ms (retry ${retries} of ${maxRetries})...`);
|
|
73651
73711
|
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
73652
73712
|
}
|
|
73653
73713
|
}
|
|
@@ -78277,4 +78337,4 @@ await main().catch((error36) => {
|
|
|
78277
78337
|
process.exit(1);
|
|
78278
78338
|
});
|
|
78279
78339
|
|
|
78280
|
-
//# debugId=
|
|
78340
|
+
//# debugId=E3066EA30FBFB94364756E2164756E21
|