@settlemint/sdk-mcp 2.6.2-pr86e0ed2a → 2.6.2-pr8c7c4c84
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 +37 -71
- package/dist/mcp.js.map +10 -10
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -48436,14 +48436,9 @@ var coerce = {
|
|
|
48436
48436
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
48437
48437
|
};
|
|
48438
48438
|
var NEVER = INVALID;
|
|
48439
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
48439
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
48440
48440
|
var LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
48441
|
-
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
48442
|
-
LATEST_PROTOCOL_VERSION,
|
|
48443
|
-
"2025-03-26",
|
|
48444
|
-
"2024-11-05",
|
|
48445
|
-
"2024-10-07"
|
|
48446
|
-
];
|
|
48441
|
+
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
48447
48442
|
var JSONRPC_VERSION = "2.0";
|
|
48448
48443
|
var ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
48449
48444
|
var CursorSchema = exports_external.string();
|
|
@@ -48503,12 +48498,7 @@ var JSONRPCErrorSchema = exports_external.object({
|
|
|
48503
48498
|
})
|
|
48504
48499
|
}).strict();
|
|
48505
48500
|
var isJSONRPCError = (value) => JSONRPCErrorSchema.safeParse(value).success;
|
|
48506
|
-
var JSONRPCMessageSchema = exports_external.union([
|
|
48507
|
-
JSONRPCRequestSchema,
|
|
48508
|
-
JSONRPCNotificationSchema,
|
|
48509
|
-
JSONRPCResponseSchema,
|
|
48510
|
-
JSONRPCErrorSchema
|
|
48511
|
-
]);
|
|
48501
|
+
var JSONRPCMessageSchema = exports_external.union([JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, JSONRPCErrorSchema]);
|
|
48512
48502
|
var EmptyResultSchema = ResultSchema.strict();
|
|
48513
48503
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
48514
48504
|
method: exports_external.literal("notifications/cancelled"),
|
|
@@ -48520,7 +48510,10 @@ var CancelledNotificationSchema = NotificationSchema.extend({
|
|
|
48520
48510
|
var IconSchema = exports_external.object({
|
|
48521
48511
|
src: exports_external.string(),
|
|
48522
48512
|
mimeType: exports_external.optional(exports_external.string()),
|
|
48523
|
-
sizes: exports_external.optional(exports_external.string())
|
|
48513
|
+
sizes: exports_external.optional(exports_external.array(exports_external.string()))
|
|
48514
|
+
}).passthrough();
|
|
48515
|
+
var IconsSchema = exports_external.object({
|
|
48516
|
+
icons: exports_external.array(IconSchema).optional()
|
|
48524
48517
|
}).passthrough();
|
|
48525
48518
|
var BaseMetadataSchema = exports_external.object({
|
|
48526
48519
|
name: exports_external.string(),
|
|
@@ -48528,9 +48521,8 @@ var BaseMetadataSchema = exports_external.object({
|
|
|
48528
48521
|
}).passthrough();
|
|
48529
48522
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
48530
48523
|
version: exports_external.string(),
|
|
48531
|
-
websiteUrl: exports_external.optional(exports_external.string())
|
|
48532
|
-
|
|
48533
|
-
});
|
|
48524
|
+
websiteUrl: exports_external.optional(exports_external.string())
|
|
48525
|
+
}).merge(IconsSchema);
|
|
48534
48526
|
var ClientCapabilitiesSchema = exports_external.object({
|
|
48535
48527
|
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
48536
48528
|
sampling: exports_external.optional(exports_external.object({}).passthrough()),
|
|
@@ -48616,15 +48608,14 @@ var ResourceSchema = BaseMetadataSchema.extend({
|
|
|
48616
48608
|
uri: exports_external.string(),
|
|
48617
48609
|
description: exports_external.optional(exports_external.string()),
|
|
48618
48610
|
mimeType: exports_external.optional(exports_external.string()),
|
|
48619
|
-
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
48620
48611
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48621
|
-
});
|
|
48612
|
+
}).merge(IconsSchema);
|
|
48622
48613
|
var ResourceTemplateSchema = BaseMetadataSchema.extend({
|
|
48623
48614
|
uriTemplate: exports_external.string(),
|
|
48624
48615
|
description: exports_external.optional(exports_external.string()),
|
|
48625
48616
|
mimeType: exports_external.optional(exports_external.string()),
|
|
48626
48617
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48627
|
-
});
|
|
48618
|
+
}).merge(IconsSchema);
|
|
48628
48619
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
48629
48620
|
method: exports_external.literal("resources/list")
|
|
48630
48621
|
});
|
|
@@ -48675,9 +48666,8 @@ var PromptArgumentSchema = exports_external.object({
|
|
|
48675
48666
|
var PromptSchema = BaseMetadataSchema.extend({
|
|
48676
48667
|
description: exports_external.optional(exports_external.string()),
|
|
48677
48668
|
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema)),
|
|
48678
|
-
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
48679
48669
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48680
|
-
});
|
|
48670
|
+
}).merge(IconsSchema);
|
|
48681
48671
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
48682
48672
|
method: exports_external.literal("prompts/list")
|
|
48683
48673
|
});
|
|
@@ -48754,9 +48744,8 @@ var ToolSchema = BaseMetadataSchema.extend({
|
|
|
48754
48744
|
required: exports_external.optional(exports_external.array(exports_external.string()))
|
|
48755
48745
|
}).passthrough()),
|
|
48756
48746
|
annotations: exports_external.optional(ToolAnnotationsSchema),
|
|
48757
|
-
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
48758
48747
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48759
|
-
});
|
|
48748
|
+
}).merge(IconsSchema);
|
|
48760
48749
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
48761
48750
|
method: exports_external.literal("tools/list")
|
|
48762
48751
|
});
|
|
@@ -48781,16 +48770,7 @@ var CallToolRequestSchema = RequestSchema.extend({
|
|
|
48781
48770
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
48782
48771
|
method: exports_external.literal("notifications/tools/list_changed")
|
|
48783
48772
|
});
|
|
48784
|
-
var LoggingLevelSchema = exports_external.enum([
|
|
48785
|
-
"debug",
|
|
48786
|
-
"info",
|
|
48787
|
-
"notice",
|
|
48788
|
-
"warning",
|
|
48789
|
-
"error",
|
|
48790
|
-
"critical",
|
|
48791
|
-
"alert",
|
|
48792
|
-
"emergency"
|
|
48793
|
-
]);
|
|
48773
|
+
var LoggingLevelSchema = exports_external.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
48794
48774
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
48795
48775
|
method: exports_external.literal("logging/setLevel"),
|
|
48796
48776
|
params: BaseRequestParamsSchema.extend({
|
|
@@ -48835,11 +48815,7 @@ var CreateMessageResultSchema = ResultSchema.extend({
|
|
|
48835
48815
|
model: exports_external.string(),
|
|
48836
48816
|
stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
|
|
48837
48817
|
role: exports_external.enum(["user", "assistant"]),
|
|
48838
|
-
content: exports_external.discriminatedUnion("type", [
|
|
48839
|
-
TextContentSchema,
|
|
48840
|
-
ImageContentSchema,
|
|
48841
|
-
AudioContentSchema
|
|
48842
|
-
])
|
|
48818
|
+
content: exports_external.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema])
|
|
48843
48819
|
});
|
|
48844
48820
|
var BooleanSchemaSchema = exports_external.object({
|
|
48845
48821
|
type: exports_external.literal("boolean"),
|
|
@@ -48869,12 +48845,7 @@ var EnumSchemaSchema = exports_external.object({
|
|
|
48869
48845
|
enum: exports_external.array(exports_external.string()),
|
|
48870
48846
|
enumNames: exports_external.optional(exports_external.array(exports_external.string()))
|
|
48871
48847
|
}).passthrough();
|
|
48872
|
-
var PrimitiveSchemaDefinitionSchema = exports_external.union([
|
|
48873
|
-
BooleanSchemaSchema,
|
|
48874
|
-
StringSchemaSchema,
|
|
48875
|
-
NumberSchemaSchema,
|
|
48876
|
-
EnumSchemaSchema
|
|
48877
|
-
]);
|
|
48848
|
+
var PrimitiveSchemaDefinitionSchema = exports_external.union([BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema]);
|
|
48878
48849
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
48879
48850
|
method: exports_external.literal("elicitation/create"),
|
|
48880
48851
|
params: BaseRequestParamsSchema.extend({
|
|
@@ -48953,18 +48924,8 @@ var ClientNotificationSchema = exports_external.union([
|
|
|
48953
48924
|
InitializedNotificationSchema,
|
|
48954
48925
|
RootsListChangedNotificationSchema
|
|
48955
48926
|
]);
|
|
48956
|
-
var ClientResultSchema = exports_external.union([
|
|
48957
|
-
|
|
48958
|
-
CreateMessageResultSchema,
|
|
48959
|
-
ElicitResultSchema,
|
|
48960
|
-
ListRootsResultSchema
|
|
48961
|
-
]);
|
|
48962
|
-
var ServerRequestSchema = exports_external.union([
|
|
48963
|
-
PingRequestSchema,
|
|
48964
|
-
CreateMessageRequestSchema,
|
|
48965
|
-
ElicitRequestSchema,
|
|
48966
|
-
ListRootsRequestSchema
|
|
48967
|
-
]);
|
|
48927
|
+
var ClientResultSchema = exports_external.union([EmptyResultSchema, CreateMessageResultSchema, ElicitResultSchema, ListRootsResultSchema]);
|
|
48928
|
+
var ServerRequestSchema = exports_external.union([PingRequestSchema, CreateMessageRequestSchema, ElicitRequestSchema, ListRootsRequestSchema]);
|
|
48968
48929
|
var ServerNotificationSchema = exports_external.union([
|
|
48969
48930
|
CancelledNotificationSchema,
|
|
48970
48931
|
ProgressNotificationSchema,
|
|
@@ -48996,7 +48957,7 @@ class McpError extends Error {
|
|
|
48996
48957
|
}
|
|
48997
48958
|
}
|
|
48998
48959
|
|
|
48999
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
48960
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
49000
48961
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
49001
48962
|
|
|
49002
48963
|
class Protocol {
|
|
@@ -49036,7 +48997,10 @@ class Protocol {
|
|
|
49036
48997
|
const totalElapsed = Date.now() - info.startTime;
|
|
49037
48998
|
if (info.maxTotalTimeout && totalElapsed >= info.maxTotalTimeout) {
|
|
49038
48999
|
this._timeoutInfo.delete(messageId);
|
|
49039
|
-
throw new McpError(ErrorCode.RequestTimeout, "Maximum total timeout exceeded", {
|
|
49000
|
+
throw new McpError(ErrorCode.RequestTimeout, "Maximum total timeout exceeded", {
|
|
49001
|
+
maxTotalTimeout: info.maxTotalTimeout,
|
|
49002
|
+
totalElapsed
|
|
49003
|
+
});
|
|
49040
49004
|
}
|
|
49041
49005
|
clearTimeout(info.timeoutId);
|
|
49042
49006
|
info.timeoutId = setTimeout(info.onTimeout, info.timeout);
|
|
@@ -49336,7 +49300,7 @@ function mergeCapabilities(base, additional) {
|
|
|
49336
49300
|
}, { ...base });
|
|
49337
49301
|
}
|
|
49338
49302
|
|
|
49339
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
49303
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
49340
49304
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
49341
49305
|
|
|
49342
49306
|
class Server extends Protocol {
|
|
@@ -50774,7 +50738,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
50774
50738
|
}
|
|
50775
50739
|
return combined;
|
|
50776
50740
|
};
|
|
50777
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
50741
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
50778
50742
|
var McpZodTypeKind;
|
|
50779
50743
|
(function(McpZodTypeKind2) {
|
|
50780
50744
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -50827,7 +50791,7 @@ function processCreateParams2(params) {
|
|
|
50827
50791
|
return { errorMap: customMap, description };
|
|
50828
50792
|
}
|
|
50829
50793
|
|
|
50830
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
50794
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
50831
50795
|
class McpServer {
|
|
50832
50796
|
constructor(serverInfo, options) {
|
|
50833
50797
|
this._registeredResources = {};
|
|
@@ -50870,7 +50834,9 @@ class McpServer {
|
|
|
50870
50834
|
_meta: tool._meta
|
|
50871
50835
|
};
|
|
50872
50836
|
if (tool.outputSchema) {
|
|
50873
|
-
toolDefinition.outputSchema = zodToJsonSchema(tool.outputSchema, {
|
|
50837
|
+
toolDefinition.outputSchema = zodToJsonSchema(tool.outputSchema, {
|
|
50838
|
+
strictUnions: true
|
|
50839
|
+
});
|
|
50874
50840
|
}
|
|
50875
50841
|
return toolDefinition;
|
|
50876
50842
|
})
|
|
@@ -51391,10 +51357,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
51391
51357
|
}
|
|
51392
51358
|
};
|
|
51393
51359
|
|
|
51394
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51360
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
51395
51361
|
import process2 from "node:process";
|
|
51396
51362
|
|
|
51397
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51363
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
51398
51364
|
class ReadBuffer {
|
|
51399
51365
|
append(chunk) {
|
|
51400
51366
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -51424,7 +51390,7 @@ function serializeMessage(message) {
|
|
|
51424
51390
|
`;
|
|
51425
51391
|
}
|
|
51426
51392
|
|
|
51427
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51393
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
51428
51394
|
class StdioServerTransport {
|
|
51429
51395
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
51430
51396
|
this._stdin = _stdin;
|
|
@@ -82615,7 +82581,7 @@ var portalQueries = (server, env3) => {
|
|
|
82615
82581
|
var package_default = {
|
|
82616
82582
|
name: "@settlemint/sdk-mcp",
|
|
82617
82583
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
82618
|
-
version: "2.6.2-
|
|
82584
|
+
version: "2.6.2-pr8c7c4c84",
|
|
82619
82585
|
type: "module",
|
|
82620
82586
|
private: false,
|
|
82621
82587
|
license: "FSL-1.1-MIT",
|
|
@@ -82657,9 +82623,9 @@ var package_default = {
|
|
|
82657
82623
|
"@commander-js/extra-typings": "14.0.0",
|
|
82658
82624
|
"@graphql-tools/load": "8.1.2",
|
|
82659
82625
|
"@graphql-tools/url-loader": "9.0.0",
|
|
82660
|
-
"@modelcontextprotocol/sdk": "1.
|
|
82661
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
82662
|
-
"@settlemint/sdk-utils": "2.6.2-
|
|
82626
|
+
"@modelcontextprotocol/sdk": "1.19.1",
|
|
82627
|
+
"@settlemint/sdk-js": "2.6.2-pr8c7c4c84",
|
|
82628
|
+
"@settlemint/sdk-utils": "2.6.2-pr8c7c4c84",
|
|
82663
82629
|
commander: "14.0.1",
|
|
82664
82630
|
graphql: "16.11.0",
|
|
82665
82631
|
zod: "^4",
|
|
@@ -88728,4 +88694,4 @@ await main().catch((error46) => {
|
|
|
88728
88694
|
process.exit(1);
|
|
88729
88695
|
});
|
|
88730
88696
|
|
|
88731
|
-
//# debugId=
|
|
88697
|
+
//# debugId=66283F0C1407020F64756E2164756E21
|