@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.
|
@@ -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
|
`;
|
|
@@ -384,9 +385,10 @@ var CANCEL_SYNC_RUN = `
|
|
|
384
385
|
}
|
|
385
386
|
`;
|
|
386
387
|
var LIST_COST_RECORDS = `
|
|
387
|
-
query AdaListCostRecords($connectionId: ID, $resourceId: ID, $service: String) {
|
|
388
|
-
adaListCostRecords(connectionId: $connectionId, resourceId: $resourceId, service: $service) {
|
|
389
|
-
${COST_RECORD_FIELDS}
|
|
388
|
+
query AdaListCostRecords($connectionId: ID, $resourceId: ID, $service: String, $pagination: PaginationInput) {
|
|
389
|
+
adaListCostRecords(connectionId: $connectionId, resourceId: $resourceId, service: $service, pagination: $pagination) {
|
|
390
|
+
items { ${COST_RECORD_FIELDS} }
|
|
391
|
+
pageInfo { hasMore }
|
|
390
392
|
}
|
|
391
393
|
}
|
|
392
394
|
`;
|
|
@@ -915,8 +917,20 @@ function registerTopologyTools(server, ctx, track) {
|
|
|
915
917
|
},
|
|
916
918
|
async ({ kind, resourceId }) => {
|
|
917
919
|
try {
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
+
const edges = [];
|
|
921
|
+
let offset = 0;
|
|
922
|
+
for (; ; ) {
|
|
923
|
+
const data = await ctx.gql.workspace.request(LIST_TOPOLOGY_EDGES, {
|
|
924
|
+
kind,
|
|
925
|
+
resourceId,
|
|
926
|
+
pagination: { limit: 100, offset }
|
|
927
|
+
});
|
|
928
|
+
const page = data.adaListTopologyEdges;
|
|
929
|
+
edges.push(...page.items);
|
|
930
|
+
if (!page.pageInfo.hasMore || page.items.length === 0) break;
|
|
931
|
+
offset += page.items.length;
|
|
932
|
+
}
|
|
933
|
+
return jsonResult(edges);
|
|
920
934
|
} catch (error) {
|
|
921
935
|
ctx.logger.error("adaptercloud topology_list failed", { error: String(error) });
|
|
922
936
|
return errorResult(
|
|
@@ -1441,7 +1455,7 @@ function registerCostTools(server, ctx, track) {
|
|
|
1441
1455
|
track(mcpToolName(ctx.productName, "cost_list")),
|
|
1442
1456
|
{
|
|
1443
1457
|
title: "List Cost Records",
|
|
1444
|
-
description: "List cost records, optionally filtered by connection, resource, and/or service.
|
|
1458
|
+
description: "List all cost records, optionally filtered by connection, resource, and/or service.",
|
|
1445
1459
|
inputSchema: {
|
|
1446
1460
|
connectionId: zod.z.string().optional().describe("Filter by connection ID"),
|
|
1447
1461
|
resourceId: zod.z.string().optional().describe("Filter by resource ID"),
|
|
@@ -1450,8 +1464,21 @@ function registerCostTools(server, ctx, track) {
|
|
|
1450
1464
|
},
|
|
1451
1465
|
async ({ connectionId, resourceId, service }) => {
|
|
1452
1466
|
try {
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1467
|
+
const records = [];
|
|
1468
|
+
let offset = 0;
|
|
1469
|
+
for (; ; ) {
|
|
1470
|
+
const data = await ctx.gql.workspace.request(LIST_COST_RECORDS, {
|
|
1471
|
+
connectionId,
|
|
1472
|
+
resourceId,
|
|
1473
|
+
service,
|
|
1474
|
+
pagination: { limit: 100, offset }
|
|
1475
|
+
});
|
|
1476
|
+
const page = data.adaListCostRecords;
|
|
1477
|
+
records.push(...page.items);
|
|
1478
|
+
if (!page.pageInfo.hasMore || page.items.length === 0) break;
|
|
1479
|
+
offset += page.items.length;
|
|
1480
|
+
}
|
|
1481
|
+
return jsonResult(records);
|
|
1455
1482
|
} catch (error) {
|
|
1456
1483
|
ctx.logger.error("adaptercloud cost_list failed", { error: String(error) });
|
|
1457
1484
|
return errorResult(
|