@settlemint/sdk-mcp 2.5.2-prfaef9f56 → 2.5.3-main8218f2ae

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
@@ -48220,7 +48220,7 @@ var coerce = {
48220
48220
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
48221
48221
  };
48222
48222
  var NEVER = INVALID;
48223
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
48223
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
48224
48224
  var LATEST_PROTOCOL_VERSION = "2025-06-18";
48225
48225
  var SUPPORTED_PROTOCOL_VERSIONS = [
48226
48226
  LATEST_PROTOCOL_VERSION,
@@ -48770,7 +48770,7 @@ class McpError extends Error {
48770
48770
  }
48771
48771
  }
48772
48772
 
48773
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
48773
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
48774
48774
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
48775
48775
 
48776
48776
  class Protocol {
@@ -48877,10 +48877,11 @@ class Protocol {
48877
48877
  Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
48878
48878
  }
48879
48879
  _onrequest(request, extra) {
48880
- var _a, _b, _c, _d;
48880
+ var _a, _b;
48881
48881
  const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== undefined ? _a : this.fallbackRequestHandler;
48882
+ const capturedTransport = this._transport;
48882
48883
  if (handler === undefined) {
48883
- (_b = this._transport) === null || _b === undefined || _b.send({
48884
+ capturedTransport === null || capturedTransport === undefined || capturedTransport.send({
48884
48885
  jsonrpc: "2.0",
48885
48886
  id: request.id,
48886
48887
  error: {
@@ -48894,8 +48895,8 @@ class Protocol {
48894
48895
  this._requestHandlerAbortControllers.set(request.id, abortController);
48895
48896
  const fullExtra = {
48896
48897
  signal: abortController.signal,
48897
- sessionId: (_c = this._transport) === null || _c === undefined ? undefined : _c.sessionId,
48898
- _meta: (_d = request.params) === null || _d === undefined ? undefined : _d._meta,
48898
+ sessionId: capturedTransport === null || capturedTransport === undefined ? undefined : capturedTransport.sessionId,
48899
+ _meta: (_b = request.params) === null || _b === undefined ? undefined : _b._meta,
48899
48900
  sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
48900
48901
  sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
48901
48902
  authInfo: extra === null || extra === undefined ? undefined : extra.authInfo,
@@ -48903,26 +48904,25 @@ class Protocol {
48903
48904
  requestInfo: extra === null || extra === undefined ? undefined : extra.requestInfo
48904
48905
  };
48905
48906
  Promise.resolve().then(() => handler(request, fullExtra)).then((result2) => {
48906
- var _a2;
48907
48907
  if (abortController.signal.aborted) {
48908
48908
  return;
48909
48909
  }
48910
- return (_a2 = this._transport) === null || _a2 === undefined ? undefined : _a2.send({
48910
+ return capturedTransport === null || capturedTransport === undefined ? undefined : capturedTransport.send({
48911
48911
  result: result2,
48912
48912
  jsonrpc: "2.0",
48913
48913
  id: request.id
48914
48914
  });
48915
48915
  }, (error) => {
48916
- var _a2, _b2;
48916
+ var _a2;
48917
48917
  if (abortController.signal.aborted) {
48918
48918
  return;
48919
48919
  }
48920
- return (_a2 = this._transport) === null || _a2 === undefined ? undefined : _a2.send({
48920
+ return capturedTransport === null || capturedTransport === undefined ? undefined : capturedTransport.send({
48921
48921
  jsonrpc: "2.0",
48922
48922
  id: request.id,
48923
48923
  error: {
48924
48924
  code: Number.isSafeInteger(error["code"]) ? error["code"] : ErrorCode.InternalError,
48925
- message: (_b2 = error.message) !== null && _b2 !== undefined ? _b2 : "Internal error"
48925
+ message: (_a2 = error.message) !== null && _a2 !== undefined ? _a2 : "Internal error"
48926
48926
  }
48927
48927
  });
48928
48928
  }).catch((error) => this._onerror(new Error(`Failed to send response: ${error}`))).finally(() => {
@@ -49110,7 +49110,7 @@ function mergeCapabilities(base, additional) {
49110
49110
  }, { ...base });
49111
49111
  }
49112
49112
 
49113
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
49113
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
49114
49114
  var import_ajv = __toESM(require_ajv(), 1);
49115
49115
 
49116
49116
  class Server extends Protocol {
@@ -50526,7 +50526,7 @@ var zodToJsonSchema = (schema, options) => {
50526
50526
  }
50527
50527
  return combined;
50528
50528
  };
50529
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
50529
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
50530
50530
  var McpZodTypeKind;
50531
50531
  (function(McpZodTypeKind2) {
50532
50532
  McpZodTypeKind2["Completable"] = "McpCompletable";
@@ -50579,7 +50579,7 @@ function processCreateParams2(params) {
50579
50579
  return { errorMap: customMap, description };
50580
50580
  }
50581
50581
 
50582
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
50582
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
50583
50583
  class McpServer {
50584
50584
  constructor(serverInfo, options) {
50585
50585
  this._registeredResources = {};
@@ -51136,10 +51136,10 @@ var EMPTY_COMPLETION_RESULT = {
51136
51136
  }
51137
51137
  };
51138
51138
 
51139
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
51139
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
51140
51140
  import process2 from "node:process";
51141
51141
 
51142
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
51142
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
51143
51143
  class ReadBuffer {
51144
51144
  append(chunk) {
51145
51145
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
@@ -51169,7 +51169,7 @@ function serializeMessage(message) {
51169
51169
  `;
51170
51170
  }
51171
51171
 
51172
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
51172
+ // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.17.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
51173
51173
  class StdioServerTransport {
51174
51174
  constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
51175
51175
  this._stdin = _stdin;
@@ -79765,7 +79765,7 @@ var portalQueries = (server, env3) => {
79765
79765
  var package_default = {
79766
79766
  name: "@settlemint/sdk-mcp",
79767
79767
  description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
79768
- version: "2.5.2-prfaef9f56",
79768
+ version: "2.5.3-main8218f2ae",
79769
79769
  type: "module",
79770
79770
  private: false,
79771
79771
  license: "FSL-1.1-MIT",
@@ -79807,9 +79807,9 @@ var package_default = {
79807
79807
  "@commander-js/extra-typings": "14.0.0",
79808
79808
  "@graphql-tools/load": "8.1.2",
79809
79809
  "@graphql-tools/url-loader": "8.0.33",
79810
- "@modelcontextprotocol/sdk": "1.17.0",
79811
- "@settlemint/sdk-js": "2.5.2-prfaef9f56",
79812
- "@settlemint/sdk-utils": "2.5.2-prfaef9f56",
79810
+ "@modelcontextprotocol/sdk": "1.17.1",
79811
+ "@settlemint/sdk-js": "2.5.3-main8218f2ae",
79812
+ "@settlemint/sdk-utils": "2.5.3-main8218f2ae",
79813
79813
  commander: "14.0.0",
79814
79814
  graphql: "16.11.0",
79815
79815
  zod: "^4"
@@ -83478,6 +83478,18 @@ var MiddlewareFragment = graphql(`
83478
83478
  ... on HAGraphMiddleware {
83479
83479
  specVersion
83480
83480
  }
83481
+ ... on HAGraphPostgresMiddleware {
83482
+ specVersion
83483
+ }
83484
+ }
83485
+ `);
83486
+ var SubgraphFragment = graphql(`
83487
+ fragment Subgraph on Subgraph {
83488
+ name
83489
+ graphqlQueryEndpoint {
83490
+ displayValue
83491
+ id
83492
+ }
83481
83493
  }
83482
83494
  `);
83483
83495
  var getMiddlewares = graphql(`
@@ -83502,16 +83514,17 @@ var getGraphMiddlewareSubgraphs = graphql(`
83502
83514
  ...Middleware
83503
83515
  ... on HAGraphMiddleware {
83504
83516
  subgraphs(noCache: $noCache) {
83505
- name
83506
- graphqlQueryEndpoint {
83507
- displayValue
83508
- id
83509
- }
83517
+ ...Subgraph
83518
+ }
83519
+ }
83520
+ ... on HAGraphPostgresMiddleware {
83521
+ subgraphs(noCache: $noCache) {
83522
+ ...Subgraph
83510
83523
  }
83511
83524
  }
83512
83525
  }
83513
83526
  }
83514
- `, [MiddlewareFragment]);
83527
+ `, [MiddlewareFragment, SubgraphFragment]);
83515
83528
  var createMiddleware = graphql(`
83516
83529
  mutation CreateMiddleware(
83517
83530
  $applicationId: ID!
@@ -85785,4 +85798,4 @@ await main().catch((error41) => {
85785
85798
  process.exit(1);
85786
85799
  });
85787
85800
 
85788
- //# debugId=6CD71998F7C348BD64756E2164756E21
85801
+ //# debugId=E643624A9B851CD864756E2164756E21