@settlemint/sdk-mcp 2.4.0-praf6ea8ac → 2.4.0-prb71b2280
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 +15 -27
- package/dist/mcp.js.map +9 -9
- package/package.json +5 -7
package/dist/mcp.js
CHANGED
|
@@ -16722,11 +16722,9 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
16722
16722
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
16723
16723
|
return;
|
|
16724
16724
|
}
|
|
16725
|
-
if (version !==
|
|
16725
|
+
if (version !== 8 && version !== 13) {
|
|
16726
16726
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
16727
|
-
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message
|
|
16728
|
-
"Sec-WebSocket-Version": "13, 8"
|
|
16729
|
-
});
|
|
16727
|
+
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
16730
16728
|
return;
|
|
16731
16729
|
}
|
|
16732
16730
|
if (!this.shouldHandle(req)) {
|
|
@@ -16865,13 +16863,13 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
16865
16863
|
\r
|
|
16866
16864
|
` + message);
|
|
16867
16865
|
}
|
|
16868
|
-
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message
|
|
16866
|
+
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) {
|
|
16869
16867
|
if (server.listenerCount("wsClientError")) {
|
|
16870
16868
|
const err = new Error(message);
|
|
16871
16869
|
Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
|
|
16872
16870
|
server.emit("wsClientError", err, socket, req);
|
|
16873
16871
|
} else {
|
|
16874
|
-
abortHandshake(socket, code, message
|
|
16872
|
+
abortHandshake(socket, code, message);
|
|
16875
16873
|
}
|
|
16876
16874
|
}
|
|
16877
16875
|
});
|
|
@@ -59941,21 +59939,14 @@ class Protocol {
|
|
|
59941
59939
|
}
|
|
59942
59940
|
}
|
|
59943
59941
|
async connect(transport) {
|
|
59944
|
-
var _a, _b, _c;
|
|
59945
59942
|
this._transport = transport;
|
|
59946
|
-
const _onclose = (_a = this.transport) === null || _a === undefined ? undefined : _a.onclose;
|
|
59947
59943
|
this._transport.onclose = () => {
|
|
59948
|
-
_onclose === null || _onclose === undefined || _onclose();
|
|
59949
59944
|
this._onclose();
|
|
59950
59945
|
};
|
|
59951
|
-
const _onerror = (_b = this.transport) === null || _b === undefined ? undefined : _b.onerror;
|
|
59952
59946
|
this._transport.onerror = (error) => {
|
|
59953
|
-
_onerror === null || _onerror === undefined || _onerror(error);
|
|
59954
59947
|
this._onerror(error);
|
|
59955
59948
|
};
|
|
59956
|
-
const _onmessage = (_c = this._transport) === null || _c === undefined ? undefined : _c.onmessage;
|
|
59957
59949
|
this._transport.onmessage = (message, extra) => {
|
|
59958
|
-
_onmessage === null || _onmessage === undefined || _onmessage(message, extra);
|
|
59959
59950
|
if (isJSONRPCResponse(message) || isJSONRPCError(message)) {
|
|
59960
59951
|
this._onresponse(message);
|
|
59961
59952
|
} else if (isJSONRPCRequest(message)) {
|
|
@@ -60015,8 +60006,7 @@ class Protocol {
|
|
|
60015
60006
|
sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
|
|
60016
60007
|
sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
|
|
60017
60008
|
authInfo: extra === null || extra === undefined ? undefined : extra.authInfo,
|
|
60018
|
-
requestId: request.id
|
|
60019
|
-
requestInfo: extra === null || extra === undefined ? undefined : extra.requestInfo
|
|
60009
|
+
requestId: request.id
|
|
60020
60010
|
};
|
|
60021
60011
|
Promise.resolve().then(() => handler(request, fullExtra)).then((result) => {
|
|
60022
60012
|
var _a2;
|
|
@@ -61731,7 +61721,7 @@ class McpServer {
|
|
|
61731
61721
|
};
|
|
61732
61722
|
}
|
|
61733
61723
|
}
|
|
61734
|
-
if (tool.outputSchema
|
|
61724
|
+
if (tool.outputSchema) {
|
|
61735
61725
|
if (!result.structuredContent) {
|
|
61736
61726
|
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} has an output schema but no structured content was provided`);
|
|
61737
61727
|
}
|
|
@@ -73574,7 +73564,7 @@ function tryParseJson(value, defaultValue = null) {
|
|
|
73574
73564
|
return defaultValue;
|
|
73575
73565
|
}
|
|
73576
73566
|
return parsed;
|
|
73577
|
-
} catch (
|
|
73567
|
+
} catch (err) {
|
|
73578
73568
|
return defaultValue;
|
|
73579
73569
|
}
|
|
73580
73570
|
}
|
|
@@ -90315,7 +90305,7 @@ function tryParseJson2(value, defaultValue = null) {
|
|
|
90315
90305
|
return defaultValue;
|
|
90316
90306
|
}
|
|
90317
90307
|
return parsed;
|
|
90318
|
-
} catch (
|
|
90308
|
+
} catch (err) {
|
|
90319
90309
|
return defaultValue;
|
|
90320
90310
|
}
|
|
90321
90311
|
}
|
|
@@ -90399,7 +90389,7 @@ var {
|
|
|
90399
90389
|
var package_default = {
|
|
90400
90390
|
name: "@settlemint/sdk-mcp",
|
|
90401
90391
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
90402
|
-
version: "2.4.0-
|
|
90392
|
+
version: "2.4.0-prb71b2280",
|
|
90403
90393
|
type: "module",
|
|
90404
90394
|
private: false,
|
|
90405
90395
|
license: "FSL-1.1-MIT",
|
|
@@ -90418,9 +90408,7 @@ var package_default = {
|
|
|
90418
90408
|
url: "https://github.com/settlemint/sdk/issues",
|
|
90419
90409
|
email: "support@settlemint.com"
|
|
90420
90410
|
},
|
|
90421
|
-
files: [
|
|
90422
|
-
"dist"
|
|
90423
|
-
],
|
|
90411
|
+
files: ["dist"],
|
|
90424
90412
|
exports: {
|
|
90425
90413
|
"./*": {
|
|
90426
90414
|
types: "./dist/*.d.ts",
|
|
@@ -90442,9 +90430,9 @@ var package_default = {
|
|
|
90442
90430
|
dependencies: {
|
|
90443
90431
|
"@graphql-tools/load": "8.1.0",
|
|
90444
90432
|
"@graphql-tools/url-loader": "8.0.31",
|
|
90445
|
-
"@modelcontextprotocol/sdk": "1.13.
|
|
90446
|
-
"@settlemint/sdk-js": "2.4.0-
|
|
90447
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
90433
|
+
"@modelcontextprotocol/sdk": "1.13.1",
|
|
90434
|
+
"@settlemint/sdk-js": "2.4.0-prb71b2280",
|
|
90435
|
+
"@settlemint/sdk-utils": "2.4.0-prb71b2280",
|
|
90448
90436
|
"@commander-js/extra-typings": "14.0.0",
|
|
90449
90437
|
commander: "14.0.0",
|
|
90450
90438
|
zod: "^3.25.0"
|
|
@@ -91275,7 +91263,7 @@ var processFieldTypes = (fields2, schema, collectedTypes) => {
|
|
|
91275
91263
|
}
|
|
91276
91264
|
};
|
|
91277
91265
|
var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
|
|
91278
|
-
const typeName = type.toString().replace(/[[\]!]/g, "");
|
|
91266
|
+
const typeName = type.toString().replace(/[\[\]!]/g, "");
|
|
91279
91267
|
if (collectedTypes.has(typeName) || ["String", "Int", "Float", "Boolean", "ID"].includes(typeName)) {
|
|
91280
91268
|
return collectedTypes;
|
|
91281
91269
|
}
|
|
@@ -106893,4 +106881,4 @@ await main().catch((error41) => {
|
|
|
106893
106881
|
process.exit(1);
|
|
106894
106882
|
});
|
|
106895
106883
|
|
|
106896
|
-
//# debugId=
|
|
106884
|
+
//# debugId=A89CED777CA15F0164756E2164756E21
|