@burdenoff/mcp-libs 2026.820.1 → 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.
@@ -227,9 +227,10 @@ var REGISTER_RESOURCE = `
227
227
  }
228
228
  `;
229
229
  var LIST_TOPOLOGY_EDGES = `
230
- query AdaListTopologyEdges($kind: AdaEdgeKind, $resourceId: ID) {
231
- adaListTopologyEdges(kind: $kind, resourceId: $resourceId) {
232
- ${TOPOLOGY_EDGE_FIELDS}
230
+ query AdaListTopologyEdges($kind: AdaEdgeKind, $resourceId: ID, $pagination: PaginationInput) {
231
+ adaListTopologyEdges(kind: $kind, resourceId: $resourceId, pagination: $pagination) {
232
+ items { ${TOPOLOGY_EDGE_FIELDS} }
233
+ pageInfo { hasMore }
233
234
  }
234
235
  }
235
236
  `;
@@ -915,8 +916,20 @@ function registerTopologyTools(server, ctx, track) {
915
916
  },
916
917
  async ({ kind, resourceId }) => {
917
918
  try {
918
- const data = await ctx.gql.workspace.request(LIST_TOPOLOGY_EDGES, { kind, resourceId });
919
- return jsonResult(data.adaListTopologyEdges);
919
+ const edges = [];
920
+ let offset = 0;
921
+ for (; ; ) {
922
+ const data = await ctx.gql.workspace.request(LIST_TOPOLOGY_EDGES, {
923
+ kind,
924
+ resourceId,
925
+ pagination: { limit: 100, offset }
926
+ });
927
+ const page = data.adaListTopologyEdges;
928
+ edges.push(...page.items);
929
+ if (!page.pageInfo.hasMore || page.items.length === 0) break;
930
+ offset += page.items.length;
931
+ }
932
+ return jsonResult(edges);
920
933
  } catch (error) {
921
934
  ctx.logger.error("adaptercloud topology_list failed", { error: String(error) });
922
935
  return errorResult(