@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.
- package/dist/modules/auth/index.cjs +20 -72
- package/dist/modules/auth/index.cjs.map +1 -1
- package/dist/modules/auth/index.js +20 -72
- package/dist/modules/auth/index.js.map +1 -1
- package/dist/modules/devportal/index.cjs +32 -39
- package/dist/modules/devportal/index.cjs.map +1 -1
- package/dist/modules/devportal/index.js +32 -39
- package/dist/modules/devportal/index.js.map +1 -1
- package/dist/modules/groups/index.cjs +32 -20
- package/dist/modules/groups/index.cjs.map +1 -1
- package/dist/modules/groups/index.js +32 -20
- package/dist/modules/groups/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -177,11 +177,6 @@ var AUTHENTICATE_APP = `
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
`;
|
|
180
|
-
var ME = `
|
|
181
|
-
query Me {
|
|
182
|
-
me { id email username isActive emailVerified }
|
|
183
|
-
}
|
|
184
|
-
`;
|
|
185
180
|
var CURRENT_USER = `
|
|
186
181
|
query currentUser {
|
|
187
182
|
currentUser {
|
|
@@ -213,14 +208,15 @@ var ACTIVE_SESSIONS = `
|
|
|
213
208
|
}
|
|
214
209
|
`;
|
|
215
210
|
var REVOKE_SESSION = `
|
|
216
|
-
mutation revokeSession($
|
|
217
|
-
revokeSession(
|
|
211
|
+
mutation revokeSession($sessionId: ID!) {
|
|
212
|
+
revokeSession(sessionId: $sessionId)
|
|
218
213
|
}
|
|
219
214
|
`;
|
|
220
215
|
var CURRENT_USER_MFA_METHODS = `
|
|
221
216
|
query currentUserMFAMethods($pagination: PaginationInput) {
|
|
222
217
|
currentUserMFAMethods(pagination: $pagination) {
|
|
223
|
-
id method status createdAt updatedAt
|
|
218
|
+
methods { id method status createdAt updatedAt }
|
|
219
|
+
hasMore totalCount
|
|
224
220
|
}
|
|
225
221
|
}
|
|
226
222
|
`;
|
|
@@ -277,9 +273,12 @@ var ROTATE_API_KEY = `
|
|
|
277
273
|
var CURRENT_USER_DELEGATIONS = `
|
|
278
274
|
query currentUserDelegations($pagination: PaginationInput) {
|
|
279
275
|
currentUserDelegations(pagination: $pagination) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
276
|
+
delegations {
|
|
277
|
+
id appId userId grantedBy grantedAt expiresAt scopes workspaceIds
|
|
278
|
+
status revokedAt revokedBy
|
|
279
|
+
app { id name }
|
|
280
|
+
}
|
|
281
|
+
hasMore totalCount
|
|
283
282
|
}
|
|
284
283
|
}
|
|
285
284
|
`;
|
|
@@ -370,13 +369,6 @@ var UPDATE_USER = `
|
|
|
370
369
|
}
|
|
371
370
|
}
|
|
372
371
|
`;
|
|
373
|
-
var INVITE_USER = `
|
|
374
|
-
mutation inviteUser($input: InviteUserInput!) {
|
|
375
|
-
inviteUser(input: $input) {
|
|
376
|
-
id email status invitedAt expiresAt
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
`;
|
|
380
372
|
|
|
381
373
|
// src/modules/auth/more-tools.ts
|
|
382
374
|
function err(ctx, name, message, error) {
|
|
@@ -487,22 +479,6 @@ function registerAuthMoreTools(server, ctx, track) {
|
|
|
487
479
|
}
|
|
488
480
|
}
|
|
489
481
|
);
|
|
490
|
-
server.registerTool(
|
|
491
|
-
track(mcpToolName(ctx.productName, "auth_get_current_user")),
|
|
492
|
-
{
|
|
493
|
-
title: "Get Current User",
|
|
494
|
-
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.",
|
|
495
|
-
inputSchema: {}
|
|
496
|
-
},
|
|
497
|
-
async () => {
|
|
498
|
-
try {
|
|
499
|
-
const d = await ctx.gql.global.request(ME);
|
|
500
|
-
return jsonResult(d.me);
|
|
501
|
-
} catch (e) {
|
|
502
|
-
return err(ctx, "auth_get_current_user", "Failed to fetch current user", e);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
);
|
|
506
482
|
server.registerTool(
|
|
507
483
|
track(mcpToolName(ctx.productName, "auth_authenticate_app")),
|
|
508
484
|
{
|
|
@@ -701,12 +677,12 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
701
677
|
{
|
|
702
678
|
title: "Revoke Session",
|
|
703
679
|
description: "Revoke (sign out) a single session by id.",
|
|
704
|
-
inputSchema: {
|
|
680
|
+
inputSchema: { sessionId: z.string().describe("Session ID to revoke") }
|
|
705
681
|
},
|
|
706
|
-
async ({
|
|
682
|
+
async ({ sessionId }) => {
|
|
707
683
|
try {
|
|
708
|
-
await ctx.gql.global.request(REVOKE_SESSION, {
|
|
709
|
-
return jsonResult({ status: "success", message: `Session ${
|
|
684
|
+
await ctx.gql.global.request(REVOKE_SESSION, { sessionId });
|
|
685
|
+
return jsonResult({ status: "success", message: `Session ${sessionId} revoked.` });
|
|
710
686
|
} catch (e) {
|
|
711
687
|
return err2(ctx, "auth_sessions_revoke", "Failed to revoke session", e);
|
|
712
688
|
}
|
|
@@ -728,8 +704,9 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
728
704
|
pagination: { limit: limit ?? 50, offset: offset ?? 0 }
|
|
729
705
|
});
|
|
730
706
|
return jsonResult({
|
|
731
|
-
methods: d.currentUserMFAMethods,
|
|
732
|
-
total: d.currentUserMFAMethods.
|
|
707
|
+
methods: d.currentUserMFAMethods.methods,
|
|
708
|
+
total: d.currentUserMFAMethods.totalCount,
|
|
709
|
+
hasMore: d.currentUserMFAMethods.hasMore
|
|
733
710
|
});
|
|
734
711
|
} catch (e) {
|
|
735
712
|
return err2(ctx, "auth_mfa_list", "Failed to list MFA methods", e);
|
|
@@ -928,8 +905,9 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
928
905
|
pagination: { limit: limit ?? 50, offset: offset ?? 0 }
|
|
929
906
|
});
|
|
930
907
|
return jsonResult({
|
|
931
|
-
delegations: d.currentUserDelegations,
|
|
932
|
-
total: d.currentUserDelegations.
|
|
908
|
+
delegations: d.currentUserDelegations.delegations,
|
|
909
|
+
total: d.currentUserDelegations.totalCount,
|
|
910
|
+
hasMore: d.currentUserDelegations.hasMore
|
|
933
911
|
});
|
|
934
912
|
} catch (e) {
|
|
935
913
|
return err2(ctx, "auth_delegations_list", "Failed to list delegations", e);
|
|
@@ -1285,36 +1263,6 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
1285
1263
|
}
|
|
1286
1264
|
}
|
|
1287
1265
|
);
|
|
1288
|
-
server.registerTool(
|
|
1289
|
-
track(mcpToolName(ctx.productName, "auth_users_invite")),
|
|
1290
|
-
{
|
|
1291
|
-
title: "Invite User (admin)",
|
|
1292
|
-
description: "Send an invitation email to a new user.",
|
|
1293
|
-
inputSchema: {
|
|
1294
|
-
email: z.string().describe("Invitee email"),
|
|
1295
|
-
role: z.string().optional().describe("Role to assign on accept"),
|
|
1296
|
-
firstName: z.string().optional(),
|
|
1297
|
-
lastName: z.string().optional(),
|
|
1298
|
-
workspaceIds: z.array(z.string()).optional()
|
|
1299
|
-
}
|
|
1300
|
-
},
|
|
1301
|
-
async ({ email, role, firstName, lastName, workspaceIds }) => {
|
|
1302
|
-
try {
|
|
1303
|
-
const input = { email };
|
|
1304
|
-
if (role !== void 0) input.role = role.toUpperCase();
|
|
1305
|
-
if (firstName !== void 0) input.firstName = firstName;
|
|
1306
|
-
if (lastName !== void 0) input.lastName = lastName;
|
|
1307
|
-
if (workspaceIds !== void 0) input.workspaceIds = workspaceIds;
|
|
1308
|
-
const d = await ctx.gql.global.request(
|
|
1309
|
-
INVITE_USER,
|
|
1310
|
-
{ input }
|
|
1311
|
-
);
|
|
1312
|
-
return jsonResult({ status: "success", invitation: d.inviteUser });
|
|
1313
|
-
} catch (e) {
|
|
1314
|
-
return err2(ctx, "auth_users_invite", "Failed to invite user", e);
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
);
|
|
1318
1266
|
server.registerTool(
|
|
1319
1267
|
track(mcpToolName(ctx.productName, "auth_users_update")),
|
|
1320
1268
|
{
|