@superblocksteam/mcp-server 2.0.151 → 2.0.152-next.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.
@@ -1,44 +1,3 @@
1
1
  import { SuperblocksSdk } from "@superblocksteam/sdk";
2
- export type BillingUsageRecordsResponse = {
3
- agentUsage?: Array<{
4
- agentId: string;
5
- name: string;
6
- creditsUsed: number;
7
- }>;
8
- applicationUsageRows?: Array<{
9
- applicationId: string;
10
- applicationName: string;
11
- creditsUsed: number;
12
- usageType: "ai_credits";
13
- }>;
14
- dollarCommitUsedCents?: number;
15
- dollarLedgerRows?: Array<{
16
- amountCents: number;
17
- applicationId: string | null;
18
- applicationName: string | null;
19
- chargeKind: "committed" | "overage";
20
- creditsUsed: number | null;
21
- date: string;
22
- email: string | null;
23
- entryType: string;
24
- name: string | null;
25
- usageType: "ai_credits" | "deployed_app";
26
- }>;
27
- enterpriseBillingWindows?: unknown[];
28
- rows: Array<{
29
- actorId?: string;
30
- actorType?: "ai_agent" | "user";
31
- creditsUsed: number;
32
- date: string;
33
- email: string | null;
34
- name: string;
35
- source: string;
36
- }>;
37
- seatAssignments?: unknown[];
38
- };
39
- type SuperblocksMcpSdk = SuperblocksSdk & {
40
- fetchBillingUsageRecordsResponse(startDate: string, endDate: string): Promise<BillingUsageRecordsResponse>;
41
- };
42
- export declare function createSdk(token: string, baseUrl: string): SuperblocksMcpSdk;
43
- export {};
2
+ export declare function createSdk(token: string, baseUrl: string): SuperblocksSdk;
44
3
  //# sourceMappingURL=create-sdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/create-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,CAAC,EAAE,KAAK,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,E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2BAA2B,CAAC,CAAC;CACzC,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAE3E"}
