@settlemint/sdk-mcp 2.2.3-pre66c2be9 → 2.2.3-preb2eda12
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 +20 -11
- package/dist/mcp.js.map +4 -4
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -55964,11 +55964,6 @@ class McpServer {
|
|
|
55964
55964
|
if (this._registeredTools[name]) {
|
|
55965
55965
|
throw new Error(`Tool ${name} is already registered`);
|
|
55966
55966
|
}
|
|
55967
|
-
const isZodRawShape = (obj) => {
|
|
55968
|
-
if (typeof obj !== "object" || obj === null)
|
|
55969
|
-
return false;
|
|
55970
|
-
return Object.values(obj).some((v) => v instanceof ZodType);
|
|
55971
|
-
};
|
|
55972
55967
|
let description;
|
|
55973
55968
|
if (typeof rest[0] === "string") {
|
|
55974
55969
|
description = rest.shift();
|
|
@@ -56085,6 +56080,15 @@ class McpServer {
|
|
|
56085
56080
|
var EMPTY_OBJECT_JSON_SCHEMA = {
|
|
56086
56081
|
type: "object"
|
|
56087
56082
|
};
|
|
56083
|
+
function isZodRawShape(obj) {
|
|
56084
|
+
if (typeof obj !== "object" || obj === null)
|
|
56085
|
+
return false;
|
|
56086
|
+
const isEmptyObject = Object.keys(obj).length === 0;
|
|
56087
|
+
return isEmptyObject || Object.values(obj).some(isZodTypeLike);
|
|
56088
|
+
}
|
|
56089
|
+
function isZodTypeLike(value) {
|
|
56090
|
+
return value !== null && typeof value === "object" && "parse" in value && typeof value.parse === "function" && "safeParse" in value && typeof value.safeParse === "function";
|
|
56091
|
+
}
|
|
56088
56092
|
function promptArgumentsFromSchema(schema) {
|
|
56089
56093
|
return Object.entries(schema.shape).map(([name, field]) => ({
|
|
56090
56094
|
name,
|
|
@@ -61773,7 +61777,7 @@ var {
|
|
|
61773
61777
|
var package_default = {
|
|
61774
61778
|
name: "@settlemint/sdk-mcp",
|
|
61775
61779
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
61776
|
-
version: "2.2.3-
|
|
61780
|
+
version: "2.2.3-preb2eda12",
|
|
61777
61781
|
type: "module",
|
|
61778
61782
|
private: false,
|
|
61779
61783
|
license: "FSL-1.1-MIT",
|
|
@@ -61814,9 +61818,9 @@ var package_default = {
|
|
|
61814
61818
|
dependencies: {
|
|
61815
61819
|
"@graphql-tools/load": "8.1.0",
|
|
61816
61820
|
"@graphql-tools/url-loader": "8.0.31",
|
|
61817
|
-
"@modelcontextprotocol/sdk": "1.11.
|
|
61818
|
-
"@settlemint/sdk-js": "2.2.3-
|
|
61819
|
-
"@settlemint/sdk-utils": "2.2.3-
|
|
61821
|
+
"@modelcontextprotocol/sdk": "1.11.2",
|
|
61822
|
+
"@settlemint/sdk-js": "2.2.3-preb2eda12",
|
|
61823
|
+
"@settlemint/sdk-utils": "2.2.3-preb2eda12",
|
|
61820
61824
|
"@commander-js/extra-typings": "11.1.0",
|
|
61821
61825
|
commander: "11.1.0",
|
|
61822
61826
|
zod: "3.24.4"
|
|
@@ -65466,7 +65470,12 @@ var getPlatformConfigQuery = graphql(`
|
|
|
65466
65470
|
disabled
|
|
65467
65471
|
}
|
|
65468
65472
|
}
|
|
65469
|
-
|
|
65473
|
+
preDeployedAbis {
|
|
65474
|
+
id
|
|
65475
|
+
featureflagged
|
|
65476
|
+
abis
|
|
65477
|
+
label
|
|
65478
|
+
}
|
|
65470
65479
|
sdkVersion
|
|
65471
65480
|
kits {
|
|
65472
65481
|
id
|
|
@@ -67564,4 +67573,4 @@ await main().catch((error2) => {
|
|
|
67564
67573
|
process.exit(1);
|
|
67565
67574
|
});
|
|
67566
67575
|
|
|
67567
|
-
//# debugId=
|
|
67576
|
+
//# debugId=83A06A3C169B8FEA64756E2164756E21
|