@settlemint/sdk-mcp 2.4.0-pr20cda3e8 → 2.4.0-pr25992cac

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 +60 -284
  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
  }
@@ -73564,9 +73554,9 @@ ${formattedErrors}`);
73564
73554
  throw error$37;
73565
73555
  }
73566
73556
  }
73567
- var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.+$/);
73568
- var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.+$/);
73569
- 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_.*$/);
73570
73560
  function tryParseJson(value, defaultValue = null) {
73571
73561
  try {
73572
73562
  const parsed = JSON.parse(value);
@@ -73574,7 +73564,7 @@ function tryParseJson(value, defaultValue = null) {
73574
73564
  return defaultValue;
73575
73565
  }
73576
73566
  return parsed;
73577
- } catch (_err) {
73567
+ } catch (err) {
73578
73568
  return defaultValue;
73579
73569
  }
73580
73570
  }
@@ -90305,9 +90295,9 @@ ${formattedErrors}`);
90305
90295
  throw error$372;
90306
90296
  }
90307
90297
  }
90308
- var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.+$/);
90309
- var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.+$/);
90310
- 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_.*$/);
90311
90301
  function tryParseJson2(value, defaultValue = null) {
90312
90302
  try {
90313
90303
  const parsed = JSON.parse(value);
@@ -90315,7 +90305,7 @@ function tryParseJson2(value, defaultValue = null) {
90315
90305
  return defaultValue;
90316
90306
  }
90317
90307
  return parsed;
90318
- } catch (_err) {
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-pr20cda3e8",
90392
+ version: "2.4.0-pr25992cac",
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.2",
90446
- "@settlemint/sdk-js": "2.4.0-pr20cda3e8",
90447
- "@settlemint/sdk-utils": "2.4.0-pr20cda3e8",
90433
+ "@modelcontextprotocol/sdk": "1.13.0",
90434
+ "@settlemint/sdk-js": "2.4.0-pr25992cac",
90435
+ "@settlemint/sdk-utils": "2.4.0-pr25992cac",
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
  }
@@ -103906,20 +103894,6 @@ var restartBlockchainNetwork = graphql(`
103906
103894
  }
103907
103895
  }
103908
103896
  `, [BlockchainNetworkFragment]);
103909
- var pauseBlockchainNetwork = graphql(`
103910
- mutation PauseBlockchainNetwork($uniqueName: String!) {
103911
- pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103912
- ...BlockchainNetwork
103913
- }
103914
- }
103915
- `, [BlockchainNetworkFragment]);
103916
- var resumeBlockchainNetwork = graphql(`
103917
- mutation ResumeBlockchainNetwork($uniqueName: String!) {
103918
- resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
103919
- ...BlockchainNetwork
103920
- }
103921
- }
103922
- `, [BlockchainNetworkFragment]);
103923
103897
  var blockchainNetworkList = (gqlClient) => {
103924
103898
  return async (applicationUniqueName) => {
103925
103899
  const { blockchainNetworksByUniqueName: { items } } = await gqlClient.request(getBlockchainNetworks, { applicationUniqueName });
@@ -103954,14 +103928,6 @@ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName
103954
103928
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103955
103929
  return blockchainNetwork;
103956
103930
  };
103957
- var blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
103958
- const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103959
- return blockchainNetwork;
103960
- };
103961
- var blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
103962
- const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
103963
- return blockchainNetwork;
103964
- };
103965
103931
  var BlockchainNodeFragment = graphql(`
103966
103932
  fragment BlockchainNode on BlockchainNode {
103967
103933
  __typename
@@ -104095,20 +104061,6 @@ var restartBlockchainNode = graphql(`
104095
104061
  }
104096
104062
  }
104097
104063
  `, [BlockchainNodeFragment]);
104098
- var pauseBlockchainNode = graphql(`
104099
- mutation PauseBlockchainNode($uniqueName: String!) {
104100
- pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104101
- ...BlockchainNode
104102
- }
104103
- }
104104
- `, [BlockchainNodeFragment]);
104105
- var resumeBlockchainNode = graphql(`
104106
- mutation ResumeBlockchainNode($uniqueName: String!) {
104107
- resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
104108
- ...BlockchainNode
104109
- }
104110
- }
104111
- `, [BlockchainNodeFragment]);
104112
104064
  var blockchainNodeList = (gqlClient) => {
104113
104065
  return async (applicationUniqueName) => {
104114
104066
  const { blockchainNodesByUniqueName: { items } } = await gqlClient.request(getBlockchainNodes, { applicationUniqueName });
@@ -104137,14 +104089,6 @@ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
104137
104089
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104138
104090
  return blockchainNode;
104139
104091
  };
104140
- var blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
104141
- const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104142
- return blockchainNode;
104143
- };
104144
- var blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
104145
- const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
104146
- return blockchainNode;
104147
- };
104148
104092
  var CustomDeploymentFragment = graphql(`
