@settlemint/sdk-mcp 2.3.2-prc0433625 → 2.3.2-prdca0561d
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 +18 -9
- package/dist/mcp.js.map +7 -7
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -54118,7 +54118,8 @@ var PingRequestSchema = RequestSchema.extend({
|
|
|
54118
54118
|
});
|
|
54119
54119
|
var ProgressSchema = exports_external.object({
|
|
54120
54120
|
progress: exports_external.number(),
|
|
54121
|
-
total: exports_external.optional(exports_external.number())
|
|
54121
|
+
total: exports_external.optional(exports_external.number()),
|
|
54122
|
+
message: exports_external.optional(exports_external.string())
|
|
54122
54123
|
}).passthrough();
|
|
54123
54124
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
54124
54125
|
method: exports_external.literal("notifications/progress"),
|
|
@@ -56270,7 +56271,10 @@ class McpServer {
|
|
|
56270
56271
|
};
|
|
56271
56272
|
}
|
|
56272
56273
|
}
|
|
56273
|
-
if (tool.outputSchema
|
|
56274
|
+
if (tool.outputSchema) {
|
|
56275
|
+
if (!result.structuredContent) {
|
|
56276
|
+
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} has an output schema but no structured content was provided`);
|
|
56277
|
+
}
|
|
56274
56278
|
const parseResult = await tool.outputSchema.safeParseAsync(result.structuredContent);
|
|
56275
56279
|
if (!parseResult.success) {
|
|
56276
56280
|
throw new McpError(ErrorCode.InvalidParams, `Invalid structured content for tool ${request.params.name}: ${parseResult.error.message}`);
|
|
@@ -72274,8 +72278,9 @@ var UrlPathSchema = exports_external2.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/[
|
|
|
72274
72278
|
message: "Invalid URL path format. Must start with '/' and can contain letters, numbers, hyphens, and underscores."
|
|
72275
72279
|
});
|
|
72276
72280
|
var UrlOrPathSchema = exports_external2.union([UrlSchema, UrlPathSchema]);
|
|
72281
|
+
var STANDALONE_INSTANCE = "standalone";
|
|
72277
72282
|
var DotEnvSchema = exports_external2.object({
|
|
72278
|
-
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"),
|
|
72279
72284
|
SETTLEMINT_ACCESS_TOKEN: ApplicationAccessTokenSchema.optional(),
|
|
72280
72285
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: PersonalAccessTokenSchema.optional(),
|
|
72281
72286
|
SETTLEMINT_WORKSPACE: UniqueNameSchema.optional(),
|
|
@@ -72384,8 +72389,9 @@ var UrlPathSchema2 = exports_external2.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/
|
|
|
72384
72389
|
message: "Invalid URL path format. Must start with '/' and can contain letters, numbers, hyphens, and underscores."
|
|
72385
72390
|
});
|
|
72386
72391
|
var UrlOrPathSchema2 = exports_external2.union([UrlSchema2, UrlPathSchema2]);
|
|
72392
|
+
var STANDALONE_INSTANCE2 = "standalone";
|
|
72387
72393
|
var DotEnvSchema2 = exports_external2.object({
|
|
72388
|
-
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"),
|
|
72389
72395
|
SETTLEMINT_ACCESS_TOKEN: ApplicationAccessTokenSchema2.optional(),
|
|
72390
72396
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: PersonalAccessTokenSchema2.optional(),
|
|
72391
72397
|
SETTLEMINT_WORKSPACE: UniqueNameSchema2.optional(),
|
|
@@ -72451,7 +72457,7 @@ var {
|
|
|
72451
72457
|
var package_default = {
|
|
72452
72458
|
name: "@settlemint/sdk-mcp",
|
|
72453
72459
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
72454
|
-
version: "2.3.2-
|
|
72460
|
+
version: "2.3.2-prdca0561d",
|
|
72455
72461
|
type: "module",
|
|
72456
72462
|
private: false,
|
|
72457
72463
|
license: "FSL-1.1-MIT",
|
|
@@ -72492,9 +72498,9 @@ var package_default = {
|
|
|
72492
72498
|
dependencies: {
|
|
72493
72499
|
"@graphql-tools/load": "8.1.0",
|
|
72494
72500
|
"@graphql-tools/url-loader": "8.0.31",
|
|
72495
|
-
"@modelcontextprotocol/sdk": "1.
|
|
72496
|
-
"@settlemint/sdk-js": "2.3.2-
|
|
72497
|
-
"@settlemint/sdk-utils": "2.3.2-
|
|
72501
|
+
"@modelcontextprotocol/sdk": "1.12.0",
|
|
72502
|
+
"@settlemint/sdk-js": "2.3.2-prdca0561d",
|
|
72503
|
+
"@settlemint/sdk-utils": "2.3.2-prdca0561d",
|
|
72498
72504
|
"@commander-js/extra-typings": "14.0.0",
|
|
72499
72505
|
commander: "14.0.0",
|
|
72500
72506
|
zod: "^3.25.0"
|
|
@@ -76339,6 +76345,9 @@ function getPincodeVerificationChallengeResponse({
|
|
|
76339
76345
|
}
|
|
76340
76346
|
function createSettleMintClient(options) {
|
|
76341
76347
|
ensureServer();
|
|
76348
|
+
if (options.instance === STANDALONE_INSTANCE2) {
|
|
76349
|
+
throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
|
76350
|
+
}
|
|
76342
76351
|
const validatedOptions = options.anonymous ? validate3(exports_external2.object({
|
|
76343
76352
|
...ClientOptionsSchema.shape,
|
|
76344
76353
|
accessToken: exports_external2.literal("")
|
|
@@ -78264,4 +78273,4 @@ await main().catch((error36) => {
|
|
|
78264
78273
|
process.exit(1);
|
|
78265
78274
|
});
|
|
78266
78275
|
|
|
78267
|
-
//# debugId=
|
|
78276
|
+
//# debugId=DF5185982698433764756E2164756E21
|