feat(mcp): add streamable http server and fine-grained authorization

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-08-31 22:56:16 +08:00
1 parent f725c50b2c
commit f075caef21
47 files changed
+4960 -509

No files matched your search

@@ -432,6 +432,8 @@ describe("normalizeMcpGlobalPolicy", () => {
readOnly: false,
allowDangerousSql: false,
allowedConnectionIds: null,
allowedToolNames: null,
connectionPolicies: [],
configured: false,
queryTimeoutSecs: null,
});
@@ -449,6 +451,8 @@ describe("normalizeMcpGlobalPolicy", () => {
readOnly: true,
allowDangerousSql: true,
allowedConnectionIds: ["connection-1", "connection-2"],
allowedToolNames: null,
connectionPolicies: [],
configured: true,
queryTimeoutSecs: null,
});
@@ -675,6 +679,8 @@ describe("settingsStore MCP policy persistence", () => {
readOnly: true,
allowDangerousSql: false,
allowedConnectionIds: ["connection-1"],
allowedToolNames: null,
connectionPolicies: [],
configured: true,
queryTimeoutSecs: null,
};
@@ -688,6 +694,8 @@ describe("settingsStore MCP policy persistence", () => {
readOnly: false,
allowDangerousSql: false,
allowedConnectionIds: [],
allowedToolNames: null,
connectionPolicies: [],
configured: true,
queryTimeoutSecs: null,
});