104149
104093
  fragment CustomDeployment on CustomDeployment {
104150
104094
  id
@@ -104227,20 +104171,6 @@ var restartCustomDeployment = graphql(`
104227
104171
  }
104228
104172
  }
104229
104173
  `, [CustomDeploymentFragment]);
104230
- var pauseCustomDeployment = graphql(`
104231
- mutation PauseCustomDeployment($uniqueName: String!) {
104232
- pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104233
- ...CustomDeployment
104234
- }
104235
- }
104236
- `, [CustomDeploymentFragment]);
104237
- var resumeCustomDeployment = graphql(`
104238
- mutation ResumeCustomDeployment($uniqueName: String!) {
104239
- resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
104240
- ...CustomDeployment
104241
- }
104242
- }
104243
- `, [CustomDeploymentFragment]);
104244
104174
  var customdeploymentList = (gqlClient) => {
104245
104175
  return async (applicationUniqueName) => {
104246
104176
  const { customDeploymentsByUniqueName: { items } } = await gqlClient.request(getCustomDeployments, { applicationUniqueName });
@@ -104277,14 +104207,6 @@ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName)
104277
104207
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
104278
104208
  return customDeployment;
104279
104209
  };
104280
- var customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
104281
- const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
104282
- return customDeployment;
104283
- };
104284
- var customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
104285
- const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
104286
- return customDeployment;
104287
- };
104288
104210
  var getFoundryEnvConfig = graphql(`
104289
104211
  query GetFoundryEnvConfig($blockchainNodeUniqueName: String!) {
104290
104212
  foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
@@ -104361,20 +104283,6 @@ var restartLoadBalancer = graphql(`
104361
104283
  }
104362
104284
  }
104363
104285
  `, [LoadBalancerFragment]);
104364
- var pauseLoadBalancer = graphql(`
104365
- mutation PauseLoadBalancer($uniqueName: String!) {
104366
- pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104367
- ...LoadBalancer
104368
- }
104369
- }
104370
- `, [LoadBalancerFragment]);
104371
- var resumeLoadBalancer = graphql(`
104372
- mutation ResumeLoadBalancer($uniqueName: String!) {
104373
- resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
104374
- ...LoadBalancer
104375
- }
104376
- }
104377
- `, [LoadBalancerFragment]);
104378
104286
  var loadBalancerRead = (gqlClient) => {
104379
104287
  return async (loadBalancerUniqueName) => {
104380
104288
  const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, { uniqueName: loadBalancerUniqueName });
@@ -104408,14 +104316,6 @@ var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
104408
104316
  const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
104409
104317
  return loadBalancer;
104410
104318
  };
104411
- var loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
104412
- const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
104413
- return loadBalancer;
104414
- };
104415
- var loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
104416
- const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
104417
- return loadBalancer;
104418
- };
104419
104319
  var InsightsFragment = graphql(`
