@settlemint/sdk-mcp 2.4.0-pr5f5458f6 → 2.4.0-pr60c1cb59

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