@settlemint/sdk-mcp 2.4.0-pr5aacfff3 → 2.4.0-pr5aee34bd

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.
Files changed (3) hide show
  1. package/dist/mcp.js +61 -286
  2. package/dist/mcp.js.map +12 -12
  3. 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 !== 13 && version !== 8) {
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, headers) {
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, headers);
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 && !result.isError) {
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
  }
@@ -62161,8 +62151,7 @@ class McpServer {
62161
62151
  }
62162
62152
  }
62163
62153
  var EMPTY_OBJECT_JSON_SCHEMA = {
62164
- type: "object",
62165
- properties: {}
62154
+ type: "object"
62166
62155
  };
62167
62156
  function isZodRawShape(obj) {
62168
62157
  if (typeof obj !== "object" || obj === null)
@@ -73565,9 +73554,9 @@ ${formattedErrors}`);
73565
73554
  throw error$37;
73566
73555
  }
73567
73556
  }
73568
- var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.+$/);
73569
- var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.+$/);
73570
- var AccessTokenSchema = string$1().regex(/^(sm_pat_.+|sm_aat_.+)$/);
73557
+ var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
73558
+ var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
73559
+ var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
73571
73560
  function tryParseJson(value, defaultValue = null) {
73572
73561
  try {
73573
73562
  const parsed = JSON.parse(value);
@@ -73575,7 +73564,7 @@ function tryParseJson(value, defaultValue = null) {
73575
73564
  return defaultValue;
73576
73565
  }
73577
73566
  return parsed;
73578
- } catch (_err) {
73567
+ } catch (err) {
73579
73568
  return defaultValue;
73580
73569
  }
73581
73570
  }
@@ -90306,9 +90295,9 @@ ${formattedErrors}`);
90306
90295
  throw error$372;
90307
90296
  }
90308
90297
  }
90309
- var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.+$/);
90310
- var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.+$/);
90311
- var AccessTokenSchema2 = string$12().regex(/^(sm_pat_.+|sm_aat_.+)$/);
90298
+ var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
90299
+ var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
90300
+ var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
90312
90301
  function tryParseJson2(value, defaultValue = null) {
90313
90302
  try {
90314
90303
  const parsed = JSON.parse(value);
@@ -90316,7 +90305,7 @@ function tryParseJson2(value, defaultValue = null) {
90316
90305
  return defaultValue;
90317
90306
  }
90318
90307
  return parsed;
90319
- } catch (_err) {
90308
+ } catch (err) {
90320
90309
  return defaultValue;
90321
90310
  }
90322
90311
  }
