@settlemint/sdk-mcp 2.3.2-pr9af086a1 → 2.3.2-pr9d565676
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 +22 -12
- package/dist/mcp.js.map +6 -6
- package/package.json +3 -3
package/dist/mcp.js
CHANGED
|
@@ -72278,8 +72278,9 @@ var UrlPathSchema = exports_external2.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/[
|
|
|
72278
72278
|
message: "Invalid URL path format. Must start with '/' and can contain letters, numbers, hyphens, and underscores."
|
|
72279
72279
|
});
|
|
72280
72280
|
var UrlOrPathSchema = exports_external2.union([UrlSchema, UrlPathSchema]);
|
|
72281
|
+
var STANDALONE_INSTANCE = "standalone";
|
|
72281
72282
|
var DotEnvSchema = exports_external2.object({
|
|
72282
|
-
SETTLEMINT_INSTANCE: UrlSchema.default("https://console.settlemint.com"),
|
|
72283
|
+
SETTLEMINT_INSTANCE: exports_external2.union([UrlSchema, exports_external2.literal(STANDALONE_INSTANCE)]).default("https://console.settlemint.com"),
|
|
72283
72284
|
SETTLEMINT_ACCESS_TOKEN: ApplicationAccessTokenSchema.optional(),
|
|
72284
72285
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: PersonalAccessTokenSchema.optional(),
|
|
72285
72286
|
SETTLEMINT_WORKSPACE: UniqueNameSchema.optional(),
|
|
@@ -72388,8 +72389,9 @@ var UrlPathSchema2 = exports_external2.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/
|
|
|
72388
72389
|
message: "Invalid URL path format. Must start with '/' and can contain letters, numbers, hyphens, and underscores."
|
|
72389
72390
|
});
|
|
72390
72391
|
var UrlOrPathSchema2 = exports_external2.union([UrlSchema2, UrlPathSchema2]);
|
|
72392
|
+
var STANDALONE_INSTANCE2 = "standalone";
|
|
72391
72393
|
var DotEnvSchema2 = exports_external2.object({
|
|
72392
|
-
SETTLEMINT_INSTANCE: UrlSchema2.default("https://console.settlemint.com"),
|
|
72394
|
+
SETTLEMINT_INSTANCE: exports_external2.union([UrlSchema2, exports_external2.literal(STANDALONE_INSTANCE2)]).default("https://console.settlemint.com"),
|
|
72393
72395
|
SETTLEMINT_ACCESS_TOKEN: ApplicationAccessTokenSchema2.optional(),
|
|
72394
72396
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: PersonalAccessTokenSchema2.optional(),
|
|
72395
72397
|
SETTLEMINT_WORKSPACE: UniqueNameSchema2.optional(),
|
|
@@ -72455,7 +72457,7 @@ var {
|
|
|
72455
72457
|
var package_default = {
|
|
72456
72458
|
name: "@settlemint/sdk-mcp",
|
|
72457
72459
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
72458
|
-
version: "2.3.2-
|
|
72460
|
+
version: "2.3.2-pr9d565676",
|
|
72459
72461
|
type: "module",
|
|
72460
72462
|
private: false,
|
|
72461
72463
|
license: "FSL-1.1-MIT",
|
|
@@ -72497,8 +72499,8 @@ var package_default = {
|
|
|
72497
72499
|
"@graphql-tools/load": "8.1.0",
|
|
72498
72500
|
"@graphql-tools/url-loader": "8.0.31",
|
|
72499
72501
|
"@modelcontextprotocol/sdk": "1.12.0",
|
|
72500
|
-
"@settlemint/sdk-js": "2.3.2-
|
|
72501
|
-
"@settlemint/sdk-utils": "2.3.2-
|
|
72502
|
+
"@settlemint/sdk-js": "2.3.2-pr9d565676",
|
|
72503
|
+
"@settlemint/sdk-utils": "2.3.2-pr9d565676",
|
|
72502
72504
|
"@commander-js/extra-typings": "14.0.0",
|
|
72503
72505
|
commander: "14.0.0",
|
|
72504
72506
|
zod: "^3.25.0"
|
|
@@ -73686,8 +73688,9 @@ ${JSON.stringify(arg, null, 2)}`;
|
|
|
73686
73688
|
}
|
|
73687
73689
|
var logger = createLogger();
|
|
73688
73690
|
async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 1000, stopOnError) {
|
|
73689
|
-
let
|
|
73690
|
-
|
|
73691
|
+
let retries = 0;
|
|
73692
|
+
const maxAttempts = maxRetries + 1;
|
|
73693
|
+
while (retries < maxAttempts) {
|
|
73691
73694
|
try {
|
|
73692
73695
|
return await fn();
|
|
73693
73696
|
} catch (e3) {
|
|
@@ -73697,14 +73700,14 @@ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 1000, stop
|
|
|
73697
73700
|
throw error35;
|
|
73698
73701
|
}
|
|
73699
73702
|
}
|
|
73700
|
-
if (
|
|
73703
|
+
if (retries >= maxRetries) {
|
|
73701
73704
|
throw e3;
|
|
73702
73705
|
}
|
|
73703
|
-
const baseDelay = 2 **
|
|
73706
|
+
const baseDelay = 2 ** retries * initialSleepTime;
|
|
73704
73707
|
const jitterAmount = initialSleepTime * (Math.random() / 10);
|
|
73705
73708
|
const delay = baseDelay + jitterAmount;
|
|
73706
|
-
|
|
73707
|
-
logger.warn(`An error occurred ${error35.message}, retrying in ${delay.toFixed(0)}ms...`);
|
|
73709
|
+
retries += 1;
|
|
73710
|
+
logger.warn(`An error occurred ${error35.message}, retrying in ${delay.toFixed(0)}ms (retry ${retries} of ${maxRetries})...`);
|
|
73708
73711
|
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
73709
73712
|
}
|
|
73710
73713
|
}
|
|
@@ -76402,6 +76405,13 @@ function getPincodeVerificationChallengeResponse({
|
|
|
76402
76405
|
}
|
|
76403
76406
|
function createSettleMintClient(options) {
|
|
76404
76407
|
ensureServer();
|
|
76408
|
+
if (options.instance === STANDALONE_INSTANCE2) {
|
|
76409
|
+
if (options.anonymous) {
|
|
76410
|
+
options.instance = "https://console.settlemint.com";
|
|
76411
|
+
} else {
|
|
76412
|
+
throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
|
76413
|
+
}
|
|
76414
|
+
}
|
|
76405
76415
|
const validatedOptions = options.anonymous ? validate3(exports_external2.object({
|
|
76406
76416
|
...ClientOptionsSchema.shape,
|
|
76407
76417
|
accessToken: exports_external2.literal("")
|
|
@@ -78327,4 +78337,4 @@ await main().catch((error36) => {
|
|
|
78327
78337
|
process.exit(1);
|
|
78328
78338
|
});
|
|
78329
78339
|
|
|
78330
|
-
//# debugId=
|
|
78340
|
+
//# debugId=0A4EF3F1C18C608564756E2164756E21
|