@burdenoff/mcp-libs 2026.820.2 → 2026.825.1

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.
@@ -166,9 +166,10 @@ var REGISTER_RESOURCE = `
166
166
  }
167
167
  `;
168
168
  var LIST_TOPOLOGY_EDGES = `
169
- query AdaListTopologyEdges($kind: AdaEdgeKind, $resourceId: ID) {
170
- adaListTopologyEdges(kind: $kind, resourceId: $resourceId) {
171
- ${TOPOLOGY_EDGE_FIELDS}
169
+ query AdaListTopologyEdges($kind: AdaEdgeKind, $resourceId: ID, $pagination: PaginationInput) {
170
+ adaListTopologyEdges(kind: $kind, resourceId: $resourceId, pagination: $pagination) {
171
+ items { ${TOPOLOGY_EDGE_FIELDS} }
172
+ pageInfo { hasMore }
172
173
  }
173
174
  }
174
175
  `;
@@ -854,8 +855,20 @@ function registerTopologyTools(server, ctx, track) {
854
855
  },
855
856
  async ({ kind, resourceId }) => {
856
857
  try {
857
- const data = await ctx.gql.workspace.request(LIST_TOPOLOGY_EDGES, { kind, resourceId });
858
- return jsonResult(data.adaListTopologyEdges);
858
+ const edges = [];
859
+ let offset = 0;
860
+ for (; ; ) {
861
+ const data = await ctx.gql.workspace.request(LIST_TOPOLOGY_EDGES, {
862
+ kind,
863
+ resourceId,
864
+ pagination: { limit: 100, offset }
865
+ });
866
+ const page = data.adaListTopologyEdges;
867
+ edges.push(...page.items);
868
+ if (!page.pageInfo.hasMore || page.items.length === 0) break;
869
+ offset += page.items.length;
870
+ }
871
+ return jsonResult(edges);
859
872
  } catch (error) {
860
873
  ctx.logger.error("adaptercloud topology_list failed", { error: String(error) });
861
874
  return errorResult(