@settlemint/sdk-mcp 2.6.2-pr294a7058 → 2.6.2-pr3e1d35df
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 -21
- package/dist/mcp.js.map +7 -7
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -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;
|
|
@@ -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-pr3e1d35df",
|
|
82201
82215
|
type: "module",
|
|
82202
82216
|
private: false,
|
|
82203
82217
|
license: "FSL-1.1-MIT",
|
|
@@ -82239,9 +82253,9 @@ 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-
|
|
82256
|
+
"@modelcontextprotocol/sdk": "1.18.0",
|
|
82257
|
+
"@settlemint/sdk-js": "2.6.2-pr3e1d35df",
|
|
82258
|
+
"@settlemint/sdk-utils": "2.6.2-pr3e1d35df",
|
|
82245
82259
|
commander: "14.0.0",
|
|
82246
82260
|
graphql: "16.11.0",
|
|
82247
82261
|
zod: "^4",
|
|
@@ -84972,6 +84986,7 @@ var createBlockchainNetwork = graphql(`
|
|
|
84972
84986
|
$quorumGenesis: QuorumGenesisInput
|
|
84973
84987
|
$externalNodes: [BlockchainNetworkExternalNodeInput!]
|
|
84974
84988
|
$privateKeyId: ID
|
|
84989
|
+
$includePredeployedContracts: Boolean
|
|
84975
84990
|
) {
|
|
84976
84991
|
createBlockchainNetwork(
|
|
84977
84992
|
applicationId: $applicationId
|
|
@@ -85000,6 +85015,7 @@ var createBlockchainNetwork = graphql(`
|
|
|
85000
85015
|
quorumGenesis: $quorumGenesis
|
|
85001
85016
|
externalNodes: $externalNodes
|
|
85002
85017
|
keyMaterial: $privateKeyId
|
|
85018
|
+
includePredeployedContracts: $includePredeployedContracts
|
|
85003
85019
|
) {
|
|
85004
85020
|
...BlockchainNetwork
|
|
85005
85021
|
}
|
|
@@ -88308,4 +88324,4 @@ await main().catch((error44) => {
|
|
|
88308
88324
|
process.exit(1);
|
|
88309
88325
|
});
|
|
88310
88326
|
|
|
88311
|
-
//# debugId=
|
|
88327
|
+
//# debugId=F3EA7C954782634C64756E2164756E21
|