1
+ {"version":3,"file":"create-sdk.d.ts","sourceRoot":"","sources":["../../src/sdk/create-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAExE"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-sdk.js","sourceRoot":"","sources":["../../src/sdk/create-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,GAAG,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AA+C3D,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,OAAe;IACtD,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAsB,CAAC;AAC9E,CAAC"}
1
+ {"version":3,"file":"create-sdk.js","sourceRoot":"","sources":["../../src/sdk/create-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,GAAG,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAE3D,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,OAAe;IACtD,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;AACzD,CAAC"}
@@ -90,8 +90,8 @@ export declare const billingBaseUrlInputSchema: z.ZodObject<{
90
90
  export declare const listKnowledgeInputSchema: z.ZodObject<{
91
91
  base_url: z.ZodString;
92
92
  entity_scope: z.ZodOptional<z.ZodEnum<{
93
- user: "user";
94
93
  org: "org";
94
+ user: "user";
95
95
  integration: "integration";
96
96
  }>>;
97
97
  entity_id: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-billing-usage-records.d.ts","sourceRoot":"","sources":["../../src/tools/get-billing-usage-records.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAyGpD,eAAO,MAAM,sBAAsB,EAAE,cAiGpC,CAAC"}
1
+ {"version":3,"file":"get-billing-usage-records.d.ts","sourceRoot":"","sources":["../../src/tools/get-billing-usage-records.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAiMpD,eAAO,MAAM,sBAAsB,EAAE,cAiIpC,CAAC"}
@@ -4,6 +4,76 @@ import { billingUsageRecordsInputSchema, resolveBaseUrlTarget, } from "../target
4
4
  import { applyPagination } from "./pagination.js";
5
5
  import * as schemas from "./schemas.js";
6
6
  import { parseToolInput } from "./validation.js";
7
+ const NO_CHECKPOINT_LABEL = "No checkpoint";
8
+ function buildCheckpointRollup(rows) {
9
+ const byCheckpoint = new Map();
10
+ let noCheckpoint = null;
11
+ for (const row of rows) {
12
+ // Treat a null, undefined, or empty checkpointId as "no checkpoint" so a
13
+ // malformed/empty id never becomes a phantom checkpoint entry. All credit
14
+ // sums are `?? 0`-guarded: the wire shape is a hand-maintained mirror with
15
+ // no runtime validation, and an absent numeric field must degrade a row to
16
+ // a 0 contribution, never NaN (NaN serializes to null and would silently
17
+ // corrupt the whole response's total).
18
+ if (!row.checkpointId) {
19
+ if (noCheckpoint === null) {
20
+ noCheckpoint = {
21
+ application_id: row.applicationId,
22
+ application_name: row.applicationName,
23
+ checkpoint_id: null,
24
+ checkpoint_label: NO_CHECKPOINT_LABEL,
25
+ credits_used: 0,
26
+ last_activity_date: row.date,
27
+ on_demand_credits_used: 0,
28
+ unbilled_credits_used: 0,
29
+ };
30
+ }
31
+ else if (noCheckpoint.application_id !== row.applicationId) {
32
+ // The bucket folds rows from more than one application (or a row with
33
+ // no application at all), so it is not attributable to a single app.
34
+ // Under an application_id filter every folded row shares one app, so
35
+ // this branch never fires and the bucket keeps that app's id/name.
36
+ noCheckpoint.application_id = null;
37
+ noCheckpoint.application_name = null;
38
+ }
39
+ noCheckpoint.credits_used += row.creditsUsed ?? 0;
40
+ noCheckpoint.on_demand_credits_used += row.onDemandCreditsUsed ?? 0;
41
+ noCheckpoint.unbilled_credits_used += row.unbilledCreditsUsed ?? 0;
42
+ if (row.date > noCheckpoint.last_activity_date) {
43
+ noCheckpoint.last_activity_date = row.date;
44
+ }
45
+ continue;
46
+ }
47
+ const existing = byCheckpoint.get(row.checkpointId) ?? {
48
+ application_id: row.applicationId,
49
+ application_name: row.applicationName,
50
+ checkpoint_id: row.checkpointId,
51
+ checkpoint_label: row.checkpointLabel,
52
+ credits_used: 0,
53
+ last_activity_date: row.date,
54
+ on_demand_credits_used: 0,
55
+ unbilled_credits_used: 0,
56
+ };
57
+ existing.credits_used += row.creditsUsed ?? 0;
58
+ existing.on_demand_credits_used += row.onDemandCreditsUsed ?? 0;
59
+ existing.unbilled_credits_used += row.unbilledCreditsUsed ?? 0;
60
+ existing.checkpoint_label ??= row.checkpointLabel;
61
+ existing.application_id ??= row.applicationId;
62
+ existing.application_name ??= row.applicationName;
63
+ if (row.date > existing.last_activity_date) {
64
+ existing.last_activity_date = row.date;
65
+ }
66
+ byCheckpoint.set(row.checkpointId, existing);
67
+ }
68
+ const checkpoints = [...byCheckpoint.values()].sort((a, b) => b.credits_used - a.credits_used ||
69
+ b.last_activity_date.localeCompare(a.last_activity_date) ||
70
+ (a.checkpoint_id ?? "").localeCompare(b.checkpoint_id ?? ""));
71
+ if (noCheckpoint) {
72
+ // The "No checkpoint" bucket is always last, regardless of its credit total, so real checkpoints stay top-ranked.
73
+ checkpoints.push(noCheckpoint);
74
+ }
75
+ return checkpoints;
76
+ }
7
77
  function matchesAppFilters(row, input) {
8
78
  if (input.application_id && row.applicationId !== input.application_id) {
9
79
  return false;
@@ -54,7 +124,7 @@ function buildApplicationAggregates({ applicationUsageRows, dollarLedgerRows, })
54
124
  application_name: row.applicationName,
55
125
  credits: 0,
56
126
  };
57
- existing.credits = (existing.credits ?? 0) + row.creditsUsed;
127
+ existing.credits = (existing.credits ?? 0) + (row.creditsUsed ?? 0);
58
128
  byApplication.set(row.applicationId, existing);
59
129
  }
60
130
  return [...byApplication.values()].sort((a, b) => (b.credits ?? 0) - (a.credits ?? 0) ||
@@ -64,7 +134,7 @@ function buildApplicationAggregates({ applicationUsageRows, dollarLedgerRows, })
64
134
  export const getBillingUsageRecords = {
65
135
  name: "get_billing_usage_records",
66
136
  title: "Get Billing Usage Records",
67
- description: "Get AI credit billing usage records for a date range. App filters scope app-attributed ledger records and app aggregates; per-user records remain date-scoped unless no app filter is provided. Requires billing:manage permission.",
137
+ description: "Get AI credit billing usage for a date range, rolled up per checkpoint (an accepted AI change). Each entry has checkpoint_id, checkpoint_label (the checkpoint's commit message; null when the commit had no message, or when your token lacks application-update permission), application, credits_used, and overage splits. Usage not attributable to any checkpoint (history from before checkpoint tracking shipped, never-accepted prompts, and agent or utility usage) is aggregated into a single trailing entry with checkpoint_id null — expected, not missing data; older date ranges fall mostly in that bucket. Because that entry sorts last, it may sit past the requested page; no_checkpoint_credits always reports its credit total for the whole filtered range, so compare it against total_credits before summarizing a partial page. checkpoint_data_available is false when the server predates checkpoint rollups (no_checkpoint_credits is then null — unknowable, not zero). App filters (application_id, usage_type) scope every surface, including checkpoints. Pagination (limit/offset) applies only to the checkpoints list; by_application, dollar_ledger_records, and top_users are always full summaries. by_application credits are an independent server-side per-application total and are not expected to equal the sum of that application's checkpoints. Requires billing:manage permission.",
68
138
  inputSchema: schemas.getBillingUsageRecordsToolInputSchema,
69
139
  annotations: {
70
140
  readOnlyHint: true,
@@ -80,61 +150,91 @@ export const getBillingUsageRecords = {
80
150
  const sdk = createSdk(auth.token, target.baseUrl);
81
151
  const response = await sdk.fetchBillingUsageRecordsResponse(input.start_date, input.end_date);
82
152
  const hasAppScopedFilter = Boolean(input.application_id || input.usage_type);
83
- const rows = hasAppScopedFilter ? [] : response.rows;
84
153
  const dollarLedgerRows = (response.dollarLedgerRows ?? []).filter((row) => matchesAppFilters(row, input));
85
154
  const applicationUsageRows = (response.applicationUsageRows ?? []).filter((row) => matchesAppFilters(row, input));
86
- let byApplication = buildApplicationAggregates({
155
+ const byApplication = buildApplicationAggregates({
87
156
  applicationUsageRows,
88
157
  dollarLedgerRows,
89
158
  });
90
- const totalCredits = hasAppScopedFilter
91
- ? byApplication.reduce((sum, r) => sum + (r.credits ?? 0), 0)
92
- : rows.reduce((sum, r) => sum + r.creditsUsed, 0);
159
+ // Two separate questions. `hasUsageGroupRows` — did the server send the
160
+ // rollup collection? drives which source computes the totals, so they
161
+ // always reconcile with `checkpoints`. `checkpoint_data_available` does
162
+ // the server actually map usage to checkpoints? — is the presence of the
163
+ // checkpointId FIELD on the rows, not merely of the array: a pre-checkpoint
164
+ // server (the state between #20020 and #20888 landing) returns
165
+ // usageGroupRows with no checkpointId, and must report false so a consumer
166
+ // can tell "no rollup capability" from "rollup present, nothing mapped yet".
167
+ const usageGroupRows = response.usageGroupRows;
168
+ const hasUsageGroupRows = Array.isArray(usageGroupRows);
169
+ const checkpointDataAvailable = Array.isArray(usageGroupRows) &&
170
+ (usageGroupRows.length === 0 ||
171
+ usageGroupRows.some((row) => "checkpointId" in row));
172
+ const filteredGroupRows = (usageGroupRows ?? []).filter((row) => {
173
+ if (input.application_id && row.applicationId !== input.application_id) {
174
+ return false;
175
+ }
176
+ // Checkpoint rollups are AI-credit usage; any other usage type excludes them.
177
+ if (input.usage_type && input.usage_type !== "ai_credits") {
178
+ return false;
179
+ }
180
+ return true;
181
+ });
182
+ const allCheckpoints = buildCheckpointRollup(filteredGroupRows);
183
+ // The trailing bucket sorts last, so pagination can leave it off the page
184
+ // while total_credits still includes it. This scalar keeps the unattributed
185
+ // total visible to consumers that never page. null = pre-rollup server,
186
+ // where attributability is unknowable (distinct from a known 0).
187
+ const noCheckpointCredits = hasUsageGroupRows
188
+ ? (allCheckpoints.find((c) => c.checkpoint_id === null)?.credits_used ??
189
+ 0)
190
+ : null;
191
+ const legacyRows = hasAppScopedFilter ? [] : response.rows;
192
+ // Every legacy path gets the same `?? 0` guard as the usageGroupRows path:
193
+ // these are hand-maintained wire mirrors with no runtime validation, and
194
+ // one absent creditsUsed must degrade that row to 0, never NaN-poison the
195
+ // total (NaN serializes to null and silently corrupts the response).
196
+ const totalCredits = hasUsageGroupRows
197
+ ? filteredGroupRows.reduce((sum, r) => sum + (r.creditsUsed ?? 0), 0)
198
+ : hasAppScopedFilter
199
+ ? // Sum real per-app credits from applicationUsageRows: by_application's
200
+ // `credits` is null in dollar-ledger mode, which would zero the total.
201
+ applicationUsageRows.reduce((sum, r) => sum + (r.creditsUsed ?? 0), 0)
202
+ : legacyRows.reduce((sum, r) => sum + (r.creditsUsed ?? 0), 0);
93
203
  const byUser = new Map();
94
- for (const r of rows) {
204
+ const userRows = hasUsageGroupRows ? filteredGroupRows : legacyRows;
205
+ for (const r of userRows) {
95
206
  if (!r.email) {
96
207
  continue;
97
208
  }
98
- byUser.set(r.email, (byUser.get(r.email) ?? 0) + r.creditsUsed);
209
+ byUser.set(r.email, (byUser.get(r.email) ?? 0) + (r.creditsUsed ?? 0));
99
210
  }
100
211
  const topUsers = [...byUser.entries()]
101
212
  .sort((a, b) => b[1] - a[1])
102
213
  .slice(0, 10)
103
214
  .map(([email, credits]) => ({ email, credits }));
104
- let dollarLedgerRecords = dollarLedgerRows;
105
- const recordPagination = applyPagination(rows, {
215
+ // `checkpoints` is the primary list and the only paginated collection; the
216
+ // pagination fields always describe it. `by_application`, `top_users`, and
217
+ // `dollar_ledger_records` are full app-scoped summaries, never paginated.
218
+ const checkpointPagination = applyPagination(allCheckpoints, {
106
219
  limit: input.limit,
107
220
  offset: input.offset,
108
221
  });
109
- let pageInfo = summarizePagination(recordPagination);
110
- if (hasAppScopedFilter && dollarLedgerRows.length > 0) {
111
- const scopedPagination = applyPagination(dollarLedgerRows, {
112
- limit: input.limit,
113
- offset: input.offset,
114
- });
115
- dollarLedgerRecords = scopedPagination.page;
116
- pageInfo = summarizePagination(scopedPagination);
117
- }
118
- else if (hasAppScopedFilter) {
119
- const scopedPagination = applyPagination(byApplication, {
120
- limit: input.limit,
121
- offset: input.offset,
122
- });
123
- byApplication = scopedPagination.page;
124
- pageInfo = summarizePagination(scopedPagination);
125
- }
222
+ const checkpoints = checkpointPagination.page;
223
+ const pageInfo = summarizePagination(checkpointPagination);
126
224
  return {
127
225
  auth_source: auth.source,
128
226
  base_url: target.baseUrl,
129
227
  by_application: byApplication,
130
- dollar_ledger_records: dollarLedgerRecords,
228
+ checkpoint_data_available: checkpointDataAvailable,
229
+ checkpoints,
230
+ dollar_ledger_records: dollarLedgerRows,
131
231
  end_date: input.end_date,
132
232
  environment: target.environment,
133
233
  has_more: pageInfo.has_more,
134
234
  limit: pageInfo.limit,
135
235
  next_offset: pageInfo.next_offset,
236
+ no_checkpoint_credits: noCheckpointCredits,
136
237
  offset: pageInfo.offset,
137
- records: recordPagination.page,
138
238
  returned_count: pageInfo.returned_count,
139
239
  start_date: input.start_date,
140
240
  top_users: topUsers,
@@ -1 +1 @@
1
- {"version":3,"file":"get-billing-usage-records.js","sourceRoot":"","sources":["../../src/tools/get-billing-usage-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EACL,8BAA8B,EAC9B,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAwBjD,SAAS,iBAAiB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CAAC,WAAW;YACjC,aAAa,EAAE,YAAY;SAC5B,CAAC;IACJ,CAAC;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/mcp-server",
3
- "version": "2.0.151",
3
+ "version": "2.0.152-next.1",
4
4
  "description": "Superblocks MCP server",
5
5
  "license": "Superblocks Community Software License",
6
6
  "bin": {
@@ -42,9 +42,9 @@
42
42
  "@modelcontextprotocol/sdk": "^1.28.0",
43
43
  "fs-extra": "^11.3.0",
44
44
  "zod": "^4.3.6",
45
- "@superblocksteam/sdk": "2.0.151",
46
- "@superblocksteam/shared": "0.9604.3",
47
- "@superblocksteam/util": "2.0.151"
45
+ "@superblocksteam/shared": "0.9605.1",
46
+ "@superblocksteam/util": "2.0.152-next.1",
47
+ "@superblocksteam/sdk": "2.0.152-next.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/fs-extra": "^11.0.4",