@settlemint/sdk-mcp 2.4.0-pr3fd1ae9a → 2.4.0-pr40fde26a
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 +13 -21
- package/dist/mcp.js.map +3 -3
- package/package.json +3 -3
package/dist/mcp.js
CHANGED
|
@@ -90400,7 +90400,7 @@ var {
|
|
|
90400
90400
|
var package_default = {
|
|
90401
90401
|
name: "@settlemint/sdk-mcp",
|
|
90402
90402
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
90403
|
-
version: "2.4.0-
|
|
90403
|
+
version: "2.4.0-pr40fde26a",
|
|
90404
90404
|
type: "module",
|
|
90405
90405
|
private: false,
|
|
90406
90406
|
license: "FSL-1.1-MIT",
|
|
@@ -90444,8 +90444,8 @@ var package_default = {
|
|
|
90444
90444
|
"@graphql-tools/load": "8.1.0",
|
|
90445
90445
|
"@graphql-tools/url-loader": "8.0.31",
|
|
90446
90446
|
"@modelcontextprotocol/sdk": "1.13.3",
|
|
90447
|
-
"@settlemint/sdk-js": "2.4.0-
|
|
90448
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
90447
|
+
"@settlemint/sdk-js": "2.4.0-pr40fde26a",
|
|
90448
|
+
"@settlemint/sdk-utils": "2.4.0-pr40fde26a",
|
|
90449
90449
|
"@commander-js/extra-typings": "14.0.0",
|
|
90450
90450
|
commander: "14.0.0",
|
|
90451
90451
|
zod: "^3.25.0"
|
|
@@ -103570,9 +103570,8 @@ var workspaceList = (gqlClient) => {
|
|
|
103570
103570
|
const { workspaces } = await gqlClient.request(getWorkspacesAndApplications);
|
|
103571
103571
|
const allWorkspaces = workspaces.reduce((acc, workspace) => {
|
|
103572
103572
|
acc.push(workspace);
|
|
103573
|
-
if (workspace.childWorkspaces)
|
|
103573
|
+
if (workspace.childWorkspaces)
|
|
103574
103574
|
acc.push(...workspace.childWorkspaces);
|
|
103575
|
-
}
|
|
103576
103575
|
return acc;
|
|
103577
103576
|
}, []);
|
|
103578
103577
|
return allWorkspaces.sort((a3, b) => a3.name.localeCompare(b.name));
|
|
@@ -103599,9 +103598,8 @@ var workspaceDelete = (gqlClient) => {
|
|
|
103599
103598
|
var workspaceAddCredits = (gqlClient) => {
|
|
103600
103599
|
return async (workspaceId, amount) => {
|
|
103601
103600
|
const id = validate3(IdSchema2, workspaceId);
|
|
103602
|
-
if (amount <= 0)
|
|
103601
|
+
if (amount <= 0)
|
|
103603
103602
|
throw new Error("Credit amount must be a positive number");
|
|
103604
|
-
}
|
|
103605
103603
|
const { addCredits: result } = await gqlClient.request(addCredits, {
|
|
103606
103604
|
workspaceId: id,
|
|
103607
103605
|
amount
|
|
@@ -103723,9 +103721,8 @@ var applicationAccessTokenCreate = (gqlClient) => {
|
|
|
103723
103721
|
...otherArgs,
|
|
103724
103722
|
applicationId: application.id
|
|
103725
103723
|
});
|
|
103726
|
-
if (!applicationAccessToken.token)
|
|
103724
|
+
if (!applicationAccessToken.token)
|
|
103727
103725
|
throw new Error("Failed to create application access token");
|
|
103728
|
-
}
|
|
103729
103726
|
return applicationAccessToken.token;
|
|
103730
103727
|
};
|
|
103731
103728
|
};
|
|
@@ -103738,7 +103735,7 @@ function setClusterServiceDefaults(args) {
|
|
|
103738
103735
|
}
|
|
103739
103736
|
function setNetworkDefaults(args) {
|
|
103740
103737
|
const clusterServiceArgs = setClusterServiceDefaults(args);
|
|
103741
|
-
if (args.consensusAlgorithm === "BESU_QBFT")
|
|
103738
|
+
if (args.consensusAlgorithm === "BESU_QBFT")
|
|
103742
103739
|
return {
|
|
103743
103740
|
...clusterServiceArgs,
|
|
103744
103741
|
chainId: args.chainId ?? 46040,
|
|
@@ -103748,7 +103745,6 @@ function setNetworkDefaults(args) {
|
|
|
103748
103745
|
gasPrice: args.gasPrice ?? 0,
|
|
103749
103746
|
secondsPerBlock: args.secondsPerBlock ?? 2
|
|
103750
103747
|
};
|
|
103751
|
-
}
|
|
103752
103748
|
return clusterServiceArgs;
|
|
103753
103749
|
}
|
|
103754
103750
|
var BlockchainNetworkFragment = graphql(`
|
|
@@ -105163,30 +105159,26 @@ async function getPincodeVerificationChallenges({ userWalletAddress, accessToken
|
|
|
105163
105159
|
}
|
|
105164
105160
|
});
|
|
105165
105161
|
if (!response.ok) {
|
|
105166
|
-
if (response.status === 404)
|
|
105162
|
+
if (response.status === 404)
|
|
105167
105163
|
throw new Error(`No user wallet found with address '${userWalletAddress}' for node '${nodeId}'`);
|
|
105168
|
-
}
|
|
105169
105164
|
throw new Error("Failed to get verification challenge");
|
|
105170
105165
|
}
|
|
105171
105166
|
const verificationChallenges = await response.json();
|
|
105172
105167
|
return verificationChallenges;
|
|
105173
105168
|
}
|
|
105174
105169
|
function getPincodeVerificationChallengeResponse({ verificationChallenge, pincode }) {
|
|
105175
|
-
if (!verificationChallenge?.challenge?.secret || !verificationChallenge?.challenge?.salt)
|
|
105170
|
+
if (!verificationChallenge?.challenge?.secret || !verificationChallenge?.challenge?.salt)
|
|
105176
105171
|
throw new Error("Could not authenticate pin code, invalid challenge format");
|
|
105177
|
-
}
|
|
105178
105172
|
const { secret, salt } = verificationChallenge.challenge;
|
|
105179
105173
|
return generateResponse(pincode, salt, secret);
|
|
105180
105174
|
}
|
|
105181
105175
|
function createSettleMintClient(options) {
|
|
105182
105176
|
ensureServer();
|
|
105183
|
-
if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
|
|
105184
|
-
if (options.anonymous)
|
|
105177
|
+
if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
|
|
105178
|
+
if (options.anonymous)
|
|
105185
105179
|
options.instance = "https://console.settlemint.com";
|
|
105186
|
-
|
|
105180
|
+
else
|
|
105187
105181
|
throw new Error("Standalone and local instances cannot connect to the SettleMint platform");
|
|
105188
|
-
}
|
|
105189
|
-
}
|
|
105190
105182
|
const validatedOptions = options.anonymous ? validate3(exports_external2.object({
|
|
105191
105183
|
...ClientOptionsSchema.shape,
|
|
105192
105184
|
accessToken: exports_external2.literal("")
|
|
@@ -107118,4 +107110,4 @@ await main().catch((error41) => {
|
|
|
107118
107110
|
process.exit(1);
|
|
107119
107111
|
});
|
|
107120
107112
|
|
|
107121
|
-
//# debugId=
|
|
107113
|
+
//# debugId=44AD8BDA863B780F64756E2164756E21
|