@settlemint/sdk-mcp 2.3.2-prf63bb3f0 → 2.3.2-prfd3a56ad
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 +14 -7
- package/dist/mcp.js.map +5 -5
- 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}`);
|
|
@@ -72453,7 +72457,7 @@ var {
|
|
|
72453
72457
|
var package_default = {
|
|
72454
72458
|
name: "@settlemint/sdk-mcp",
|
|
72455
72459
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
72456
|
-
version: "2.3.2-
|
|
72460
|
+
version: "2.3.2-prfd3a56ad",
|
|
72457
72461
|
type: "module",
|
|
72458
72462
|
private: false,
|
|
72459
72463
|
license: "FSL-1.1-MIT",
|
|
@@ -72494,9 +72498,9 @@ var package_default = {
|
|
|
72494
72498
|
dependencies: {
|
|
72495
72499
|
"@graphql-tools/load": "8.1.0",
|
|
72496
72500
|
"@graphql-tools/url-loader": "8.0.31",
|
|
72497
|
-
"@modelcontextprotocol/sdk": "1.
|
|
72498
|
-
"@settlemint/sdk-js": "2.3.2-
|
|
72499
|
-
"@settlemint/sdk-utils": "2.3.2-
|
|
72501
|
+
"@modelcontextprotocol/sdk": "1.12.0",
|
|
72502
|
+
"@settlemint/sdk-js": "2.3.2-prfd3a56ad",
|
|
72503
|
+
"@settlemint/sdk-utils": "2.3.2-prfd3a56ad",
|
|
72500
72504
|
"@commander-js/extra-typings": "14.0.0",
|
|
72501
72505
|
commander: "14.0.0",
|
|
72502
72506
|
zod: "^3.25.0"
|
|
@@ -76341,6 +76345,9 @@ function getPincodeVerificationChallengeResponse({
|
|
|
76341
76345
|
}
|
|
76342
76346
|
function createSettleMintClient(options) {
|
|
76343
76347
|
ensureServer();
|
|
76348
|
+
if (options.instance === STANDALONE_INSTANCE2) {
|
|
76349
|
+
throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
|
76350
|
+
}
|
|
76344
76351
|
const validatedOptions = options.anonymous ? validate3(exports_external2.object({
|
|
76345
76352
|
...ClientOptionsSchema.shape,
|
|
76346
76353
|
accessToken: exports_external2.literal("")
|
|
@@ -78266,4 +78273,4 @@ await main().catch((error36) => {
|
|
|
78266
78273
|
process.exit(1);
|
|
78267
78274
|
});
|
|
78268
78275
|
|
|
78269
|
-
//# debugId=
|
|
78276
|
+
//# debugId=CC59D486952DF17864756E2164756E21
|