@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.
@@ -610,14 +610,15 @@ var ACTIVE_SESSIONS = `
610
610
  }
611
611
  `;
612
612
  var REVOKE_SESSION = `
613
- mutation revokeSession($id: ID!) {
614
- revokeSession(id: $id)
613
+ mutation revokeSession($sessionId: ID!) {
614
+ revokeSession(sessionId: $sessionId)
615
615
  }
616
616
  `;
617
617
  var CURRENT_USER_MFA_METHODS = `
618
618
  query currentUserMFAMethods($pagination: PaginationInput) {
619
619
  currentUserMFAMethods(pagination: $pagination) {
620
- id method status createdAt updatedAt
620
+ methods { id method status createdAt updatedAt }
621
+ hasMore totalCount
621
622
  }
622
623
  }
623
624
  `;
@@ -674,9 +675,12 @@ var ROTATE_API_KEY = `
674
675
  var CURRENT_USER_DELEGATIONS = `
675
676
  query currentUserDelegations($pagination: PaginationInput) {
676
677
  currentUserDelegations(pagination: $pagination) {
677
- id appId userId grantedBy grantedAt expiresAt scopes workspaceIds
678
- status revokedAt revokedBy
679
- app { id name }
678
+ delegations {
679
+ id appId userId grantedBy grantedAt expiresAt scopes workspaceIds
680
+ status revokedAt revokedBy
681
+ app { id name }
682
+ }
683
+ hasMore totalCount
680
684
  }
681
685
  }
682
686
  `;
@@ -1075,12 +1079,12 @@ function registerAuthExtraTools(server, ctx, track) {
1075
1079
  {
1076
1080
  title: "Revoke Session",
1077
1081
  description: "Revoke (sign out) a single session by id.",
1078
- inputSchema: { id: zod.z.string().describe("Session ID to revoke") }
1082
+ inputSchema: { sessionId: zod.z.string().describe("Session ID to revoke") }
1079
1083
  },
1080
- async ({ id }) => {
1084
+ async ({ sessionId }) => {
1081
1085
  try {
1082
- await ctx.gql.global.request(REVOKE_SESSION, { id });
1083
- return jsonResult({ status: "success", message: `Session ${id} revoked.` });
1086
+ await ctx.gql.global.request(REVOKE_SESSION, { sessionId });
1087
+ return jsonResult({ status: "success", message: `Session ${sessionId} revoked.` });
1084
1088
  } catch (e) {
1085
1089
  return err2(ctx, "auth_sessions_revoke", "Failed to revoke session", e);
1086
1090
  }
@@ -1102,8 +1106,9 @@ function registerAuthExtraTools(server, ctx, track) {
1102
1106
  pagination: { limit: limit ?? 50, offset: offset ?? 0 }
1103
1107
  });
1104
1108
  return jsonResult({
1105
- methods: d.currentUserMFAMethods,
1106
- total: d.currentUserMFAMethods.length
1109
+ methods: d.currentUserMFAMethods.methods,
1110
+ total: d.currentUserMFAMethods.totalCount,
1111
+ hasMore: d.currentUserMFAMethods.hasMore
1107
1112
  });
1108
1113
  } catch (e) {
1109
1114
  return err2(ctx, "auth_mfa_list", "Failed to list MFA methods", e);
@@ -1302,8 +1307,9 @@ function registerAuthExtraTools(server, ctx, track) {
1302
1307
  pagination: { limit: limit ?? 50, offset: offset ?? 0 }
1303
1308
  });
1304
1309
  return jsonResult({
1305
- delegations: d.currentUserDelegations,
1306
- total: d.currentUserDelegations.length
1310
+ delegations: d.currentUserDelegations.delegations,
1311
+ total: d.currentUserDelegations.totalCount,
1312
+ hasMore: d.currentUserDelegations.hasMore
1307
1313
  });
1308
1314
  } catch (e) {
1309
1315
  return err2(ctx, "auth_delegations_list", "Failed to list delegations", e);