@settlemint/sdk-mcp 2.2.2-pr3d52fe1c → 2.2.2-pr951947e6
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 -44
- package/dist/mcp.js.map +5 -5
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -52956,20 +52956,18 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
52956
52956
|
});
|
|
52957
52957
|
|
|
52958
52958
|
// ../../node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
52959
|
-
var LATEST_PROTOCOL_VERSION = "
|
|
52959
|
+
var LATEST_PROTOCOL_VERSION = "2024-11-05";
|
|
52960
52960
|
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
52961
52961
|
LATEST_PROTOCOL_VERSION,
|
|
52962
|
-
"2024-11-05",
|
|
52963
52962
|
"2024-10-07"
|
|
52964
52963
|
];
|
|
52965
52964
|
var JSONRPC_VERSION = "2.0";
|
|
52966
52965
|
var ProgressTokenSchema = z.union([z.string(), z.number().int()]);
|
|
52967
52966
|
var CursorSchema = z.string();
|
|
52968
|
-
var RequestMetaSchema = z.object({
|
|
52969
|
-
progressToken: z.optional(ProgressTokenSchema)
|
|
52970
|
-
}).passthrough();
|
|
52971
52967
|
var BaseRequestParamsSchema = z.object({
|
|
52972
|
-
_meta: z.optional(
|
|
52968
|
+
_meta: z.optional(z.object({
|
|
52969
|
+
progressToken: z.optional(ProgressTokenSchema)
|
|
52970
|
+
}).passthrough())
|
|
52973
52971
|
}).passthrough();
|
|
52974
52972
|
var RequestSchema = z.object({
|
|
52975
52973
|
method: z.string(),
|
|
@@ -53220,21 +53218,13 @@ var GetPromptResultSchema = ResultSchema.extend({
|
|
|
53220
53218
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
53221
53219
|
method: z.literal("notifications/prompts/list_changed")
|
|
53222
53220
|
});
|
|
53223
|
-
var ToolAnnotationsSchema = z.object({
|
|
53224
|
-
title: z.optional(z.string()),
|
|
53225
|
-
readOnlyHint: z.optional(z.boolean()),
|
|
53226
|
-
destructiveHint: z.optional(z.boolean()),
|
|
53227
|
-
idempotentHint: z.optional(z.boolean()),
|
|
53228
|
-
openWorldHint: z.optional(z.boolean())
|
|
53229
|
-
}).passthrough();
|
|
53230
53221
|
var ToolSchema = z.object({
|
|
53231
53222
|
name: z.string(),
|
|
53232
53223
|
description: z.optional(z.string()),
|
|
53233
53224
|
inputSchema: z.object({
|
|
53234
53225
|
type: z.literal("object"),
|
|
53235
53226
|
properties: z.optional(z.object({}).passthrough())
|
|
53236
|
-
}).passthrough()
|
|
53237
|
-
annotations: z.optional(ToolAnnotationsSchema)
|
|
53227
|
+
}).passthrough()
|
|
53238
53228
|
}).passthrough();
|
|
53239
53229
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
53240
53230
|
method: z.literal("tools/list")
|
|
@@ -53517,7 +53507,7 @@ class Protocol {
|
|
|
53517
53507
|
Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
|
|
53518
53508
|
}
|
|
53519
53509
|
_onrequest(request, extra) {
|
|
53520
|
-
var _a, _b, _c
|
|
53510
|
+
var _a, _b, _c;
|
|
53521
53511
|
const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== undefined ? _a : this.fallbackRequestHandler;
|
|
53522
53512
|
if (handler === undefined) {
|
|
53523
53513
|
(_b = this._transport) === null || _b === undefined || _b.send({
|
|
@@ -53535,11 +53525,9 @@ class Protocol {
|
|
|
53535
53525
|
const fullExtra = {
|
|
53536
53526
|
signal: abortController.signal,
|
|
53537
53527
|
sessionId: (_c = this._transport) === null || _c === undefined ? undefined : _c.sessionId,
|
|
53538
|
-
_meta: (_d = request.params) === null || _d === undefined ? undefined : _d._meta,
|
|
53539
53528
|
sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
|
|
53540
53529
|
sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
|
|
53541
|
-
authInfo: extra === null || extra === undefined ? undefined : extra.authInfo
|
|
53542
|
-
requestId: request.id
|
|
53530
|
+
authInfo: extra === null || extra === undefined ? undefined : extra.authInfo
|
|
53543
53531
|
};
|
|
53544
53532
|
Promise.resolve().then(() => handler(request, fullExtra)).then((result) => {
|
|
53545
53533
|
var _a2;
|
|
@@ -55169,8 +55157,7 @@ class McpServer {
|
|
|
55169
55157
|
description: tool.description,
|
|
55170
55158
|
inputSchema: tool.inputSchema ? zodToJsonSchema(tool.inputSchema, {
|
|
55171
55159
|
strictUnions: true
|
|
55172
|
-
}) : EMPTY_OBJECT_JSON_SCHEMA
|
|
55173
|
-
annotations: tool.annotations
|
|
55160
|
+
}) : EMPTY_OBJECT_JSON_SCHEMA
|
|
55174
55161
|
};
|
|
55175
55162
|
})
|
|
55176
55163
|
}));
|
|
@@ -55455,33 +55442,18 @@ class McpServer {
|
|
|
55455
55442
|
if (this._registeredTools[name]) {
|
|
55456
55443
|
throw new Error(`Tool ${name} is already registered`);
|
|
55457
55444
|
}
|
|
55458
|
-
const isZodRawShape = (obj) => {
|
|
55459
|
-
if (typeof obj !== "object" || obj === null)
|
|
55460
|
-
return false;
|
|
55461
|
-
return Object.values(obj).some((v) => v instanceof ZodType);
|
|
55462
|
-
};
|
|
55463
55445
|
let description;
|
|
55464
55446
|
if (typeof rest[0] === "string") {
|
|
55465
55447
|
description = rest.shift();
|
|
55466
55448
|
}
|
|
55467
55449
|
let paramsSchema;
|
|
55468
|
-
let annotations;
|
|
55469
55450
|
if (rest.length > 1) {
|
|
55470
|
-
|
|
55471
|
-
if (isZodRawShape(firstArg)) {
|
|
55472
|
-
paramsSchema = rest.shift();
|
|
55473
|
-
if (rest.length > 1 && typeof rest[0] === "object" && rest[0] !== null && !isZodRawShape(rest[0])) {
|
|
55474
|
-
annotations = rest.shift();
|
|
55475
|
-
}
|
|
55476
|
-
} else if (typeof firstArg === "object" && firstArg !== null) {
|
|
55477
|
-
annotations = rest.shift();
|
|
55478
|
-
}
|
|
55451
|
+
paramsSchema = rest.shift();
|
|
55479
55452
|
}
|
|
55480
55453
|
const cb = rest[0];
|
|
55481
55454
|
const registeredTool = {
|
|
55482
55455
|
description,
|
|
55483
55456
|
inputSchema: paramsSchema === undefined ? undefined : z.object(paramsSchema),
|
|
55484
|
-
annotations,
|
|
55485
55457
|
callback: cb,
|
|
55486
55458
|
enabled: true,
|
|
55487
55459
|
disable: () => registeredTool.update({ enabled: false }),
|
|
@@ -55499,8 +55471,6 @@ class McpServer {
|
|
|
55499
55471
|
registeredTool.inputSchema = z.object(updates.paramsSchema);
|
|
55500
55472
|
if (typeof updates.callback !== "undefined")
|
|
55501
55473
|
registeredTool.callback = updates.callback;
|
|
55502
|
-
if (typeof updates.annotations !== "undefined")
|
|
55503
|
-
registeredTool.annotations = updates.annotations;
|
|
55504
55474
|
if (typeof updates.enabled !== "undefined")
|
|
55505
55475
|
registeredTool.enabled = updates.enabled;
|
|
55506
55476
|
this.sendToolListChanged();
|
|
@@ -61264,7 +61234,7 @@ var {
|
|
|
61264
61234
|
var package_default = {
|
|
61265
61235
|
name: "@settlemint/sdk-mcp",
|
|
61266
61236
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
61267
|
-
version: "2.2.2-
|
|
61237
|
+
version: "2.2.2-pr951947e6",
|
|
61268
61238
|
type: "module",
|
|
61269
61239
|
private: false,
|
|
61270
61240
|
license: "FSL-1.1-MIT",
|
|
@@ -61305,9 +61275,9 @@ var package_default = {
|
|
|
61305
61275
|
dependencies: {
|
|
61306
61276
|
"@graphql-tools/load": "8.1.0",
|
|
61307
61277
|
"@graphql-tools/url-loader": "8.0.31",
|
|
61308
|
-
"@modelcontextprotocol/sdk": "1.
|
|
61309
|
-
"@settlemint/sdk-js": "2.2.2-
|
|
61310
|
-
"@settlemint/sdk-utils": "2.2.2-
|
|
61278
|
+
"@modelcontextprotocol/sdk": "1.10.2",
|
|
61279
|
+
"@settlemint/sdk-js": "2.2.2-pr951947e6",
|
|
61280
|
+
"@settlemint/sdk-utils": "2.2.2-pr951947e6",
|
|
61311
61281
|
"@commander-js/extra-typings": "11.1.0",
|
|
61312
61282
|
commander: "11.1.0",
|
|
61313
61283
|
zod: "3.24.3"
|
|
@@ -67055,4 +67025,4 @@ await main().catch((error2) => {
|
|
|
67055
67025
|
process.exit(1);
|
|
67056
67026
|
});
|
|
67057
67027
|
|
|
67058
|
-
//# debugId=
|
|
67028
|
+
//# debugId=D20CF10718D8A08F64756E2164756E21
|