@burdenoff/mcp-libs 2026.1014.2 → 2026.1014.4
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 +22 -11
- package/dist/modules/auth/index.cjs.map +1 -1
- package/dist/modules/auth/index.js +22 -11
- package/dist/modules/auth/index.js.map +1 -1
- package/dist/modules/workspaces/index.cjs +4 -5
- package/dist/modules/workspaces/index.cjs.map +1 -1
- package/dist/modules/workspaces/index.js +4 -5
- package/dist/modules/workspaces/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -195,15 +195,19 @@ var UPDATE_CURRENT_USER_PROFILE = `
|
|
|
195
195
|
var AUTH_AUDIT_LOGS = `
|
|
196
196
|
query authAuditLogs($pagination: PaginationInput) {
|
|
197
197
|
authAuditLogs(pagination: $pagination) {
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
auditLogs {
|
|
199
|
+
id action resource resourceType resourceId description
|
|
200
|
+
ipAddress userAgent metadata createdAt
|
|
201
|
+
}
|
|
202
|
+
hasMore totalCount
|
|
200
203
|
}
|
|
201
204
|
}
|
|
202
205
|
`;
|
|
203
206
|
var ACTIVE_SESSIONS = `
|
|
204
207
|
query activeSessions($pagination: PaginationInput) {
|
|
205
208
|
activeSessions(pagination: $pagination) {
|
|
206
|
-
id status ipAddress userAgent location lastActivityAt expiresAt createdAt isCurrent
|
|
209
|
+
sessions { id status ipAddress userAgent location lastActivityAt expiresAt createdAt isCurrent }
|
|
210
|
+
hasMore totalCount
|
|
207
211
|
}
|
|
208
212
|
}
|
|
209
213
|
`;
|
|
@@ -666,7 +670,11 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
666
670
|
const d = await ctx.gql.global.request(ACTIVE_SESSIONS, {
|
|
667
671
|
pagination: { limit: limit ?? 50, offset: offset ?? 0 }
|
|
668
672
|
});
|
|
669
|
-
return jsonResult({
|
|
673
|
+
return jsonResult({
|
|
674
|
+
sessions: d.activeSessions.sessions,
|
|
675
|
+
total: d.activeSessions.totalCount,
|
|
676
|
+
hasMore: d.activeSessions.hasMore
|
|
677
|
+
});
|
|
670
678
|
} catch (e) {
|
|
671
679
|
return err2(ctx, "auth_sessions_list", "Failed to list sessions", e);
|
|
672
680
|
}
|
|
@@ -809,7 +817,7 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
809
817
|
inputSchema: {
|
|
810
818
|
name: z.string().describe("Friendly name for the key"),
|
|
811
819
|
appId: z.string().describe("Owning app id"),
|
|
812
|
-
scopes: z.array(z.string()).
|
|
820
|
+
scopes: z.array(z.string()).min(1).describe("Scope strings (required)"),
|
|
813
821
|
expiresAt: z.string().optional().describe("ISO expiry date")
|
|
814
822
|
}
|
|
815
823
|
},
|
|
@@ -883,7 +891,11 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
883
891
|
const d = await ctx.gql.global.request(AUTH_AUDIT_LOGS, {
|
|
884
892
|
pagination: { limit: limit ?? 50, offset: offset ?? 0 }
|
|
885
893
|
});
|
|
886
|
-
return jsonResult({
|
|
894
|
+
return jsonResult({
|
|
895
|
+
events: d.authAuditLogs.auditLogs,
|
|
896
|
+
total: d.authAuditLogs.totalCount,
|
|
897
|
+
hasMore: d.authAuditLogs.hasMore
|
|
898
|
+
});
|
|
887
899
|
} catch (e) {
|
|
888
900
|
return err2(ctx, "auth_audit_log_query", "Failed to query audit log", e);
|
|
889
901
|
}
|
|
@@ -918,18 +930,17 @@ function registerAuthExtraTools(server, ctx, track) {
|
|
|
918
930
|
track(mcpToolName(ctx.productName, "auth_delegations_grant")),
|
|
919
931
|
{
|
|
920
932
|
title: "Grant Delegation",
|
|
921
|
-
description: "Grant a delegation to an app (consent on behalf of
|
|
933
|
+
description: "Grant a delegation to an app (consent on behalf of the calling user).",
|
|
922
934
|
inputSchema: {
|
|
923
935
|
appId: z.string().describe("App id receiving delegation"),
|
|
924
|
-
|
|
925
|
-
scopes: z.array(z.string()).optional(),
|
|
936
|
+
scopes: z.array(z.string()).min(1).describe("Delegated scopes (required)"),
|
|
926
937
|
workspaceIds: z.array(z.string()).optional(),
|
|
927
938
|
expiresAt: z.string().optional().describe("ISO expiry")
|
|
928
939
|
}
|
|
929
940
|
},
|
|
930
|
-
async ({ appId,
|
|
941
|
+
async ({ appId, scopes, workspaceIds, expiresAt }) => {
|
|
931
942
|
try {
|
|
932
|
-
const input = { appId,
|
|
943
|
+
const input = { appId, scopes };
|
|
933
944
|
if (scopes !== void 0) input.scopes = scopes;
|
|
934
945
|
if (workspaceIds !== void 0) input.workspaceIds = workspaceIds;
|
|
935
946
|
if (expiresAt !== void 0) input.expiresAt = expiresAt;
|