@@ -90400,7 +90389,7 @@ var {
90400
90389
  var package_default = {
90401
90390
  name: "@settlemint/sdk-mcp",
90402
90391
  description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
90403
- version: "2.4.0-pr5aacfff3",
90392
+ version: "2.4.0-pr5aee34bd",
90404
90393
  type: "module",
90405
90394
  private: false,
90406
90395
  license: "FSL-1.1-MIT",
@@ -90419,9 +90408,7 @@ var package_default = {
90419
90408
  url: "https://github.com/settlemint/sdk/issues",
90420
90409
  email: "support@settlemint.com"
90421
90410
  },
90422
- files: [
90423
- "dist"
90424
- ],
90411
+ files: ["dist"],
90425
90412
  exports: {
90426
90413
  "./*": {
90427
90414
  types: "./dist/*.d.ts",
@@ -90443,9 +90430,9 @@ var package_default = {
90443
90430
  dependencies: {
90444
90431
  "@graphql-tools/load": "8.1.0",
90445
90432
  "@graphql-tools/url-loader": "8.0.31",
90446
- "@modelcontextprotocol/sdk": "1.13.3",
90447
- "@settlemint/sdk-js": "2.4.0-pr5aacfff3",
90448
- "@settlemint/sdk-utils": "2.4.0-pr5aacfff3",
90433
+ "@modelcontextprotocol/sdk": "1.13.0",
90434
+ "@settlemint/sdk-js": "2.4.0-pr5aee34bd",
90435
+ "@settlemint/sdk-utils": "2.4.0-pr5aee34bd",
90449
90436
  "@commander-js/extra-typings": "14.0.0",
90450
90437
  commander: "14.0.0",
90451
90438
  zod: "^3.25.0"
@@ -91276,7 +91263,7 @@ var processFieldTypes = (fields2, schema, collectedTypes) => {
91276
91263
  }
91277
91264
  };
91278
91265
  var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
91279
- const typeName = type.toString().replace(/[[\]!]/g, "");
91266
+ const typeName = type.toString().replace(/[\[\]!]/g, "");
91280
91267
  if (collectedTypes.has(typeName) || ["String", "Int", "Float", "Boolean", "ID"].includes(typeName)) {
91281
91268
  return collectedTypes;
91282
91269
  }
@@ -103907,20 +103894,6 @@ var restartBlockchainNetwork = graphql(`
103907
103894
  }
103908
103895
  }
103909
103896
  `, [BlockchainNetworkFragment]);
103910
- var pauseBlockchainNetwork = graphql(`
103911
- mutation PauseBlockchainNetwork($uniqueName: String!) {
103912
- pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103913
- ...BlockchainNetwork
103914
- }
103915
- }
103916
- `, [BlockchainNetworkFragment]);
103917
- var resumeBlockchainNetwork = graphql(`
103918
- mutation ResumeBlockchainNetwork($uniqueName: String!) {
103919
- resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103920
- ...BlockchainNetwork
103921
- }
103922
- }
103923
- `, [BlockchainNetworkFragment]);
103924
103897
  var blockchainNetworkList = (gqlClient) => {
103925
103898
  return async (applicationUniqueName) => {
103926
103899
  const { blockchainNetworksByUniqueName: { items } } = await gqlClient.request(getBlockchainNetworks, { applicationUniqueName });
@@ -103955,14 +103928,6 @@ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName
103955
103928
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103956
103929
  return blockchainNetwork;
103957
103930
  };
103958
- var blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
103959
- const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103960
- return blockchainNetwork;
103961
- };
103962
- var blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
103963
- const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103964
- return blockchainNetwork;
103965
- };
103966
103931
  var BlockchainNodeFragment = graphql(`
103967
103932
  fragment BlockchainNode on BlockchainNode {
103968
103933
  __typename
@@ -104096,20 +104061,6 @@ var restartBlockchainNode = graphql(`
104096
104061
  }
104097
104062
  }
104098
104063
  `, [BlockchainNodeFragment]);
104099
- var pauseBlockchainNode = graphql(`
104100
- mutation PauseBlockchainNode($uniqueName: String!) {
104101
- pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104102
- ...BlockchainNode
104103
- }
104104
- }
104105
- `, [BlockchainNodeFragment]);
104106
- var resumeBlockchainNode = graphql(`
104107
- mutation ResumeBlockchainNode($uniqueName: String!) {
104108
- resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104109
- ...BlockchainNode
104110
- }
104111
- }
104112
- `, [BlockchainNodeFragment]);
104113
104064
  var blockchainNodeList = (gqlClient) => {
104114
104065
  return async (applicationUniqueName) => {
104115
104066
  const { blockchainNodesByUniqueName: { items } } = await gqlClient.request(getBlockchainNodes, { applicationUniqueName });
@@ -104138,14 +104089,6 @@ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
104138
104089
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104139
104090
  return blockchainNode;
104140
104091
  };
104141
- var blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
104142
- const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104143
- return blockchainNode;
104144
- };
104145
- var blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
104146
- const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104147
- return blockchainNode;
104148
- };
104149
104092
  var CustomDeploymentFragment = graphql(`
104150
104093
  fragment CustomDeployment on CustomDeployment {
104151
104094
  id
@@ -104228,20 +104171,6 @@ var restartCustomDeployment = graphql(`
104228
104171
  }
104229
104172
  }
104230
104173
  `, [CustomDeploymentFragment]);
104231
- var pauseCustomDeployment = graphql(`
104232
- mutation PauseCustomDeployment($uniqueName: String!) {
104233
- pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104234
- ...CustomDeployment
104235
- }
104236
- }
104237
- `, [CustomDeploymentFragment]);
104238
- var resumeCustomDeployment = graphql(`
104239
- mutation ResumeCustomDeployment($uniqueName: String!) {
104240
- resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104241
- ...CustomDeployment
104242
- }
104243
- }
104244
- `, [CustomDeploymentFragment]);
104245
104174
  var customdeploymentList = (gqlClient) => {
104246
104175
  return async (applicationUniqueName) => {
104247
104176
  const { customDeploymentsByUniqueName: { items } } = await gqlClient.request(getCustomDeployments, { applicationUniqueName });
@@ -104278,14 +104207,6 @@ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName)
104278
104207
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
104279
104208
  return customDeployment;
104280
104209
  };
104281
- var customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
104282
- const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
104283
- return customDeployment;
104284
- };
104285
- var customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
104286
- const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
104287
- return customDeployment;
104288
- };
104289
104210
  var getFoundryEnvConfig = graphql(`
104290
104211
  query GetFoundryEnvConfig($blockchainNodeUniqueName: String!) {
104291
104212
  foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
@@ -104362,20 +104283,6 @@ var restartLoadBalancer = graphql(`
104362
104283
  }