104420
104320
  fragment Insights on Insights {
104421
104321
  __typename
@@ -104489,20 +104389,6 @@ var restartInsights = graphql(`
104489
104389
  }
104490
104390
  }
104491
104391
  `, [InsightsFragment]);
104492
- var pauseInsights = graphql(`
104493
- mutation PauseInsights($uniqueName: String!) {
104494
- pauseInsightsByUniqueName(uniqueName: $uniqueName) {
104495
- ...Insights
104496
- }
104497
- }
104498
- `, [InsightsFragment]);
104499
- var resumeInsights = graphql(`
104500
- mutation ResumeInsights($uniqueName: String!) {
104501
- resumeInsightsByUniqueName(uniqueName: $uniqueName) {
104502
- ...Insights
104503
- }
104504
- }
104505
- `, [InsightsFragment]);
104506
104392
  var insightsList = (gqlClient) => {
104507
104393
  return async (applicationUniqueName) => {
104508
104394
  const { insightsListByUniqueName: { items } } = await gqlClient.request(getInsights, { applicationUniqueName });
@@ -104536,14 +104422,6 @@ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
104536
104422
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
104537
104423
  return insights;
104538
104424
  };
104539
- var insightsPause = (gqlClient) => async (insightsUniqueName) => {
104540
- const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
104541
- return insights;
104542
- };
104543
- var insightsResume = (gqlClient) => async (insightsUniqueName) => {
104544
- const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
104545
- return insights;
104546
- };
104547
104425
  var IntegrationFragment = graphql(`
104548
104426
  fragment Integration on Integration {
104549
104427
  __typename
@@ -104613,20 +104491,6 @@ var restartIntegrationTool = graphql(`
104613
104491
  }
104614
104492
  }
104615
104493
  `, [IntegrationFragment]);
104616
- var pauseIntegrationTool = graphql(`
104617
- mutation PauseIntegrationTool($uniqueName: String!) {
104618
- pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
104619
- ...Integration
104620
- }
104621
- }
104622
- `, [IntegrationFragment]);
104623
- var resumeIntegrationTool = graphql(`
104624
- mutation ResumeIntegrationTool($uniqueName: String!) {
104625
- resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
104626
- ...Integration
104627
- }
104628
- }
104629
- `, [IntegrationFragment]);
104630
104494
  var integrationToolList = (gqlClient) => {
104631
104495
  return async (applicationUniqueName) => {
104632
104496
  const { integrationsByUniqueName: { items } } = await gqlClient.request(getIntegrations, { applicationUniqueName });
@@ -104654,14 +104518,6 @@ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
104654
104518
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
104655
104519
  return integration;
104656
104520
  };
104657
- var integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
104658
- const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
104659
- return integration;
104660
- };
104661
- var integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
104662
- const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
104663
- return integration;
104664
- };
104665
104521
  var StorageFragment = graphql(`
104666
104522
  fragment Storage on Storage {
104667
104523
  __typename
@@ -104731,20 +104587,6 @@ var restartStorage = graphql(`
104731
104587
  }
104732
104588
  }
104733
104589
  `, [StorageFragment]);
104734
- var pauseStorage = graphql(`
104735
- mutation PauseStorage($uniqueName: String!) {
104736
- pauseStorageByUniqueName(uniqueName: $uniqueName) {
104737
- ...Storage
104738
- }
104739
- }
104740
- `, [StorageFragment]);
104741
- var resumeStorage = graphql(`
104742
- mutation ResumeStorage($uniqueName: String!) {
104743
- resumeStorageByUniqueName(uniqueName: $uniqueName) {
104744
- ...Storage
104745
- }
104746
- }
104747
- `, [StorageFragment]);
104748
104590
  var storageList = (gqlClient) => {
104749
104591
  return async (applicationUniqueName) => {
104750
104592
  const { storagesByUniqueName: { items } } = await gqlClient.request(getStorages, { applicationUniqueName });
@@ -104772,14 +104614,6 @@ var storageRestart = (gqlClient) => async (storageUniqueName) => {
104772
104614
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
104773
104615
  return storage;
104774
104616
  };
104775
- var storagePause = (gqlClient) => async (storageUniqueName) => {
104776
- const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
104777
- return storage;
104778
- };
104779
- var storageResume = (gqlClient) => async (storageUniqueName) => {
104780
- const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
104781
- return storage;
104782
- };
104783
104617
  var MiddlewareFragment = graphql(`
104784
104618
  fragment Middleware on Middleware {
104785
104619
  __typename
@@ -104880,20 +104714,6 @@ var restartMiddleware = graphql(`
104880
104714
  }
104881
104715
  }
104882
104716
  `, [MiddlewareFragment]);
104883
- var pauseMiddleware = graphql(`
104884
- mutation PauseMiddleware($uniqueName: String!) {
104885
- pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
104886
- ...Middleware
104887
- }
104888
- }
104889
- `, [MiddlewareFragment]);
104890
- var resumeMiddleware = graphql(`
104891
- mutation ResumeMiddleware($uniqueName: String!) {
104892
- resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
104893
- ...Middleware
104894
- }
104895
- }
104896
- `, [MiddlewareFragment]);
104897
104717
  var middlewareList = (gqlClient) => {
104898
104718
  return async (applicationUniqueName) => {
104899
104719
  const { middlewaresByUniqueName: { items } } = await gqlClient.request(getMiddlewares, { applicationUniqueName });
@@ -104938,14 +104758,6 @@ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
104938
104758
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
104939
104759
  return middleware;
104940
104760
  };
104941
- var middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
104942
- const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
104943
- return middleware;
104944
- };
104945
- var middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
104946
- const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
104947
- return middleware;
104948
- };
104949
104761
  var getPlatformConfigQuery = graphql(`
