@burdenoff/mcp-libs 2026.1013.3 → 2026.1014.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.
@@ -208,14 +208,15 @@ var ACTIVE_SESSIONS = `
208
208
  }
209
209
  `;
210
210
  var REVOKE_SESSION = `
211
- mutation revokeSession($id: ID!) {
212
- revokeSession(id: $id)
211
+ mutation revokeSession($sessionId: ID!) {
212
+ revokeSession(sessionId: $sessionId)
213
213
  }
214
214
  `;
215
215
  var CURRENT_USER_MFA_METHODS = `
216
216
  query currentUserMFAMethods($pagination: PaginationInput) {
217
217
  currentUserMFAMethods(pagination: $pagination) {
218
- id method status createdAt updatedAt
218
+ methods { id method status createdAt updatedAt }
219
+ hasMore totalCount
219
220
  }
220
221
  }
221
222
  `;
@@ -272,9 +273,12 @@ var ROTATE_API_KEY = `
272
273
  var CURRENT_USER_DELEGATIONS = `
273
274
  query currentUserDelegations($pagination: PaginationInput) {
274
275
  currentUserDelegations(pagination: $pagination) {
275
- id appId userId grantedBy grantedAt expiresAt scopes workspaceIds
276
- status revokedAt revokedBy
277
- app { id name }
276
+ delegations {
277
+ id appId userId grantedBy grantedAt expiresAt scopes workspaceIds
278
+ status revokedAt revokedBy
279
+ app { id name }
280
+ }
281
+ hasMore totalCount
278
282
  }
279
283
  }
280
284
  `;
@@ -673,12 +677,12 @@ function registerAuthExtraTools(server, ctx, track) {
673
677
  {
674
678
  title: "Revoke Session",
675
679
  description: "Revoke (sign out) a single session by id.",
676
- inputSchema: { id: z.string().describe("Session ID to revoke") }
680
+ inputSchema: { sessionId: z.string().describe("Session ID to revoke") }
677
681
  },
678
- async ({ id }) => {
682
+ async ({ sessionId }) => {
679
683
  try {
680
- await ctx.gql.global.request(REVOKE_SESSION, { id });
681
- return jsonResult({ status: "success", message: `Session ${id} revoked.` });
684
+ await ctx.gql.global.request(REVOKE_SESSION, { sessionId });
685
+ return jsonResult({ status: "success", message: `Session ${sessionId} revoked.` });
682
686
  } catch (e) {
683
687
  return err2(ctx, "auth_sessions_revoke", "Failed to revoke session", e);
684
688
  }
@@ -700,8 +704,9 @@ function registerAuthExtraTools(server, ctx, track) {
700
704
  pagination: { limit: limit ?? 50, offset: offset ?? 0 }
701
705
  });
702
706
  return jsonResult({
703
- methods: d.currentUserMFAMethods,
704
- total: d.currentUserMFAMethods.length
707
+ methods: d.currentUserMFAMethods.methods,
708
+ total: d.currentUserMFAMethods.totalCount,
709
+ hasMore: d.currentUserMFAMethods.hasMore
705
710
  });
706
711
  } catch (e) {
707
712
  return err2(ctx, "auth_mfa_list", "Failed to list MFA methods", e);
@@ -900,8 +905,9 @@ function registerAuthExtraTools(server, ctx, track) {
900
905
  pagination: { limit: limit ?? 50, offset: offset ?? 0 }
901
906
  });
902
907
  return jsonResult({
903
- delegations: d.currentUserDelegations,
904
- total: d.currentUserDelegations.length
908
+ delegations: d.currentUserDelegations.delegations,
909
+ total: d.currentUserDelegations.totalCount,
910
+ hasMore: d.currentUserDelegations.hasMore
905
911
  });
906
912
  } catch (e) {
907
913
  return err2(ctx, "auth_delegations_list", "Failed to list delegations", e);