@burdenoff/mcp-libs 2026.1013.2 → 2026.1014.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.
@@ -579,11 +579,6 @@ var AUTHENTICATE_APP = `
579
579
  }
580
580
  }
581
581
  `;
582
- var ME = `
583
- query Me {
584
- me { id email username isActive emailVerified }
585
- }
586
- `;
587
582
  var CURRENT_USER = `
588
583
  query currentUser {
589
584
  currentUser {
@@ -615,14 +610,15 @@ var ACTIVE_SESSIONS = `
615
610
  }
616
611
  `;
617
612
  var REVOKE_SESSION = `
618
- mutation revokeSession($id: ID!) {
619
- revokeSession(id: $id)
613
+ mutation revokeSession($sessionId: ID!) {
614
+ revokeSession(sessionId: $sessionId)
620
615
  }
621
616
  `;
622
617
  var CURRENT_USER_MFA_METHODS = `
623
618
  query currentUserMFAMethods($pagination: PaginationInput) {
624
619
  currentUserMFAMethods(pagination: $pagination) {
625
- id method status createdAt updatedAt
620
+ methods { id method status createdAt updatedAt }
621
+ hasMore totalCount
626
622
  }
627
623
  }
628
624
  `;
@@ -679,9 +675,12 @@ var ROTATE_API_KEY = `
679
675
  var CURRENT_USER_DELEGATIONS = `
680
676
  query currentUserDelegations($pagination: PaginationInput) {
681
677
  currentUserDelegations(pagination: $pagination) {
682
- id appId userId grantedBy grantedAt expiresAt scopes workspaceIds
683
- status revokedAt revokedBy
684
- 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
685
684
  }
686
685
  }
687
686
  `;
@@ -772,13 +771,6 @@ var UPDATE_USER = `
772
771
  }
773
772
  }
774
773
  `;
775
- var INVITE_USER = `
776
- mutation inviteUser($input: InviteUserInput!) {
777
- inviteUser(input: $input) {
778
- id email status invitedAt expiresAt
779
- }
780
- }
781
- `;
782
774
 
783
775
  // src/modules/auth/more-tools.ts
784
776
  function err(ctx, name, message, error) {
@@ -889,22 +881,6 @@ function registerAuthMoreTools(server, ctx, track) {
889
881
  }
890
882
  }
891
883
  );
892
- server.registerTool(
893
- track(mcpToolName(ctx.productName, "auth_get_current_user")),
894
- {
895
- title: "Get Current User",
896
- description: "Fetch the authenticated user via the SDK `me` query (id, email, username, isActive, emailVerified). Lighter than auth_profile_get and matches the SDK shape. Use auth_status to check authentication state locally without a network round-trip.",
897
- inputSchema: {}
898
- },
899
- async () => {
900
- try {
901
- const d = await ctx.gql.global.request(ME);
902
- return jsonResult(d.me);
903
- } catch (e) {
904
- return err(ctx, "auth_get_current_user", "Failed to fetch current user", e);
905
- }
906
- }
907
- );
908
884
  server.registerTool(
909
885
  track(mcpToolName(ctx.productName, "auth_authenticate_app")),
910
886
  {
@@ -1103,12 +1079,12 @@ function registerAuthExtraTools(server, ctx, track) {
1103
1079
  {
1104
1080
  title: "Revoke Session",
1105
1081
  description: "Revoke (sign out) a single session by id.",
1106
- inputSchema: { id: zod.z.string().describe("Session ID to revoke") }
1082
+ inputSchema: { sessionId: zod.z.string().describe("Session ID to revoke") }
1107
1083
  },
1108
- async ({ id }) => {
1084
+ async ({ sessionId }) => {
1109
1085
  try {
1110
- await ctx.gql.global.request(REVOKE_SESSION, { id });
1111
- 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.` });
1112
1088
  } catch (e) {
1113
1089
  return err2(ctx, "auth_sessions_revoke", "Failed to revoke session", e);
1114
1090
  }
@@ -1130,8 +1106,9 @@ function registerAuthExtraTools(server, ctx, track) {
1130
1106
  pagination: { limit: limit ?? 50, offset: offset ?? 0 }
1131
1107
  });
1132
1108
  return jsonResult({
1133
- methods: d.currentUserMFAMethods,
1134
- total: d.currentUserMFAMethods.length
1109
+ methods: d.currentUserMFAMethods.methods,
1110
+ total: d.currentUserMFAMethods.totalCount,
1111
+ hasMore: d.currentUserMFAMethods.hasMore
1135
1112
  });
1136
1113
  } catch (e) {
1137
1114
  return err2(ctx, "auth_mfa_list", "Failed to list MFA methods", e);
@@ -1330,8 +1307,9 @@ function registerAuthExtraTools(server, ctx, track) {
1330
1307
  pagination: { limit: limit ?? 50, offset: offset ?? 0 }
1331
1308
  });
1332
1309
  return jsonResult({
1333
- delegations: d.currentUserDelegations,
1334
- total: d.currentUserDelegations.length
1310
+ delegations: d.currentUserDelegations.delegations,
1311
+ total: d.currentUserDelegations.totalCount,
1312
+ hasMore: d.currentUserDelegations.hasMore
1335
1313
  });
1336
1314
  } catch (e) {
1337
1315
  return err2(ctx, "auth_delegations_list", "Failed to list delegations", e);
@@ -1687,36 +1665,6 @@ function registerAuthExtraTools(server, ctx, track) {
1687
1665
  }
1688
1666
  }
1689
1667
  );
1690
- server.registerTool(
1691
- track(mcpToolName(ctx.productName, "auth_users_invite")),
1692
- {
1693
- title: "Invite User (admin)",
1694
- description: "Send an invitation email to a new user.",
1695
- inputSchema: {
1696
- email: zod.z.string().describe("Invitee email"),
1697
- role: zod.z.string().optional().describe("Role to assign on accept"),
1698
- firstName: zod.z.string().optional(),
1699
- lastName: zod.z.string().optional(),
1700
- workspaceIds: zod.z.array(zod.z.string()).optional()
1701
- }
1702
- },
1703
- async ({ email, role, firstName, lastName, workspaceIds }) => {
1704
- try {
1705
- const input = { email };
1706
- if (role !== void 0) input.role = role.toUpperCase();
1707
- if (firstName !== void 0) input.firstName = firstName;
1708
- if (lastName !== void 0) input.lastName = lastName;
1709
- if (workspaceIds !== void 0) input.workspaceIds = workspaceIds;
1710
- const d = await ctx.gql.global.request(
1711
- INVITE_USER,
1712
- { input }
1713
- );
1714
- return jsonResult({ status: "success", invitation: d.inviteUser });
1715
- } catch (e) {
1716
- return err2(ctx, "auth_users_invite", "Failed to invite user", e);
1717
- }
1718
- }
1719
- );
1720
1668
  server.registerTool(
1721
1669
  track(mcpToolName(ctx.productName, "auth_users_update")),
1722
1670
  {