@burdenoff/mcp-libs 2026.820.2 → 2026.825.2
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
|
`;
|
|
@@ -323,9 +324,10 @@ var CANCEL_SYNC_RUN = `
|
|
|
323
324
|
}
|
|
324
325
|
`;
|
|
325
326
|
var LIST_COST_RECORDS = `
|
|
326
|
-
query AdaListCostRecords($connectionId: ID, $resourceId: ID, $service: String) {
|
|
327
|
-
adaListCostRecords(connectionId: $connectionId, resourceId: $resourceId, service: $service) {
|
|
328
|
-
${COST_RECORD_FIELDS}
|
|
327
|
+
query AdaListCostRecords($connectionId: ID, $resourceId: ID, $service: String, $pagination: PaginationInput) {
|
|
328
|
+
adaListCostRecords(connectionId: $connectionId, resourceId: $resourceId, service: $service, pagination: $pagination) {
|
|
329
|
+
items { ${COST_RECORD_FIELDS} }
|
|
330
|
+
pageInfo { hasMore }
|
|
329
331
|
}
|
|
330
332
|
}
|
|
331
333
|
`;
|
|
@@ -854,8 +856,20 @@ function registerTopologyTools(server, ctx, track) {
|
|
|
854
856
|
},
|
|
855
857
|
async ({ kind, resourceId }) => {
|
|
856
858
|
try {
|
|
857
|
-
const
|
|
858
|
-
|
|
859
|
+
const edges = [];
|
|
860
|
+
let offset = 0;
|
|
861
|
+
for (; ; ) {
|
|
862
|
+
const data = await ctx.gql.workspace.request(LIST_TOPOLOGY_EDGES, {
|
|
863
|
+
kind,
|
|
864
|
+
resourceId,
|
|
865
|
+
pagination: { limit: 100, offset }
|
|
866
|
+
});
|
|
867
|
+
const page = data.adaListTopologyEdges;
|
|
868
|
+
edges.push(...page.items);
|
|
869
|
+
if (!page.pageInfo.hasMore || page.items.length === 0) break;
|
|
870
|
+
offset += page.items.length;
|
|
871
|
+
}
|
|
872
|
+
return jsonResult(edges);
|
|
859
873
|
} catch (error) {
|
|
860
874
|
ctx.logger.error("adaptercloud topology_list failed", { error: String(error) });
|
|
861
875
|
return errorResult(
|
|
@@ -1380,7 +1394,7 @@ function registerCostTools(server, ctx, track) {
|
|
|
1380
1394
|
track(mcpToolName(ctx.productName, "cost_list")),
|
|
1381
1395
|
{
|
|
1382
1396
|
title: "List Cost Records",
|
|
1383
|
-
description: "List cost records, optionally filtered by connection, resource, and/or service.
|
|
1397
|
+
description: "List all cost records, optionally filtered by connection, resource, and/or service.",
|
|
1384
1398
|
inputSchema: {
|
|
1385
1399
|
connectionId: z.string().optional().describe("Filter by connection ID"),
|
|
1386
1400
|
resourceId: z.string().optional().describe("Filter by resource ID"),
|
|
@@ -1389,8 +1403,21 @@ function registerCostTools(server, ctx, track) {
|
|
|
1389
1403
|
},
|
|
1390
1404
|
async ({ connectionId, resourceId, service }) => {
|
|
1391
1405
|
try {
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1406
|
+
const records = [];
|
|
1407
|
+
let offset = 0;
|
|
1408
|
+
for (; ; ) {
|
|
1409
|
+
const data = await ctx.gql.workspace.request(LIST_COST_RECORDS, {
|
|
1410
|
+
connectionId,
|
|
1411
|
+
resourceId,
|
|
1412
|
+
service,
|
|
1413
|
+
pagination: { limit: 100, offset }
|
|
1414
|
+
});
|
|
1415
|
+
const page = data.adaListCostRecords;
|
|
1416
|
+
records.push(...page.items);
|
|
1417
|
+
if (!page.pageInfo.hasMore || page.items.length === 0) break;
|
|
1418
|
+
offset += page.items.length;
|
|
1419
|
+
}
|
|
1420
|
+
return jsonResult(records);
|
|
1394
1421
|
} catch (error) {
|
|
1395
1422
|
ctx.logger.error("adaptercloud cost_list failed", { error: String(error) });
|
|
1396
1423
|
return errorResult(
|