feat(mcp): add resource group scopes with permission inheritance

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-07 02:18:28 +08:00
1 parent 2eaf7f9914
commit 691ecd084b
31 files changed
+2398 -1047

No files matched your search

@@ -493,8 +493,10 @@ describe("normalizeMcpGlobalPolicy", () => {
readOnly: false,
allowDangerousSql: false,
allowedConnectionIds: null,
allowedGroupIds: [],
allowedToolNames: null,
connectionPolicies: [],
groupPolicies: [],
configured: false,
queryTimeoutSecs: null,
});
@@ -512,8 +514,10 @@ describe("normalizeMcpGlobalPolicy", () => {
readOnly: true,
allowDangerousSql: true,
allowedConnectionIds: ["connection-1", "connection-2"],
allowedGroupIds: [],
allowedToolNames: null,
connectionPolicies: [],
groupPolicies: [],
configured: true,
queryTimeoutSecs: null,
});
@@ -811,8 +815,10 @@ describe("settingsStore MCP policy persistence", () => {
readOnly: true,
allowDangerousSql: false,
allowedConnectionIds: ["connection-1"],
allowedGroupIds: [],
allowedToolNames: null,
connectionPolicies: [],
groupPolicies: [],
configured: true,
queryTimeoutSecs: null,
};
@@ -826,8 +832,10 @@ describe("settingsStore MCP policy persistence", () => {
readOnly: false,
allowDangerousSql: false,
allowedConnectionIds: [],
allowedGroupIds: [],
allowedToolNames: null,
connectionPolicies: [],
groupPolicies: [],
configured: true,
queryTimeoutSecs: null,
});