104950
104762
  query platformConfig {
104951
104763
  config {
@@ -105078,20 +104890,6 @@ var restartPrivateKey = graphql(`
105078
104890
  }
105079
104891
  }
105080
104892
  `, [PrivateKeyFragment]);
105081
- var pausePrivateKey = graphql(`
105082
- mutation PausePrivateKey($uniqueName: String!) {
105083
- pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105084
- ...PrivateKey
105085
- }
105086
- }
105087
- `, [PrivateKeyFragment]);
105088
- var resumePrivateKey = graphql(`
105089
- mutation ResumePrivateKey($uniqueName: String!) {
105090
- resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
105091
- ...PrivateKey
105092
- }
105093
- }
105094
- `, [PrivateKeyFragment]);
105095
104893
  var privateKeyList = (gqlClient) => {
105096
104894
  return async (applicationUniqueName) => {
105097
104895
  const { privateKeysByUniqueName: { items } } = await gqlClient.request(getPrivateKeys, { applicationUniqueName });
@@ -105130,14 +104928,6 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
105130
104928
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
105131
104929
  return privateKey;
105132
104930
  };
105133
- var privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
105134
- const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
105135
- return privateKey;
105136
- };
105137
- var privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
105138
- const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
105139
- return privateKey;
105140
- };
105141
104931
  var ClientOptionsSchema = exports_external2.object({
105142
104932
  accessToken: AccessTokenSchema2,
105143
104933
  instance: UrlSchema2
@@ -105217,75 +105007,57 @@ function createSettleMintClient(options) {
105217
105007
  read: blockchainNetworkRead(gqlClient),
105218
105008
  create: blockchainNetworkCreate(gqlClient),
105219
105009
  delete: blockchainNetworkDelete(gqlClient),
105220
- restart: blockchainNetworkRestart(gqlClient),
105221
- pause: blockchainNetworkPause(gqlClient),
105222
- resume: blockchainNetworkResume(gqlClient)
105010
+ restart: blockchainNetworkRestart(gqlClient)
105223
105011
  },
105224
105012
  blockchainNode: {
105225
105013
  list: blockchainNodeList(gqlClient),
105226
105014
  read: blockchainNodeRead(gqlClient),
105227
105015
  create: blockchainNodeCreate(gqlClient),
105228
- restart: blockchainNodeRestart(gqlClient),
105229
- pause: blockchainNodePause(gqlClient),
105230
- resume: blockchainNodeResume(gqlClient)
105016
+ restart: blockchainNodeRestart(gqlClient)
105231
105017
  },
105232
105018
  loadBalancer: {
105233
105019
  list: loadBalancerList(gqlClient),
105234
105020
  read: loadBalancerRead(gqlClient),
105235
105021
  create: loadBalancerCreate(gqlClient),
105236
- restart: loadBalancerRestart(gqlClient),
105237
- pause: loadBalancerPause(gqlClient),
105238
- resume: loadBalancerResume(gqlClient)
105022
+ restart: loadBalancerRestart(gqlClient)
105239
105023
  },
105240
105024
  middleware: {
105241
105025
  list: middlewareList(gqlClient),
105242
105026
  read: middlewareRead(gqlClient),
105243
105027
  graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
105244
105028
  create: middlewareCreate(gqlClient),
105245
- restart: middlewareRestart(gqlClient),
105246
- pause: middlewarePause(gqlClient),
105247
- resume: middlewareResume(gqlClient)
105029
+ restart: middlewareRestart(gqlClient)
105248
105030
  },
105249
105031
  integrationTool: {
105250
105032
  list: integrationToolList(gqlClient),
105251
105033
  read: integrationToolRead(gqlClient),
105252
105034
  create: integrationToolCreate(gqlClient),
105253
- restart: integrationToolRestart(gqlClient),
105254
- pause: integrationToolPause(gqlClient),
105255
- resume: integrationToolResume(gqlClient)
105035
+ restart: integrationToolRestart(gqlClient)
105256
105036
  },
105257
105037
  storage: {
105258
105038
  list: storageList(gqlClient),
105259
105039
  read: storageRead(gqlClient),
105260
105040
  create: storageCreate(gqlClient),
105261
- restart: storageRestart(gqlClient),
105262
- pause: storagePause(gqlClient),
105263
- resume: storageResume(gqlClient)
105041
+ restart: storageRestart(gqlClient)
105264
105042
  },
105265
105043
  privateKey: {
105266
105044
  list: privateKeyList(gqlClient),
105267
105045
  read: privatekeyRead(gqlClient),
105268
105046
  create: privateKeyCreate(gqlClient),
105269
- restart: privateKeyRestart(gqlClient),
105270
- pause: privateKeyPause(gqlClient),
105271
- resume: privateKeyResume(gqlClient)
105047
+ restart: privateKeyRestart(gqlClient)
105272
105048
  },
105273
105049
  insights: {
105274
105050
  list: insightsList(gqlClient),
105275
105051
  read: insightsRead(gqlClient),
105276
105052
  create: insightsCreate(gqlClient),
105277
- restart: insightsRestart(gqlClient),
105278
- pause: insightsPause(gqlClient),
105279
- resume: insightsResume(gqlClient)
105053
+ restart: insightsRestart(gqlClient)
105280
105054
  },
105281
105055
  customDeployment: {
105282
105056
  list: customdeploymentList(gqlClient),
105283
105057
  read: customdeploymentRead(gqlClient),
105284
105058
  create: customdeploymentCreate(gqlClient),
105285
105059
  update: customdeploymentUpdate(gqlClient),
105286
- restart: customDeploymentRestart(gqlClient),
105287
- pause: customDeploymentPause(gqlClient),
105288
- resume: customDeploymentResume(gqlClient)
105060
+ restart: customDeploymentRestart(gqlClient)
105289
105061
  },
105290
105062
  foundry: { env: getEnv(gqlClient) },
105291
105063
  applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
@@ -106817,6 +106589,21 @@ var promptsGet = (server, _env) => {
106817
106589
  try {
106818
106590
  const promptsDir = path2.resolve(__dirname, "../../prompts");
106819
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
+ }
106820
106607
  const fileContent = await fs.readFile(promptPath, "utf-8");
106821
106608
  return {
106822
106609
  content: [
@@ -106830,19 +106617,6 @@ var promptsGet = (server, _env) => {
106830
106617
  ]
106831
106618
  };
106832
106619
  } catch (error41) {
106833
- if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
106834
- return {
106835
- content: [
106836
- {
106837
- type: "text",
106838
- name: "Prompt Not Found",
106839
- description: `Prompt '${name2}' in category '${category}' not found`,
106840
- mimeType: "text/plain",
106841
- text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
106842
- }
106843
- ]
106844
- };
106845
- }
106846
106620
  return {
106847
106621
  content: [
106848
106622
  {
@@ -106933,6 +106707,21 @@ var resourcesGet = (server, _env) => {
106933
106707
  try {
106934
106708
  const resourcesDir = path4.resolve(__dirname, "../../resources");
106935
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
+ }
106936
106725
  const fileContent = await fs3.readFile(resourcePath, "utf-8");
106937
106726
  return {
106938
106727
  content: [
@@ -106946,19 +106735,6 @@ var resourcesGet = (server, _env) => {
106946
106735
  ]
106947
106736
  };
106948
106737
  } catch (error41) {
106949
- if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
106950
- return {
106951
- content: [
106952
- {
106953
- type: "text",
106954
- name: "Resource Not Found",
106955
- description: `Resource '${name2}' not found`,
106956
- mimeType: "text/plain",
106957
- text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
106958
- }
106959
- ]
106960
- };
106961
- }
106962
106738
  return {
106963
106739
  content: [
106964
106740
  {
@@ -107109,4 +106885,4 @@ await main().catch((error41) => {
107109
106885
  process.exit(1);
107110
106886
  });
107111
106887
 
107112
- //# debugId=9DA4752A796F07DD64756E2164756E21
106888
+ //# debugId=BCC51A3C186AA4F364756E2164756E21