104363
104284
  }
104364
104285
  `, [LoadBalancerFragment]);
104365
- var pauseLoadBalancer = graphql(`
104366
- mutation PauseLoadBalancer($uniqueName: String!) {
104367
- pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104368
- ...LoadBalancer
104369
- }
104370
- }
104371
- `, [LoadBalancerFragment]);
104372
- var resumeLoadBalancer = graphql(`
104373
- mutation ResumeLoadBalancer($uniqueName: String!) {
104374
- resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104375
- ...LoadBalancer
104376
- }
104377
- }
104378
- `, [LoadBalancerFragment]);
104379
104286
  var loadBalancerRead = (gqlClient) => {
104380
104287
  return async (loadBalancerUniqueName) => {
104381
104288
  const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, { uniqueName: loadBalancerUniqueName });
@@ -104409,14 +104316,6 @@ var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
104409
104316
  const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
104410
104317
  return loadBalancer;
104411
104318
  };
104412
- var loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
104413
- const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
104414
- return loadBalancer;
104415
- };
104416
- var loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
104417
- const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
104418
- return loadBalancer;
104419
- };
104420
104319
  var InsightsFragment = graphql(`
104421
104320
  fragment Insights on Insights {
104422
104321
  __typename
@@ -104490,20 +104389,6 @@ var restartInsights = graphql(`
104490
104389
  }
104491
104390
  }
104492
104391
  `, [InsightsFragment]);
104493
- var pauseInsights = graphql(`
104494
- mutation PauseInsights($uniqueName: String!) {
104495
- pauseInsightsByUniqueName(uniqueName: $uniqueName) {
104496
- ...Insights
104497
- }
104498
- }
104499
- `, [InsightsFragment]);
104500
- var resumeInsights = graphql(`
104501
- mutation ResumeInsights($uniqueName: String!) {
104502
- resumeInsightsByUniqueName(uniqueName: $uniqueName) {
104503
- ...Insights
104504
- }
104505
- }
104506
- `, [InsightsFragment]);
104507
104392
  var insightsList = (gqlClient) => {
104508
104393
  return async (applicationUniqueName) => {
104509
104394
  const { insightsListByUniqueName: { items } } = await gqlClient.request(getInsights, { applicationUniqueName });
@@ -104537,14 +104422,6 @@ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
104537
104422
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
104538
104423
  return insights;
104539
104424
  };
104540
- var insightsPause = (gqlClient) => async (insightsUniqueName) => {
104541
- const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
104542
- return insights;
104543
- };
104544
- var insightsResume = (gqlClient) => async (insightsUniqueName) => {
104545
- const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
104546
- return insights;
104547
- };
104548
104425
  var IntegrationFragment = graphql(`
104549
104426
  fragment Integration on Integration {
104550
104427
  __typename
@@ -104614,20 +104491,6 @@ var restartIntegrationTool = graphql(`
104614
104491
  }
104615
104492
  }
104616
104493
  `, [IntegrationFragment]);
104617
- var pauseIntegrationTool = graphql(`
104618
- mutation PauseIntegrationTool($uniqueName: String!) {
104619
- pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
104620
- ...Integration
104621
- }
104622
- }
104623
- `, [IntegrationFragment]);
104624
- var resumeIntegrationTool = graphql(`
104625
- mutation ResumeIntegrationTool($uniqueName: String!) {
104626
- resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
104627
- ...Integration
104628
- }
104629
- }
104630
- `, [IntegrationFragment]);
104631
104494
  var integrationToolList = (gqlClient) => {
104632
104495
  return async (applicationUniqueName) => {
104633
104496
  const { integrationsByUniqueName: { items } } = await gqlClient.request(getIntegrations, { applicationUniqueName });
@@ -104655,14 +104518,6 @@ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
104655
104518
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
104656
104519
  return integration;
104657
104520
  };
104658
- var integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
104659
- const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
104660
- return integration;
104661
- };
104662
- var integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
104663
- const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
104664
- return integration;
104665
- };
104666
104521
  var StorageFragment = graphql(`
