@settlemint/sdk-mcp 2.6.2-prd6a8045f → 2.6.2-prdd413399
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 +76 -62
- package/dist/mcp.js.map +9 -9
- package/package.json +5 -5
package/dist/mcp.js
CHANGED
|
@@ -17550,7 +17550,7 @@ var require_main2 = __commonJS((exports, module) => {
|
|
|
17550
17550
|
};
|
|
17551
17551
|
});
|
|
17552
17552
|
|
|
17553
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
17553
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/error.js
|
|
17554
17554
|
var require_error = __commonJS((exports) => {
|
|
17555
17555
|
class CommanderError extends Error {
|
|
17556
17556
|
constructor(exitCode, code, message) {
|
|
@@ -17574,7 +17574,7 @@ var require_error = __commonJS((exports) => {
|
|
|
17574
17574
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
17575
17575
|
});
|
|
17576
17576
|
|
|
17577
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
17577
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/argument.js
|
|
17578
17578
|
var require_argument = __commonJS((exports) => {
|
|
17579
17579
|
var { InvalidArgumentError } = require_error();
|
|
17580
17580
|
|
|
@@ -17600,7 +17600,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
17600
17600
|
this._name = name;
|
|
17601
17601
|
break;
|
|
17602
17602
|
}
|
|
17603
|
-
if (this._name.
|
|
17603
|
+
if (this._name.endsWith("...")) {
|
|
17604
17604
|
this.variadic = true;
|
|
17605
17605
|
this._name = this._name.slice(0, -3);
|
|
17606
17606
|
}
|
|
@@ -17608,11 +17608,12 @@ var require_argument = __commonJS((exports) => {
|
|
|
17608
17608
|
name() {
|
|
17609
17609
|
return this._name;
|
|
17610
17610
|
}
|
|
17611
|
-
|
|
17611
|
+
_collectValue(value, previous) {
|
|
17612
17612
|
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
|
17613
17613
|
return [value];
|
|
17614
17614
|
}
|
|
17615
|
-
|
|
17615
|
+
previous.push(value);
|
|
17616
|
+
return previous;
|
|
17616
17617
|
}
|
|
17617
17618
|
default(value, description) {
|
|
17618
17619
|
this.defaultValue = value;
|
|
@@ -17630,7 +17631,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
17630
17631
|
throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
17631
17632
|
}
|
|
17632
17633
|
if (this.variadic) {
|
|
17633
|
-
return this.
|
|
17634
|
+
return this._collectValue(arg, previous);
|
|
17634
17635
|
}
|
|
17635
17636
|
return arg;
|
|
17636
17637
|
};
|
|
@@ -17653,7 +17654,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
17653
17654
|
exports.humanReadableArgName = humanReadableArgName;
|
|
17654
17655
|
});
|
|
17655
17656
|
|
|
17656
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
17657
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/help.js
|
|
17657
17658
|
var require_help = __commonJS((exports) => {
|
|
17658
17659
|
var { humanReadableArgName } = require_argument();
|
|
17659
17660
|
|
|
@@ -18010,7 +18011,7 @@ ${itemIndentStr}`);
|
|
|
18010
18011
|
exports.stripColor = stripColor;
|
|
18011
18012
|
});
|
|
18012
18013
|
|
|
18013
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
18014
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/option.js
|
|
18014
18015
|
var require_option = __commonJS((exports) => {
|
|
18015
18016
|
var { InvalidArgumentError } = require_error();
|
|
18016
18017
|
|
|
@@ -18077,11 +18078,12 @@ var require_option = __commonJS((exports) => {
|
|
|
18077
18078
|
this.hidden = !!hide;
|
|
18078
18079
|
return this;
|
|
18079
18080
|
}
|
|
18080
|
-
|
|
18081
|
+
_collectValue(value, previous) {
|
|
18081
18082
|
if (previous === this.defaultValue || !Array.isArray(previous)) {
|
|
18082
18083
|
return [value];
|
|
18083
18084
|
}
|
|
18084
|
-
|
|
18085
|
+
previous.push(value);
|
|
18086
|
+
return previous;
|
|
18085
18087
|
}
|
|
18086
18088
|
choices(values) {
|
|
18087
18089
|
this.argChoices = values.slice();
|
|
@@ -18090,7 +18092,7 @@ var require_option = __commonJS((exports) => {
|
|
|
18090
18092
|
throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
|
|
18091
18093
|
}
|
|
18092
18094
|
if (this.variadic) {
|
|
18093
|
-
return this.
|
|
18095
|
+
return this._collectValue(arg, previous);
|
|
18094
18096
|
}
|
|
18095
18097
|
return arg;
|
|
18096
18098
|
};
|
|
@@ -18193,7 +18195,7 @@ var require_option = __commonJS((exports) => {
|
|
|
18193
18195
|
exports.DualOptions = DualOptions;
|
|
18194
18196
|
});
|
|
18195
18197
|
|
|
18196
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
18198
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/suggestSimilar.js
|
|
18197
18199
|
var require_suggestSimilar = __commonJS((exports) => {
|
|
18198
18200
|
var maxDistance = 3;
|
|
18199
18201
|
function editDistance(a, b) {
|
|
@@ -18266,7 +18268,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
18266
18268
|
exports.suggestSimilar = suggestSimilar;
|
|
18267
18269
|
});
|
|
18268
18270
|
|
|
18269
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
18271
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/lib/command.js
|
|
18270
18272
|
var require_command = __commonJS((exports) => {
|
|
18271
18273
|
var EventEmitter2 = __require("node:events").EventEmitter;
|
|
18272
18274
|
var childProcess = __require("node:child_process");
|
|
@@ -18396,7 +18398,10 @@ var require_command = __commonJS((exports) => {
|
|
|
18396
18398
|
configureOutput(configuration) {
|
|
18397
18399
|
if (configuration === undefined)
|
|
18398
18400
|
return this._outputConfiguration;
|
|
18399
|
-
this._outputConfiguration =
|
|
18401
|
+
this._outputConfiguration = {
|
|
18402
|
+
...this._outputConfiguration,
|
|
18403
|
+
...configuration
|
|
18404
|
+
};
|
|
18400
18405
|
return this;
|
|
18401
18406
|
}
|
|
18402
18407
|
showHelpAfterError(displayHelp = true) {
|
|
@@ -18445,7 +18450,7 @@ var require_command = __commonJS((exports) => {
|
|
|
18445
18450
|
}
|
|
18446
18451
|
addArgument(argument) {
|
|
18447
18452
|
const previousArgument = this.registeredArguments.slice(-1)[0];
|
|
18448
|
-
if (previousArgument
|
|
18453
|
+
if (previousArgument?.variadic) {
|
|
18449
18454
|
throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
|
|
18450
18455
|
}
|
|
18451
18456
|
if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
|
|
@@ -18600,7 +18605,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
18600
18605
|
if (val !== null && option.parseArg) {
|
|
18601
18606
|
val = this._callParseArg(option, val, oldValue, invalidValueMessage);
|
|
18602
18607
|
} else if (val !== null && option.variadic) {
|
|
18603
|
-
val = option.
|
|
18608
|
+
val = option._collectValue(val, oldValue);
|
|
18604
18609
|
}
|
|
18605
18610
|
if (val == null) {
|
|
18606
18611
|
if (option.negate) {
|
|
@@ -18975,7 +18980,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
18975
18980
|
this.processedArgs = processedArgs;
|
|
18976
18981
|
}
|
|
18977
18982
|
_chainOrCall(promise3, fn) {
|
|
18978
|
-
if (promise3
|
|
18983
|
+
if (promise3?.then && typeof promise3.then === "function") {
|
|
18979
18984
|
return promise3.then(() => fn());
|
|
18980
18985
|
}
|
|
18981
18986
|
return fn();
|
|
@@ -19052,7 +19057,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19052
19057
|
promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
|
|
19053
19058
|
return promiseChain;
|
|
19054
19059
|
}
|
|
19055
|
-
if (this.parent
|
|
19060
|
+
if (this.parent?.listenerCount(commandEvent)) {
|
|
19056
19061
|
checkForUnknownOptions();
|
|
19057
19062
|
this._processArguments();
|
|
19058
19063
|
this.parent.emit(commandEvent, operands, unknown3);
|
|
@@ -19114,11 +19119,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19114
19119
|
cmd._checkForConflictingLocalOptions();
|
|
19115
19120
|
});
|
|
19116
19121
|
}
|
|
19117
|
-
parseOptions(
|
|
19122
|
+
parseOptions(args) {
|
|
19118
19123
|
const operands = [];
|
|
19119
19124
|
const unknown3 = [];
|
|
19120
19125
|
let dest = operands;
|
|
19121
|
-
const args = argv.slice();
|
|
19122
19126
|
function maybeOption(arg) {
|
|
19123
19127
|
return arg.length > 1 && arg[0] === "-";
|
|
19124
19128
|
}
|
|
@@ -19128,12 +19132,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19128
19132
|
return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
|
|
19129
19133
|
};
|
|
19130
19134
|
let activeVariadicOption = null;
|
|
19131
|
-
|
|
19132
|
-
|
|
19135
|
+
let activeGroup = null;
|
|
19136
|
+
let i = 0;
|
|
19137
|
+
while (i < args.length || activeGroup) {
|
|
19138
|
+
const arg = activeGroup ?? args[i++];
|
|
19139
|
+
activeGroup = null;
|
|
19133
19140
|
if (arg === "--") {
|
|
19134
19141
|
if (dest === unknown3)
|
|
19135
19142
|
dest.push(arg);
|
|
19136
|
-
dest.push(...args);
|
|
19143
|
+
dest.push(...args.slice(i));
|
|
19137
19144
|
break;
|
|
19138
19145
|
}
|
|
19139
19146
|
if (activeVariadicOption && (!maybeOption(arg) || negativeNumberArg(arg))) {
|
|
@@ -19145,14 +19152,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19145
19152
|
const option = this._findOption(arg);
|
|
19146
19153
|
if (option) {
|
|
19147
19154
|
if (option.required) {
|
|
19148
|
-
const value = args
|
|
19155
|
+
const value = args[i++];
|
|
19149
19156
|
if (value === undefined)
|
|
19150
19157
|
this.optionMissingArgument(option);
|
|
19151
19158
|
this.emit(`option:${option.name()}`, value);
|
|
19152
19159
|
} else if (option.optional) {
|
|
19153
19160
|
let value = null;
|
|
19154
|
-
if (args.length
|
|
19155
|
-
value = args
|
|
19161
|
+
if (i < args.length && (!maybeOption(args[i]) || negativeNumberArg(args[i]))) {
|
|
19162
|
+
value = args[i++];
|
|
19156
19163
|
}
|
|
19157
19164
|
this.emit(`option:${option.name()}`, value);
|
|
19158
19165
|
} else {
|
|
@@ -19169,7 +19176,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19169
19176
|
this.emit(`option:${option.name()}`, arg.slice(2));
|
|
19170
19177
|
} else {
|
|
19171
19178
|
this.emit(`option:${option.name()}`);
|
|
19172
|
-
|
|
19179
|
+
activeGroup = `-${arg.slice(2)}`;
|
|
19173
19180
|
}
|
|
19174
19181
|
continue;
|
|
19175
19182
|
}
|
|
@@ -19188,25 +19195,18 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19188
19195
|
if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown3.length === 0) {
|
|
19189
19196
|
if (this._findCommand(arg)) {
|
|
19190
19197
|
operands.push(arg);
|
|
19191
|
-
|
|
19192
|
-
unknown3.push(...args);
|
|
19198
|
+
unknown3.push(...args.slice(i));
|
|
19193
19199
|
break;
|
|
19194
19200
|
} else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) {
|
|
19195
|
-
operands.push(arg);
|
|
19196
|
-
if (args.length > 0)
|
|
19197
|
-
operands.push(...args);
|
|
19201
|
+
operands.push(arg, ...args.slice(i));
|
|
19198
19202
|
break;
|
|
19199
19203
|
} else if (this._defaultCommandName) {
|
|
19200
|
-
unknown3.push(arg);
|
|
19201
|
-
if (args.length > 0)
|
|
19202
|
-
unknown3.push(...args);
|
|
19204
|
+
unknown3.push(arg, ...args.slice(i));
|
|
19203
19205
|
break;
|
|
19204
19206
|
}
|
|
19205
19207
|
}
|
|
19206
19208
|
if (this._passThroughOptions) {
|
|
19207
|
-
dest.push(arg);
|
|
19208
|
-
if (args.length > 0)
|
|
19209
|
-
dest.push(...args);
|
|
19209
|
+
dest.push(arg, ...args.slice(i));
|
|
19210
19210
|
break;
|
|
19211
19211
|
}
|
|
19212
19212
|
dest.push(arg);
|
|
@@ -19623,7 +19623,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
19623
19623
|
exports.useColor = useColor;
|
|
19624
19624
|
});
|
|
19625
19625
|
|
|
19626
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
19626
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/index.js
|
|
19627
19627
|
var require_commander = __commonJS((exports) => {
|
|
19628
19628
|
var { Argument } = require_argument();
|
|
19629
19629
|
var { Command } = require_command();
|
|
@@ -48436,7 +48436,7 @@ 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.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
48440
48440
|
var LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
48441
48441
|
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
48442
48442
|
LATEST_PROTOCOL_VERSION,
|
|
@@ -48517,12 +48517,19 @@ var CancelledNotificationSchema = NotificationSchema.extend({
|
|
|
48517
48517
|
reason: exports_external.string().optional()
|
|
48518
48518
|
})
|
|
48519
48519
|
});
|
|
48520
|
+
var IconSchema = exports_external.object({
|
|
48521
|
+
src: exports_external.string(),
|
|
48522
|
+
mimeType: exports_external.optional(exports_external.string()),
|
|
48523
|
+
sizes: exports_external.optional(exports_external.string())
|
|
48524
|
+
}).passthrough();
|
|
48520
48525
|
var BaseMetadataSchema = exports_external.object({
|
|
48521
48526
|
name: exports_external.string(),
|
|
48522
48527
|
title: exports_external.optional(exports_external.string())
|
|
48523
48528
|
}).passthrough();
|
|
48524
48529
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
48525
|
-
version: exports_external.string()
|
|
48530
|
+
version: exports_external.string(),
|
|
48531
|
+
websiteUrl: exports_external.optional(exports_external.string()),
|
|
48532
|
+
icons: exports_external.optional(exports_external.array(IconSchema))
|
|
48526
48533
|
});
|
|
48527
48534
|
var ClientCapabilitiesSchema = exports_external.object({
|
|
48528
48535
|
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
@@ -48609,6 +48616,7 @@ var ResourceSchema = BaseMetadataSchema.extend({
|
|
|
48609
48616
|
uri: exports_external.string(),
|
|
48610
48617
|
description: exports_external.optional(exports_external.string()),
|
|
48611
48618
|
mimeType: exports_external.optional(exports_external.string()),
|
|
48619
|
+
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
48612
48620
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48613
48621
|
});
|
|
48614
48622
|
var ResourceTemplateSchema = BaseMetadataSchema.extend({
|
|
@@ -48667,6 +48675,7 @@ var PromptArgumentSchema = exports_external.object({
|
|
|
48667
48675
|
var PromptSchema = BaseMetadataSchema.extend({
|
|
48668
48676
|
description: exports_external.optional(exports_external.string()),
|
|
48669
48677
|
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema)),
|
|
48678
|
+
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
48670
48679
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48671
48680
|
});
|
|
48672
48681
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
@@ -48745,6 +48754,7 @@ var ToolSchema = BaseMetadataSchema.extend({
|
|
|
48745
48754
|
required: exports_external.optional(exports_external.array(exports_external.string()))
|
|
48746
48755
|
}).passthrough()),
|
|
48747
48756
|
annotations: exports_external.optional(ToolAnnotationsSchema),
|
|
48757
|
+
icons: exports_external.optional(exports_external.array(IconSchema)),
|
|
48748
48758
|
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
48749
48759
|
});
|
|
48750
48760
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
@@ -48986,7 +48996,7 @@ class McpError extends Error {
|
|
|
48986
48996
|
}
|
|
48987
48997
|
}
|
|
48988
48998
|
|
|
48989
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
48999
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
48990
49000
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
48991
49001
|
|
|
48992
49002
|
class Protocol {
|
|
@@ -49326,7 +49336,7 @@ function mergeCapabilities(base, additional) {
|
|
|
49326
49336
|
}, { ...base });
|
|
49327
49337
|
}
|
|
49328
49338
|
|
|
49329
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
49339
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
49330
49340
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
49331
49341
|
|
|
49332
49342
|
class Server extends Protocol {
|
|
@@ -49353,7 +49363,7 @@ class Server extends Protocol {
|
|
|
49353
49363
|
const transportSessionId = extra.sessionId || ((_a2 = extra.requestInfo) === null || _a2 === undefined ? undefined : _a2.headers["mcp-session-id"]) || undefined;
|
|
49354
49364
|
const { level } = request.params;
|
|
49355
49365
|
const parseResult = LoggingLevelSchema.safeParse(level);
|
|
49356
|
-
if (
|
|
49366
|
+
if (parseResult.success) {
|
|
49357
49367
|
this._loggingLevels.set(transportSessionId, parseResult.data);
|
|
49358
49368
|
}
|
|
49359
49369
|
return {};
|
|
@@ -49504,7 +49514,7 @@ class Server extends Protocol {
|
|
|
49504
49514
|
}
|
|
49505
49515
|
async sendLoggingMessage(params, sessionId) {
|
|
49506
49516
|
if (this._capabilities.logging) {
|
|
49507
|
-
if (!
|
|
49517
|
+
if (!this.isMessageIgnored(params.level, sessionId)) {
|
|
49508
49518
|
return this.notification({ method: "notifications/message", params });
|
|
49509
49519
|
}
|
|
49510
49520
|
}
|
|
@@ -50764,7 +50774,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
50764
50774
|
}
|
|
50765
50775
|
return combined;
|
|
50766
50776
|
};
|
|
50767
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
50777
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
50768
50778
|
var McpZodTypeKind;
|
|
50769
50779
|
(function(McpZodTypeKind2) {
|
|
50770
50780
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -50817,7 +50827,7 @@ function processCreateParams2(params) {
|
|
|
50817
50827
|
return { errorMap: customMap, description };
|
|
50818
50828
|
}
|
|
50819
50829
|
|
|
50820
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
50830
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
50821
50831
|
class McpServer {
|
|
50822
50832
|
constructor(serverInfo, options) {
|
|
50823
50833
|
this._registeredResources = {};
|
|
@@ -50856,7 +50866,8 @@ class McpServer {
|
|
|
50856
50866
|
inputSchema: tool.inputSchema ? zodToJsonSchema(tool.inputSchema, {
|
|
50857
50867
|
strictUnions: true
|
|
50858
50868
|
}) : EMPTY_OBJECT_JSON_SCHEMA,
|
|
50859
|
-
annotations: tool.annotations
|
|
50869
|
+
annotations: tool.annotations,
|
|
50870
|
+
_meta: tool._meta
|
|
50860
50871
|
};
|
|
50861
50872
|
if (tool.outputSchema) {
|
|
50862
50873
|
toolDefinition.outputSchema = zodToJsonSchema(tool.outputSchema, { strictUnions: true });
|
|
@@ -51221,13 +51232,14 @@ class McpServer {
|
|
|
51221
51232
|
this._registeredPrompts[name] = registeredPrompt;
|
|
51222
51233
|
return registeredPrompt;
|
|
51223
51234
|
}
|
|
51224
|
-
_createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, callback) {
|
|
51235
|
+
_createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, _meta, callback) {
|
|
51225
51236
|
const registeredTool = {
|
|
51226
51237
|
title,
|
|
51227
51238
|
description,
|
|
51228
51239
|
inputSchema: inputSchema === undefined ? undefined : exports_external.object(inputSchema),
|
|
51229
51240
|
outputSchema: outputSchema === undefined ? undefined : exports_external.object(outputSchema),
|
|
51230
51241
|
annotations,
|
|
51242
|
+
_meta,
|
|
51231
51243
|
callback,
|
|
51232
51244
|
enabled: true,
|
|
51233
51245
|
disable: () => registeredTool.update({ enabled: false }),
|
|
@@ -51249,6 +51261,8 @@ class McpServer {
|
|
|
51249
51261
|
registeredTool.callback = updates.callback;
|
|
51250
51262
|
if (typeof updates.annotations !== "undefined")
|
|
51251
51263
|
registeredTool.annotations = updates.annotations;
|
|
51264
|
+
if (typeof updates._meta !== "undefined")
|
|
51265
|
+
registeredTool._meta = updates._meta;
|
|
51252
51266
|
if (typeof updates.enabled !== "undefined")
|
|
51253
51267
|
registeredTool.enabled = updates.enabled;
|
|
51254
51268
|
this.sendToolListChanged();
|
|
@@ -51282,14 +51296,14 @@ class McpServer {
|
|
|
51282
51296
|
}
|
|
51283
51297
|
}
|
|
51284
51298
|
const callback = rest[0];
|
|
51285
|
-
return this._createRegisteredTool(name, undefined, description, inputSchema, outputSchema, annotations, callback);
|
|
51299
|
+
return this._createRegisteredTool(name, undefined, description, inputSchema, outputSchema, annotations, undefined, callback);
|
|
51286
51300
|
}
|
|
51287
51301
|
registerTool(name, config, cb) {
|
|
51288
51302
|
if (this._registeredTools[name]) {
|
|
51289
51303
|
throw new Error(`Tool ${name} is already registered`);
|
|
51290
51304
|
}
|
|
51291
|
-
const { title, description, inputSchema, outputSchema, annotations } = config;
|
|
51292
|
-
return this._createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, cb);
|
|
51305
|
+
const { title, description, inputSchema, outputSchema, annotations, _meta } = config;
|
|
51306
|
+
return this._createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, _meta, cb);
|
|
51293
51307
|
}
|
|
51294
51308
|
prompt(name, ...rest) {
|
|
51295
51309
|
if (this._registeredPrompts[name]) {
|
|
@@ -51377,10 +51391,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
51377
51391
|
}
|
|
51378
51392
|
};
|
|
51379
51393
|
|
|
51380
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51394
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
51381
51395
|
import process2 from "node:process";
|
|
51382
51396
|
|
|
51383
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51397
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
51384
51398
|
class ReadBuffer {
|
|
51385
51399
|
append(chunk) {
|
|
51386
51400
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -51410,7 +51424,7 @@ function serializeMessage(message) {
|
|
|
51410
51424
|
`;
|
|
51411
51425
|
}
|
|
51412
51426
|
|
|
51413
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51427
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.18.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
51414
51428
|
class StdioServerTransport {
|
|
51415
51429
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
51416
51430
|
this._stdin = _stdin;
|
|
@@ -69182,7 +69196,7 @@ var DotEnvSchema2 = exports_external2.object({
|
|
|
69182
69196
|
var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
|
|
69183
69197
|
var IdSchema2 = exports_external2.union([exports_external2.string().uuid(), exports_external2.string().regex(/^[0-9a-fA-F]{24}$/)]);
|
|
69184
69198
|
|
|
69185
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
69199
|
+
// ../../node_modules/.bun/commander@14.0.1/node_modules/commander/esm.mjs
|
|
69186
69200
|
var import__2 = __toESM(require_commander(), 1);
|
|
69187
69201
|
var {
|
|
69188
69202
|
program,
|
|
@@ -82197,7 +82211,7 @@ var portalQueries = (server, env3) => {
|
|
|
82197
82211
|
var package_default = {
|
|
82198
82212
|
name: "@settlemint/sdk-mcp",
|
|
82199
82213
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
82200
|
-
version: "2.6.2-
|
|
82214
|
+
version: "2.6.2-prdd413399",
|
|
82201
82215
|
type: "module",
|
|
82202
82216
|
private: false,
|
|
82203
82217
|
license: "FSL-1.1-MIT",
|
|
@@ -82239,10 +82253,10 @@ var package_default = {
|
|
|
82239
82253
|
"@commander-js/extra-typings": "14.0.0",
|
|
82240
82254
|
"@graphql-tools/load": "8.1.2",
|
|
82241
82255
|
"@graphql-tools/url-loader": "9.0.0",
|
|
82242
|
-
"@modelcontextprotocol/sdk": "1.
|
|
82243
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
82244
|
-
"@settlemint/sdk-utils": "2.6.2-
|
|
82245
|
-
commander: "14.0.
|
|
82256
|
+
"@modelcontextprotocol/sdk": "1.18.0",
|
|
82257
|
+
"@settlemint/sdk-js": "2.6.2-prdd413399",
|
|
82258
|
+
"@settlemint/sdk-utils": "2.6.2-prdd413399",
|
|
82259
|
+
commander: "14.0.1",
|
|
82246
82260
|
graphql: "16.11.0",
|
|
82247
82261
|
zod: "^4",
|
|
82248
82262
|
"zod-to-json-schema": "^3.23.0"
|
|
@@ -88310,4 +88324,4 @@ await main().catch((error44) => {
|
|
|
88310
88324
|
process.exit(1);
|
|
88311
88325
|
});
|
|
88312
88326
|
|
|
88313
|
-
//# debugId=
|
|
88327
|
+
//# debugId=219E27CC2DD8CC5C64756E2164756E21
|