@settlemint/sdk-mcp 2.6.1 → 2.6.2
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 +46 -75
- package/dist/mcp.js.map +6 -6
- 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.17.
|
|
48439
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/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,
|
|
@@ -48986,7 +48986,7 @@ class McpError extends Error {
|
|
|
48986
48986
|
}
|
|
48987
48987
|
}
|
|
48988
48988
|
|
|
48989
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
48989
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
48990
48990
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
48991
48991
|
|
|
48992
48992
|
class Protocol {
|
|
@@ -49326,7 +49326,7 @@ function mergeCapabilities(base, additional) {
|
|
|
49326
49326
|
}, { ...base });
|
|
49327
49327
|
}
|
|
49328
49328
|
|
|
49329
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
49329
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
49330
49330
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
49331
49331
|
|
|
49332
49332
|
class Server extends Protocol {
|
|
@@ -49334,6 +49334,12 @@ class Server extends Protocol {
|
|
|
49334
49334
|
var _a;
|
|
49335
49335
|
super(options);
|
|
49336
49336
|
this._serverInfo = _serverInfo;
|
|
49337
|
+
this._loggingLevels = new Map;
|
|
49338
|
+
this.LOG_LEVEL_SEVERITY = new Map(LoggingLevelSchema.options.map((level, index) => [level, index]));
|
|
49339
|
+
this.isMessageIgnored = (level, sessionId) => {
|
|
49340
|
+
const currentLevel = this._loggingLevels.get(sessionId);
|
|
49341
|
+
return currentLevel ? this.LOG_LEVEL_SEVERITY.get(level) < this.LOG_LEVEL_SEVERITY.get(currentLevel) : false;
|
|
49342
|
+
};
|
|
49337
49343
|
this._capabilities = (_a = options === null || options === undefined ? undefined : options.capabilities) !== null && _a !== undefined ? _a : {};
|
|
49338
49344
|
this._instructions = options === null || options === undefined ? undefined : options.instructions;
|
|
49339
49345
|
this.setRequestHandler(InitializeRequestSchema, (request) => this._oninitialize(request));
|
|
@@ -49341,6 +49347,18 @@ class Server extends Protocol {
|
|
|
49341
49347
|
var _a2;
|
|
49342
49348
|
return (_a2 = this.oninitialized) === null || _a2 === undefined ? undefined : _a2.call(this);
|
|
49343
49349
|
});
|
|
49350
|
+
if (this._capabilities.logging) {
|
|
49351
|
+
this.setRequestHandler(SetLevelRequestSchema, async (request, extra) => {
|
|
49352
|
+
var _a2;
|
|
49353
|
+
const transportSessionId = extra.sessionId || ((_a2 = extra.requestInfo) === null || _a2 === undefined ? undefined : _a2.headers["mcp-session-id"]) || undefined;
|
|
49354
|
+
const { level } = request.params;
|
|
49355
|
+
const parseResult = LoggingLevelSchema.safeParse(level);
|
|
49356
|
+
if (transportSessionId && parseResult.success) {
|
|
49357
|
+
this._loggingLevels.set(transportSessionId, parseResult.data);
|
|
49358
|
+
}
|
|
49359
|
+
return {};
|
|
49360
|
+
});
|
|
49361
|
+
}
|
|
49344
49362
|
}
|
|
49345
49363
|
registerCapabilities(capabilities) {
|
|
49346
49364
|
if (this.transport) {
|
|
@@ -49484,8 +49502,12 @@ class Server extends Protocol {
|
|
|
49484
49502
|
async listRoots(params, options) {
|
|
49485
49503
|
return this.request({ method: "roots/list", params }, ListRootsResultSchema, options);
|
|
49486
49504
|
}
|
|
49487
|
-
async sendLoggingMessage(params) {
|
|
49488
|
-
|
|
49505
|
+
async sendLoggingMessage(params, sessionId) {
|
|
49506
|
+
if (this._capabilities.logging) {
|
|
49507
|
+
if (!sessionId || !this.isMessageIgnored(params.level, sessionId)) {
|
|
49508
|
+
return this.notification({ method: "notifications/message", params });
|
|
49509
|
+
}
|
|
49510
|
+
}
|
|
49489
49511
|
}
|
|
49490
49512
|
async sendResourceUpdated(params) {
|
|
49491
49513
|
return this.notification({
|
|
@@ -50742,7 +50764,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
50742
50764
|
}
|
|
50743
50765
|
return combined;
|
|
50744
50766
|
};
|
|
50745
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
50767
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
50746
50768
|
var McpZodTypeKind;
|
|
50747
50769
|
(function(McpZodTypeKind2) {
|
|
50748
50770
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -50795,7 +50817,7 @@ function processCreateParams2(params) {
|
|
|
50795
50817
|
return { errorMap: customMap, description };
|
|
50796
50818
|
}
|
|
50797
50819
|
|
|
50798
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
50820
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
50799
50821
|
class McpServer {
|
|
50800
50822
|
constructor(serverInfo, options) {
|
|
50801
50823
|
this._registeredResources = {};
|
|
@@ -51300,6 +51322,9 @@ class McpServer {
|
|
|
51300
51322
|
isConnected() {
|
|
51301
51323
|
return this.server.transport !== undefined;
|
|
51302
51324
|
}
|
|
51325
|
+
async sendLoggingMessage(params, sessionId) {
|
|
51326
|
+
return this.server.sendLoggingMessage(params, sessionId);
|
|
51327
|
+
}
|
|
51303
51328
|
sendResourceListChanged() {
|
|
51304
51329
|
if (this.isConnected()) {
|
|
51305
51330
|
this.server.sendResourceListChanged();
|
|
@@ -51352,10 +51377,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
51352
51377
|
}
|
|
51353
51378
|
};
|
|
51354
51379
|
|
|
51355
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
51380
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
51356
51381
|
import process2 from "node:process";
|
|
51357
51382
|
|
|
51358
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
51383
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
51359
51384
|
class ReadBuffer {
|
|
51360
51385
|
append(chunk) {
|
|
51361
51386
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -51385,7 +51410,7 @@ function serializeMessage(message) {
|
|
|
51385
51410
|
`;
|
|
51386
51411
|
}
|
|
51387
51412
|
|
|
51388
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.
|
|
51413
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
51389
51414
|
class StdioServerTransport {
|
|
51390
51415
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
51391
51416
|
this._stdin = _stdin;
|
|
@@ -82110,7 +82135,7 @@ var portalQueries = (server, env3) => {
|
|
|
82110
82135
|
var package_default = {
|
|
82111
82136
|
name: "@settlemint/sdk-mcp",
|
|
82112
82137
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
82113
|
-
version: "2.6.
|
|
82138
|
+
version: "2.6.2",
|
|
82114
82139
|
type: "module",
|
|
82115
82140
|
private: false,
|
|
82116
82141
|
license: "FSL-1.1-MIT",
|
|
@@ -82152,9 +82177,9 @@ var package_default = {
|
|
|
82152
82177
|
"@commander-js/extra-typings": "14.0.0",
|
|
82153
82178
|
"@graphql-tools/load": "8.1.2",
|
|
82154
82179
|
"@graphql-tools/url-loader": "8.0.33",
|
|
82155
|
-
"@modelcontextprotocol/sdk": "1.17.
|
|
82156
|
-
"@settlemint/sdk-js": "2.6.
|
|
82157
|
-
"@settlemint/sdk-utils": "2.6.
|
|
82180
|
+
"@modelcontextprotocol/sdk": "1.17.5",
|
|
82181
|
+
"@settlemint/sdk-js": "2.6.2",
|
|
82182
|
+
"@settlemint/sdk-utils": "2.6.2",
|
|
82158
82183
|
commander: "14.0.0",
|
|
82159
82184
|
graphql: "16.11.0",
|
|
82160
82185
|
zod: "^4",
|
|
@@ -84815,36 +84840,6 @@ var BlockchainNetworkFragment = graphql(`
|
|
|
84815
84840
|
... on BesuIbftv2BlockchainNetwork {
|
|
84816
84841
|
chainId
|
|
84817
84842
|
}
|
|
84818
|
-
... on GethPoWBlockchainNetwork {
|
|
84819
|
-
chainId
|
|
84820
|
-
}
|
|
84821
|
-
... on GethPoSRinkebyBlockchainNetwork {
|
|
84822
|
-
chainId
|
|
84823
|
-
}
|
|
84824
|
-
... on GethVenidiumBlockchainNetwork {
|
|
84825
|
-
chainId
|
|
84826
|
-
}
|
|
84827
|
-
... on GethGoerliBlockchainNetwork {
|
|
84828
|
-
chainId
|
|
84829
|
-
}
|
|
84830
|
-
... on AvalancheBlockchainNetwork {
|
|
84831
|
-
chainId
|
|
84832
|
-
}
|
|
84833
|
-
... on AvalancheFujiBlockchainNetwork {
|
|
84834
|
-
chainId
|
|
84835
|
-
}
|
|
84836
|
-
... on BscPoWBlockchainNetwork {
|
|
84837
|
-
chainId
|
|
84838
|
-
}
|
|
84839
|
-
... on BscPoWTestnetBlockchainNetwork {
|
|
84840
|
-
chainId
|
|
84841
|
-
}
|
|
84842
|
-
... on PolygonBlockchainNetwork {
|
|
84843
|
-
chainId
|
|
84844
|
-
}
|
|
84845
|
-
... on PolygonMumbaiBlockchainNetwork {
|
|
84846
|
-
chainId
|
|
84847
|
-
}
|
|
84848
84843
|
... on PolygonEdgePoABlockchainNetwork {
|
|
84849
84844
|
chainId
|
|
84850
84845
|
}
|
|
@@ -84854,6 +84849,9 @@ var BlockchainNetworkFragment = graphql(`
|
|
|
84854
84849
|
... on GethCliqueBlockchainNetwork {
|
|
84855
84850
|
chainId
|
|
84856
84851
|
}
|
|
84852
|
+
... on PublicEvmBlockchainNetwork {
|
|
84853
|
+
chainId
|
|
84854
|
+
}
|
|
84857
84855
|
blockchainNodes {
|
|
84858
84856
|
... on BlockchainNode {
|
|
84859
84857
|
id
|
|
@@ -85047,36 +85045,6 @@ var BlockchainNodeFragment = graphql(`
|
|
|
85047
85045
|
... on BesuIbftv2BlockchainNetwork {
|
|
85048
85046
|
chainId
|
|
85049
85047
|
}
|
|
85050
|
-
... on GethPoWBlockchainNetwork {
|
|
85051
|
-
chainId
|
|
85052
|
-
}
|
|
85053
|
-
... on GethPoSRinkebyBlockchainNetwork {
|
|
85054
|
-
chainId
|
|
85055
|
-
}
|
|
85056
|
-
... on GethVenidiumBlockchainNetwork {
|
|
85057
|
-
chainId
|
|
85058
|
-
}
|
|
85059
|
-
... on GethGoerliBlockchainNetwork {
|
|
85060
|
-
chainId
|
|
85061
|
-
}
|
|
85062
|
-
... on AvalancheBlockchainNetwork {
|
|
85063
|
-
chainId
|
|
85064
|
-
}
|
|
85065
|
-
... on AvalancheFujiBlockchainNetwork {
|
|
85066
|
-
chainId
|
|
85067
|
-
}
|
|
85068
|
-
... on BscPoWBlockchainNetwork {
|
|
85069
|
-
chainId
|
|
85070
|
-
}
|
|
85071
|
-
... on BscPoWTestnetBlockchainNetwork {
|
|
85072
|
-
chainId
|
|
85073
|
-
}
|
|
85074
|
-
... on PolygonBlockchainNetwork {
|
|
85075
|
-
chainId
|
|
85076
|
-
}
|
|
85077
|
-
... on PolygonMumbaiBlockchainNetwork {
|
|
85078
|
-
chainId
|
|
85079
|
-
}
|
|
85080
85048
|
... on PolygonEdgePoABlockchainNetwork {
|
|
85081
85049
|
chainId
|
|
85082
85050
|
}
|
|
@@ -85086,6 +85054,9 @@ var BlockchainNodeFragment = graphql(`
|
|
|
85086
85054
|
... on GethCliqueBlockchainNetwork {
|
|
85087
85055
|
chainId
|
|
85088
85056
|
}
|
|
85057
|
+
... on PublicEvmBlockchainNetwork {
|
|
85058
|
+
chainId
|
|
85059
|
+
}
|
|
85089
85060
|
}
|
|
85090
85061
|
}
|
|
85091
85062
|
privateKeys {
|
|
@@ -88275,4 +88246,4 @@ await main().catch((error44) => {
|
|
|
88275
88246
|
process.exit(1);
|
|
88276
88247
|
});
|
|
88277
88248
|
|
|
88278
|
-
//# debugId=
|
|
88249
|
+
//# debugId=67288B0B8B3716BA64756E2164756E21
|