104667
104522
  fragment Storage on Storage {
104668
104523
  __typename
@@ -104732,20 +104587,6 @@ var restartStorage = graphql(`
104732
104587
  }
104733
104588
  }
104734
104589
  `, [StorageFragment]);
104735
- var pauseStorage = graphql(`
104736
- mutation PauseStorage($uniqueName: String!) {
104737
- pauseStorageByUniqueName(uniqueName: $uniqueName) {
104738
- ...Storage
104739
- }
104740
- }
104741
- `, [StorageFragment]);
104742
- var resumeStorage = graphql(`
104743
- mutation ResumeStorage($uniqueName: String!) {
104744
- resumeStorageByUniqueName(uniqueName: $uniqueName) {
104745
- ...Storage
104746
- }
104747
- }
104748
- `, [StorageFragment]);
104749
104590
  var storageList = (gqlClient) => {
104750
104591
  return async (applicationUniqueName) => {
104751
104592
  const { storagesByUniqueName: { items } } = await gqlClient.request(getStorages, { applicationUniqueName });
@@ -104773,14 +104614,6 @@ var storageRestart = (gqlClient) => async (storageUniqueName) => {
104773
104614
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
104774
104615
  return storage;
104775
104616
  };
104776
- var storagePause = (gqlClient) => async (storageUniqueName) => {
104777
- const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
104778
- return storage;
104779
- };
104780
- var storageResume = (gqlClient) => async (storageUniqueName) => {
104781
- const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
104782
- return storage;
104783
- };
104784
104617
  var MiddlewareFragment = graphql(`
104785
104618
  fragment Middleware on Middleware {
104786
104619
  __typename
@@ -104881,20 +104714,6 @@ var restartMiddleware = graphql(`
104881
104714
  }
104882
104715
  }
104883
104716
  `, [MiddlewareFragment]);
104884
- var pauseMiddleware = graphql(`
104885
- mutation PauseMiddleware($uniqueName: String!) {
104886
- pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
104887
- ...Middleware
104888
- }
104889
- }
104890
- `, [MiddlewareFragment]);
104891
- var resumeMiddleware = graphql(`
104892
- mutation ResumeMiddleware($uniqueName: String!) {
104893
- resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
104894
- ...Middleware
104895
- }
104896
- }
104897
- `, [MiddlewareFragment]);
104898
104717
  var middlewareList = (gqlClient) => {
104899
104718
  return async (applicationUniqueName) => {
104900
104719
  const { middlewaresByUniqueName: { items } } = await gqlClient.request(getMiddlewares, { applicationUniqueName });
@@ -104939,14 +104758,6 @@ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
104939
104758
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
104940
104759
  return middleware;
104941
104760
  };
104942
- var middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
104943
- const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
104944
- return middleware;
104945
- };
104946
- var middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
104947
- const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
104948
- return middleware;
104949
- };
104950
104761
  var getPlatformConfigQuery = graphql(`
