@settlemint/sdk-mcp 2.3.2-pr8227fae7 → 2.3.2-pra4e2055d
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 +41 -17
- package/dist/mcp.js.map +4 -4
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -54283,16 +54283,26 @@ 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
|
-
|
|
54286
|
+
var ContentListSchema = exports_external.array(exports_external.union([
|
|
54287
|
+
TextContentSchema,
|
|
54288
|
+
ImageContentSchema,
|
|
54289
|
+
AudioContentSchema,
|
|
54290
|
+
EmbeddedResourceSchema
|
|
54291
|
+
]));
|
|
54292
|
+
var CallToolUnstructuredResultSchema = ResultSchema.extend({
|
|
54293
|
+
content: ContentListSchema,
|
|
54294
|
+
structuredContent: exports_external.never().optional(),
|
|
54294
54295
|
isError: exports_external.optional(exports_external.boolean())
|
|
54295
54296
|
});
|
|
54297
|
+
var CallToolStructuredResultSchema = ResultSchema.extend({
|
|
54298
|
+
structuredContent: exports_external.object({}).passthrough(),
|
|
54299
|
+
content: exports_external.optional(ContentListSchema),
|
|
54300
|
+
isError: exports_external.optional(exports_external.boolean())
|
|
54301
|
+
});
|
|
54302
|
+
var CallToolResultSchema = exports_external.union([
|
|
54303
|
+
CallToolUnstructuredResultSchema,
|
|
54304
|
+
CallToolStructuredResultSchema
|
|
54305
|
+
]);
|
|
54296
54306
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
54297
54307
|
toolResult: exports_external.unknown()
|
|
54298
54308
|
}));
|
|
@@ -56270,10 +56280,24 @@ class McpServer {
|
|
|
56270
56280
|
};
|
|
56271
56281
|
}
|
|
56272
56282
|
}
|
|
56273
|
-
if (tool.outputSchema
|
|
56274
|
-
|
|
56275
|
-
|
|
56276
|
-
|
|
56283
|
+
if (tool.outputSchema) {
|
|
56284
|
+
if (!result.structuredContent && !result.isError) {
|
|
56285
|
+
throw new McpError(ErrorCode.InternalError, `Tool ${request.params.name} has outputSchema but returned no structuredContent`);
|
|
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`);
|
|
56277
56301
|
}
|
|
56278
56302
|
}
|
|
56279
56303
|
return result;
|
|
@@ -72451,7 +72475,7 @@ var {
|
|
|
72451
72475
|
var package_default = {
|
|
72452
72476
|
name: "@settlemint/sdk-mcp",
|
|
72453
72477
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
72454
|
-
version: "2.3.2-
|
|
72478
|
+
version: "2.3.2-pra4e2055d",
|
|
72455
72479
|
type: "module",
|
|
72456
72480
|
private: false,
|
|
72457
72481
|
license: "FSL-1.1-MIT",
|
|
@@ -72492,9 +72516,9 @@ var package_default = {
|
|
|
72492
72516
|
dependencies: {
|
|
72493
72517
|
"@graphql-tools/load": "8.1.0",
|
|
72494
72518
|
"@graphql-tools/url-loader": "8.0.31",
|
|
72495
|
-
"@modelcontextprotocol/sdk": "1.11.
|
|
72496
|
-
"@settlemint/sdk-js": "2.3.2-
|
|
72497
|
-
"@settlemint/sdk-utils": "2.3.2-
|
|
72519
|
+
"@modelcontextprotocol/sdk": "1.11.4",
|
|
72520
|
+
"@settlemint/sdk-js": "2.3.2-pra4e2055d",
|
|
72521
|
+
"@settlemint/sdk-utils": "2.3.2-pra4e2055d",
|
|
72498
72522
|
"@commander-js/extra-typings": "14.0.0",
|
|
72499
72523
|
commander: "14.0.0",
|
|
72500
72524
|
zod: "^3.25.0"
|
|
@@ -78264,4 +78288,4 @@ await main().catch((error36) => {
|
|
|
78264
78288
|
process.exit(1);
|
|
78265
78289
|
});
|
|
78266
78290
|
|
|
78267
|
-
//# debugId=
|
|
78291
|
+
//# debugId=609BBBFE9AF81C3064756E2164756E21
|