@settlemint/sdk-mcp 2.3.2-pr66432b4c → 2.3.2-pr6c3d348a
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 +21 -43
- package/dist/mcp.js.map +7 -7
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -54283,26 +54283,16 @@ var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
|
54283
54283
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
54284
54284
|
tools: exports_external.array(ToolSchema)
|
|
54285
54285
|
});
|
|
54286
|
-
var
|
|
54287
|
-
|
|
54288
|
-
|
|
54289
|
-
|
|
54290
|
-
|
|
54291
|
-
|
|
54292
|
-
|
|
54293
|
-
|
|
54294
|
-
structuredContent: exports_external.never().optional(),
|
|
54295
|
-
isError: exports_external.optional(exports_external.boolean())
|
|
54296
|
-
});
|
|
54297
|
-
var CallToolStructuredResultSchema = ResultSchema.extend({
|
|
54298
|
-
structuredContent: exports_external.object({}).passthrough(),
|
|
54299
|
-
content: exports_external.optional(ContentListSchema),
|
|
54286
|
+
var CallToolResultSchema = ResultSchema.extend({
|
|
54287
|
+
content: exports_external.array(exports_external.union([
|
|
54288
|
+
TextContentSchema,
|
|
54289
|
+
ImageContentSchema,
|
|
54290
|
+
AudioContentSchema,
|
|
54291
|
+
EmbeddedResourceSchema
|
|
54292
|
+
])).default([]),
|
|
54293
|
+
structuredContent: exports_external.object({}).passthrough().optional(),
|
|
54300
54294
|
isError: exports_external.optional(exports_external.boolean())
|
|
54301
54295
|
});
|
|
54302
|
-
var CallToolResultSchema = exports_external.union([
|
|
54303
|
-
CallToolUnstructuredResultSchema,
|
|
54304
|
-
CallToolStructuredResultSchema
|
|
54305
|
-
]);
|
|
54306
54296
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
54307
54297
|
toolResult: exports_external.unknown()
|
|
54308
54298
|
}));
|
|
@@ -56280,24 +56270,10 @@ class McpServer {
|
|
|
56280
56270
|
};
|
|
56281
56271
|
}
|
|
56282
56272
|
}
|
|
56283
|
-
if (tool.outputSchema) {
|
|
56284
|
-
|
|
56285
|
-
|
|
56286
|
-
|
|
56287
|
-
if (result.structuredContent && !result.content) {
|
|
56288
|
-
result.content = [
|
|
56289
|
-
{
|
|
56290
|
-
type: "text",
|
|
56291
|
-
text: JSON.stringify(result.structuredContent, null, 2)
|
|
56292
|
-
}
|
|
56293
|
-
];
|
|
56294
|
-
}
|
|
56295
|
-
} else {
|
|
56296
|
-
if (!result.content && !result.isError) {
|
|
56297
|
-
throw new McpError(ErrorCode.InternalError, `Tool ${request.params.name} has no outputSchema and must return content`);
|
|
56298
|
-
}
|
|
56299
|
-
if (result.structuredContent) {
|
|
56300
|
-
throw new McpError(ErrorCode.InternalError, `Tool ${request.params.name} has no outputSchema but returned structuredContent`);
|
|
56273
|
+
if (tool.outputSchema && result.structuredContent) {
|
|
56274
|
+
const parseResult = await tool.outputSchema.safeParseAsync(result.structuredContent);
|
|
56275
|
+
if (!parseResult.success) {
|
|
56276
|
+
throw new McpError(ErrorCode.InvalidParams, `Invalid structured content for tool ${request.params.name}: ${parseResult.error.message}`);
|
|
56301
56277
|
}
|
|
56302
56278
|
}
|
|
56303
56279
|
return result;
|
|
@@ -72298,8 +72274,9 @@ var UrlPathSchema = exports_external2.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/[
|
|
|
72298
72274
|
message: "Invalid URL path format. Must start with '/' and can contain letters, numbers, hyphens, and underscores."
|
|
72299
72275
|
});
|
|
72300
72276
|
var UrlOrPathSchema = exports_external2.union([UrlSchema, UrlPathSchema]);
|
|
72277
|
+
var STANDALONE_INSTANCE = "standalone";
|
|
72301
72278
|
var DotEnvSchema = exports_external2.object({
|
|
72302
|
-
SETTLEMINT_INSTANCE: UrlSchema.default("https://console.settlemint.com"),
|
|
72279
|
+
SETTLEMINT_INSTANCE: exports_external2.union([UrlSchema, exports_external2.literal(STANDALONE_INSTANCE)]).default("https://console.settlemint.com"),
|
|
72303
72280
|
SETTLEMINT_ACCESS_TOKEN: ApplicationAccessTokenSchema.optional(),
|
|
72304
72281
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: PersonalAccessTokenSchema.optional(),
|
|
72305
72282
|
SETTLEMINT_WORKSPACE: UniqueNameSchema.optional(),
|
|
@@ -72408,8 +72385,9 @@ var UrlPathSchema2 = exports_external2.string().regex(/^\/(?:[a-zA-Z0-9-_]+(?:\/
|
|
|
72408
72385
|
message: "Invalid URL path format. Must start with '/' and can contain letters, numbers, hyphens, and underscores."
|
|
72409
72386
|
});
|
|
72410
72387
|
var UrlOrPathSchema2 = exports_external2.union([UrlSchema2, UrlPathSchema2]);
|
|
72388
|
+
var STANDALONE_INSTANCE2 = "standalone";
|
|
72411
72389
|
var DotEnvSchema2 = exports_external2.object({
|
|
72412
|
-
SETTLEMINT_INSTANCE: UrlSchema2.default("https://console.settlemint.com"),
|
|
72390
|
+
SETTLEMINT_INSTANCE: exports_external2.union([UrlSchema2, exports_external2.literal(STANDALONE_INSTANCE2)]).default("https://console.settlemint.com"),
|
|
72413
72391
|
SETTLEMINT_ACCESS_TOKEN: ApplicationAccessTokenSchema2.optional(),
|
|
72414
72392
|
SETTLEMINT_PERSONAL_ACCESS_TOKEN: PersonalAccessTokenSchema2.optional(),
|
|
72415
72393
|
SETTLEMINT_WORKSPACE: UniqueNameSchema2.optional(),
|
|
@@ -72475,7 +72453,7 @@ var {
|
|
|
72475
72453
|
var package_default = {
|
|
72476
72454
|
name: "@settlemint/sdk-mcp",
|
|
72477
72455
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
72478
|
-
version: "2.3.2-
|
|
72456
|
+
version: "2.3.2-pr6c3d348a",
|
|
72479
72457
|
type: "module",
|
|
72480
72458
|
private: false,
|
|
72481
72459
|
license: "FSL-1.1-MIT",
|
|
@@ -72516,9 +72494,9 @@ var package_default = {
|
|
|
72516
72494
|
dependencies: {
|
|
72517
72495
|
"@graphql-tools/load": "8.1.0",
|
|
72518
72496
|
"@graphql-tools/url-loader": "8.0.31",
|
|
72519
|
-
"@modelcontextprotocol/sdk": "1.11.
|
|
72520
|
-
"@settlemint/sdk-js": "2.3.2-
|
|
72521
|
-
"@settlemint/sdk-utils": "2.3.2-
|
|
72497
|
+
"@modelcontextprotocol/sdk": "1.11.5",
|
|
72498
|
+
"@settlemint/sdk-js": "2.3.2-pr6c3d348a",
|
|
72499
|
+
"@settlemint/sdk-utils": "2.3.2-pr6c3d348a",
|
|
72522
72500
|
"@commander-js/extra-typings": "14.0.0",
|
|
72523
72501
|
commander: "14.0.0",
|
|
72524
72502
|
zod: "^3.25.0"
|
|
@@ -78288,4 +78266,4 @@ await main().catch((error36) => {
|
|
|
78288
78266
|
process.exit(1);
|
|
78289
78267
|
});
|
|
78290
78268
|
|
|
78291
|
-
//# debugId=
|
|
78269
|
+
//# debugId=5EEDF6987617442864756E2164756E21
|