104951
104762
  query platformConfig {
104952
104763
  config {
@@ -105079,20 +104890,6 @@ var restartPrivateKey = graphql(`
105079
104890
  }
105080
104891
  }
105081
104892
  `, [PrivateKeyFragment]);
105082
- var pausePrivateKey = graphql(`
105083
- mutation PausePrivateKey($uniqueName: String!) {
105084
- pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105085
- ...PrivateKey
105086
- }
105087
- }
105088
- `, [PrivateKeyFragment]);
105089
- var resumePrivateKey = graphql(`
105090
- mutation ResumePrivateKey($uniqueName: String!) {
105091
- resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105092
- ...PrivateKey
105093
- }
105094
- }
105095
- `, [PrivateKeyFragment]);
105096
104893
  var privateKeyList = (gqlClient) => {
105097
104894
  return async (applicationUniqueName) => {
105098
104895
  const { privateKeysByUniqueName: { items } } = await gqlClient.request(getPrivateKeys, { applicationUniqueName });
@@ -105131,14 +104928,6 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
105131
104928
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
105132
104929
  return privateKey;
105133
104930
  };
105134
- var privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
105135
- const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
105136
- return privateKey;
105137
- };
105138
- var privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
105139
- const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
105140
- return privateKey;
105141
- };
105142
104931
  var ClientOptionsSchema = exports_external2.object({
105143
104932
  accessToken: AccessTokenSchema2,
105144
104933
  instance: UrlSchema2
@@ -105218,75 +105007,57 @@ function createSettleMintClient(options) {
105218
105007
  read: blockchainNetworkRead(gqlClient),
105219
105008
  create: blockchainNetworkCreate(gqlClient),
105220
105009
  delete: blockchainNetworkDelete(gqlClient),
105221
- restart: blockchainNetworkRestart(gqlClient),
105222
- pause: blockchainNetworkPause(gqlClient),
105223
- resume: blockchainNetworkResume(gqlClient)
105010
+ restart: blockchainNetworkRestart(gqlClient)
105224
105011
  },
105225
105012
  blockchainNode: {
105226
105013
  list: blockchainNodeList(gqlClient),
105227
105014
  read: blockchainNodeRead(gqlClient),
105228
105015
  create: blockchainNodeCreate(gqlClient),
105229
- restart: blockchainNodeRestart(gqlClient),
105230
- pause: blockchainNodePause(gqlClient),
105231
- resume: blockchainNodeResume(gqlClient)
105016
+ restart: blockchainNodeRestart(gqlClient)
105232
105017
  },
105233
105018
  loadBalancer: {
105234
105019
  list: loadBalancerList(gqlClient),
105235
105020
  read: loadBalancerRead(gqlClient),
105236
105021
  create: loadBalancerCreate(gqlClient),
105237
- restart: loadBalancerRestart(gqlClient),
105238
- pause: loadBalancerPause(gqlClient),
105239
- resume: loadBalancerResume(gqlClient)
105022
+ restart: loadBalancerRestart(gqlClient)
105240
105023
  },
105241
105024
  middleware: {
105242
105025
  list: middlewareList(gqlClient),
105243
105026
  read: middlewareRead(gqlClient),
105244
105027
  graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
105245
105028
  create: middlewareCreate(gqlClient),
105246
- restart: middlewareRestart(gqlClient),
105247
- pause: middlewarePause(gqlClient),
105248
- resume: middlewareResume(gqlClient)
105029
+ restart: middlewareRestart(gqlClient)
105249
105030
  },
105250
105031
  integrationTool: {
105251
105032
  list: integrationToolList(gqlClient),
105252
105033
  read: integrationToolRead(gqlClient),
105253
105034
  create: integrationToolCreate(gqlClient),
105254
- restart: integrationToolRestart(gqlClient),
105255
- pause: integrationToolPause(gqlClient),
105256
- resume: integrationToolResume(gqlClient)
105035
+ restart: integrationToolRestart(gqlClient)
105257
105036
  },
105258
105037
  storage: {
105259
105038
  list: storageList(gqlClient),
105260
105039
  read: storageRead(gqlClient),
105261
105040
  create: storageCreate(gqlClient),
105262
- restart: storageRestart(gqlClient),
105263
- pause: storagePause(gqlClient),
105264
- resume: storageResume(gqlClient)
105041
+ restart: storageRestart(gqlClient)
105265
105042
  },
105266
105043
  privateKey: {
105267
105044
  list: privateKeyList(gqlClient),
105268
105045
  read: privatekeyRead(gqlClient),
105269
105046
  create: privateKeyCreate(gqlClient),
105270
- restart: privateKeyRestart(gqlClient),
105271
- pause: privateKeyPause(gqlClient),
105272
- resume: privateKeyResume(gqlClient)
105047
+ restart: privateKeyRestart(gqlClient)
105273
105048
  },
105274
105049
  insights: {
105275
105050
  list: insightsList(gqlClient),
105276
105051
  read: insightsRead(gqlClient),
105277
105052
  create: insightsCreate(gqlClient),
105278
- restart: insightsRestart(gqlClient),
105279
- pause: insightsPause(gqlClient),
105280
- resume: insightsResume(gqlClient)
105053
+ restart: insightsRestart(gqlClient)
105281
105054
  },
105282
105055
  customDeployment: {
105283
105056
  list: customdeploymentList(gqlClient),
105284
105057
  read: customdeploymentRead(gqlClient),
105285
105058
  create: customdeploymentCreate(gqlClient),
105286
105059
  update: customdeploymentUpdate(gqlClient),
105287
- restart: customDeploymentRestart(gqlClient),
105288
- pause: customDeploymentPause(gqlClient),
105289
- resume: customDeploymentResume(gqlClient)
105060
+ restart: customDeploymentRestart(gqlClient)
105290
105061
  },
105291
105062
  foundry: { env: getEnv(gqlClient) },
105292
105063
  applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
@@ -106818,6 +106589,21 @@ var promptsGet = (server, _env) => {
106818
106589
  try {
106819
106590
  const promptsDir = path2.resolve(__dirname, "../../prompts");
106820
106591
  const promptPath = path2.join(promptsDir, category, `${name2}.ts`);
106592
+ try {
106593
+ await fs.access(promptPath);
106594
+ } catch (error41) {
106595
+ return {
106596
+ content: [
106597
+ {
106598
+ type: "text",
106599
+ name: "Prompt Not Found",
106600
+ description: `Prompt '${name2}' in category '${category}' not found`,
106601
+ mimeType: "text/plain",
106602
+ text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
106603
+ }
106604
+ ]
106605
+ };
106606
+ }
106821
106607
  const fileContent = await fs.readFile(promptPath, "utf-8");
106822
106608
  return {
106823
106609
  content: [
@@ -106831,19 +106617,6 @@ var promptsGet = (server, _env) => {
106831
106617
  ]
106832
106618
  };
106833
106619
  } catch (error41) {
106834
- if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
106835
- return {
106836
- content: [
106837
- {
106838
- type: "text",
106839
- name: "Prompt Not Found",
106840
- description: `Prompt '${name2}' in category '${category}' not found`,
106841
- mimeType: "text/plain",
106842
- text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
106843
- }
106844
- ]
106845
- };
106846
- }
106847
106620
  return {
106848
106621
  content: [
106849
106622
  {
@@ -106934,6 +106707,21 @@ var resourcesGet = (server, _env) => {
106934
106707
  try {
106935
106708
  const resourcesDir = path4.resolve(__dirname, "../../resources");
106936
106709
  const resourcePath = path4.join(resourcesDir, `${name2}.ts`);
106710
+ try {
106711
+ await fs3.access(resourcePath);
106712
+ } catch (error41) {
106713
+ return {
106714
+ content: [
106715
+ {
106716
+ type: "text",
106717
+ name: "Resource Not Found",
106718
+ description: `Resource '${name2}' not found`,
106719
+ mimeType: "text/plain",
106720
+ text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
106721
+ }
106722
+ ]
106723
+ };
106724
+ }
106937
106725
  const fileContent = await fs3.readFile(resourcePath, "utf-8");
106938
106726
  return {
106939
106727
  content: [
@@ -106947,19 +106735,6 @@ var resourcesGet = (server, _env) => {
106947
106735
  ]
106948
106736
  };
106949
106737
  } catch (error41) {
106950
- if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
106951
- return {
106952
- content: [
106953
- {
106954
- type: "text",
106955
- name: "Resource Not Found",
106956
- description: `Resource '${name2}' not found`,
106957
- mimeType: "text/plain",
106958
- text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
106959
- }
106960
- ]
106961
- };
106962
- }
106963
106738
  return {
106964
106739
  content: [
106965
106740
  {
@@ -107110,4 +106885,4 @@ await main().catch((error41) => {
107110
106885
  process.exit(1);
107111
106886
  });
107112
106887
 
107113
- //# debugId=E358AF818758FC4C64756E2164756E21
106888
+ //# debugId=7343F966EE855E3E64756E2164756E21