25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(mcp): 显示并支持编辑隐藏的权限例外 (#11618)
zipgc80ef798e591
diff --git a/apps/desktop/src/components/settings/McpResourceScopePicker.vue b/apps/desktop/src/components/settings/McpResourceScopePicker.vueindex af12b9f1c8..02fc046316 100644--- a/apps/desktop/src/components/settings/McpResourceScopePicker.vue+++ b/apps/desktop/src/components/settings/McpResourceScopePicker.vue@@ -208,6 +208,28 @@ const visibleRows = computed(() => {return rows;});+// Exceptions survive visibility-scope changes. Keep an editor for every saved+// exception, even when its resource is unselected, collapsed, or filtered out.+const hiddenPolicyExceptions = computed(() => {+ const inlineEditors = new Set(scopeMode.value === "custom" ? visibleRows.value.filter((node) => (node.type === "group" ? selectedGroupIds.value.has(node.id) : explicitConnectionIds.value.has(node.id) || Boolean(selectedAncestor(node)))).map((node) => `${node.type}:${node.id}`) : []);+ const result: ResourceNode[] = [];+ const visit = (nodes: ResourceNode[]) => {+ for (const node of nodes) {+ const configured = node.type === "group" ? groupPolicyMode(node.id) !== "inherit" : connectionPolicyMode(node.id) !== "inherit" || (isSalesforceConnection(node) && props.connectionPolicies?.some((policy) => policy.connectionId === node.id && policy.allowSalesforceDml));+ if (configured && !inlineEditors.has(`${node.type}:${node.id}`)) result.push(node);+ if (node.type === "group") visit(node.children);+ }+ };+ visit(resourceTree.value);+ return result;+});++function exceptionInScope(node: ResourceNode): boolean {+ if (scopeMode.value === "all") return true;+ if (node.type === "connection") return effectiveConnectionIds.value.has(node.id);+ return selectedGroupIds.value.has(node.id) || descendants(node).connectionIds.some((id) => effectiveConnectionIds.value.has(id));+}+function copyCustomScope(groupIds: readonly string[], connectionIds: readonly string[] | null): { allowedGroupIds: string[]; allowedConnectionIds: string[] } {return { allowedGroupIds: [...groupIds], allowedConnectionIds: [...(connectionIds ?? [])] };}@@ -298,6 +320,36 @@ function connectionAllowsSalesforceDml(connectionId: string): boolean {</Button></div>+ <section v-if="hiddenPolicyExceptions.length" class="space-y-2 border-t p-3" :aria-label="t('settings.mcpPolicyExceptionsTitle')">+ <p class="text-xs font-medium">{{ t("settings.mcpPolicyExceptionsTitle") }}</p>+ <p class="text-[11px] text-muted-foreground">{{ t("settings.mcpPolicyExceptionsDescription") }}</p>+ <div class="max-h-80 space-y-2 overflow-auto">+ <div v-for="node in hiddenPolicyExceptions" :key="`${node.type}:${node.id}`" class="flex flex-wrap items-center gap-2 rounded-md border p-2 text-xs">+ <Folder v-if="node.type === 'group'" class="size-4 shrink-0 text-muted-foreground" />+ <Database v-else class="size-4 shrink-0 text-muted-foreground" />+ <span class="min-w-0 flex-1 break-words font-medium">{{ node.type === "group" ? node.pathNames.join(" / ") : node.connection.name }}</span>+ <Badge variant="secondary" class="rounded font-normal">{{ t(exceptionInScope(node) ? "settings.mcpPolicyExceptionInScope" : "settings.mcpPolicyExceptionOutsideScope") }}</Badge>+ <Select+ :model-value="node.type === 'group' ? groupPolicyMode(node.id) : connectionPolicyMode(node.id)"+ :disabled="disabled || busy"+ @update:model-value="(value) => (node.type === 'group' ? emit('set:group-policy', node.id, value as ExecutionMode | 'inherit') : emit('set:connection-policy', node.id, value as ExecutionMode | 'inherit'))"+ >+ <SelectTrigger size="sm" class="h-7 w-44 text-[11px]" :aria-label="node.type === 'group' ? node.pathNames.join(' / ') : node.connection.name"><SelectValue /></SelectTrigger>+ <SelectContent>+ <SelectItem value="inherit">{{ t("settings.mcpPolicyExceptionInherit") }}</SelectItem>+ <SelectItem value="read_only">{{ t("settings.mcpConnectionPolicyReadOnly") }}</SelectItem>+ <SelectItem value="safe_write">{{ t("settings.mcpConnectionPolicySafeWrite") }}</SelectItem>+ <SelectItem value="high_risk_write">{{ t("settings.mcpConnectionPolicyHighRiskWrite") }}</SelectItem>+ </SelectContent>+ </Select>+ <label v-if="isSalesforceConnection(node)" class="flex h-7 items-center gap-1 rounded border px-1.5 text-[11px]" :title="t('settings.mcpConnectionPolicyAllowSalesforceDmlHint')">+ <input type="checkbox" class="size-3" :checked="connectionAllowsSalesforceDml(node.id)" :disabled="disabled || busy" :aria-label="t('settings.mcpConnectionPolicyAllowSalesforceDml')" @change="emit('set:connection-salesforce-dml', node.id, ($event.target as HTMLInputElement).checked)" />+ {{ t("settings.mcpConnectionPolicyAllowSalesforceDml") }}+ </label>+ </div>+ </div>+ </section>+<template v-if="scopeMode === 'custom'"><div class="border-t p-2"><div class="relative">diff --git a/apps/desktop/src/components/settings/__tests__/McpResourceScopePicker.spec.ts b/apps/desktop/src/components/settings/__tests__/McpResourceScopePicker.spec.tsindex c5c9f7c77c..73674e67be 100644--- a/apps/desktop/src/components/settings/__tests__/McpResourceScopePicker.spec.ts+++ b/apps/desktop/src/components/settings/__tests__/McpResourceScopePicker.spec.ts@@ -1,7 +1,7 @@// @vitest-environment happy-domimport { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { dispatch, findAll, findOne, mountComponent } from "@/components/grid/__tests__/vueHostHarness";+import { dispatch, findAll, findOne, hostText, mountComponent } from "@/components/grid/__tests__/vueHostHarness";import type { ConnectionConfig, SidebarLayout } from "@/types/database";vi.mock("vue-i18n", () => ({@@ -237,3 +237,119 @@ describe("McpResourceScopePicker Salesforce DML opt-in", () => {expect(setDml).not.toHaveBeenCalled();});});++describe("issue #11503 persisted execution-policy visibility", () => {+ const policies = [{ connectionId: "c2", readOnly: false, allowDangerousSql: false, executionModeConfigured: true }];+ function safeWriteEditors(root: ReturnType<typeof mountComponent>["root"]) {+ return findAll(root, (node) => node.type === "div" && node.props["data-stub"] === "Select" && node.props["model-value"] === "safe_write");+ }++ it("detects the persisted editor when the connection is explicitly selected", () => {+ const { mounted } = mountPicker({ allowedConnectionIds: ["c2"], connectionPolicies: policies });+ expect(safeWriteEditors(mounted.root)).toHaveLength(1);+ mounted.unmount();+ });++ it("exposes a persisted safe-write exception in all-connections scope", () => {+ const { mounted } = mountPicker({ allowedConnectionIds: null, connectionPolicies: policies });+ expect(safeWriteEditors(mounted.root)).toHaveLength(1);+ mounted.unmount();+ });++ it("exposes a persisted exception after reopening and switching to custom without selecting it again", async () => {+ const { mounted, update } = mountPicker({ allowedConnectionIds: null, connectionPolicies: policies });+ dispatch(modeButton(mounted.root, "custom"), "click");+ expect(update).toHaveBeenCalledWith({ allowedGroupIds: [], allowedConnectionIds: [] });+ await mounted.setProps(update.mock.calls[0][0]);+ expect(safeWriteEditors(mounted.root)).toHaveLength(1);+ mounted.unmount();+ });++ it("edits and resets an exception without adding the connection to the visible scope", async () => {+ const setPolicy = vi.fn();+ const { mounted, update } = mountPicker({ allowedConnectionIds: [], connectionPolicies: policies, "onSet:connection-policy": setPolicy });+ const editor = safeWriteEditors(mounted.root)[0];+ expect(hostText(mounted.root)).toContain("settings.mcpPolicyExceptionOutsideScope");+ editor.props["onUpdate:modelValue"]("read_only");+ expect(setPolicy).toHaveBeenLastCalledWith("c2", "read_only");+ editor.props["onUpdate:modelValue"]("inherit");+ expect(setPolicy).toHaveBeenLastCalledWith("c2", "inherit");+ expect(update).not.toHaveBeenCalled();+ await mounted.setProps({ connectionPolicies: [] });+ expect(hostText(mounted.root)).not.toContain("settings.mcpPolicyExceptionsTitle");+ mounted.unmount();+ });++ it("keeps a collapsed group's connection exception visible and avoids duplicate editors after expansion", async () => {+ const { mounted } = mountPicker({ allowedGroupIds: ["g1"], connectionPolicies: [{ ...policies[0], connectionId: "c1" }] });+ expect(safeWriteEditors(mounted.root)).toHaveLength(1);+ expect(hostText(mounted.root)).toContain("settings.mcpPolicyExceptionInScope");+ const expand = findOne(mounted.root, (node) => node.type === "button" && node.props["aria-label"] === "Group 1");+ dispatch(expand, "click");+ await mounted.setProps({});+ expect(safeWriteEditors(mounted.root)).toHaveLength(1);+ expect(hostText(mounted.root)).not.toContain("settings.mcpPolicyExceptionsTitle");+ mounted.unmount();+ });++ it("keeps exceptions discoverable when the resource search filters out their inline editor", async () => {+ const { mounted } = mountPicker({ allowedConnectionIds: ["c2"], connectionPolicies: policies });+ const search = findOne(mounted.root, (node) => node.type === "input" && node.props.placeholder === "settings.mcpResourceScopeSearch");+ search.props["onUpdate:modelValue"]("no-such-resource");+ await mounted.setProps({});+ expect(safeWriteEditors(mounted.root)).toHaveLength(1);+ expect(hostText(mounted.root)).toContain("settings.mcpPolicyExceptionsTitle");+ mounted.unmount();+ });++ it("exposes and resets a nested group exception in all-connections scope", () => {+ const setPolicy = vi.fn();+ const { mounted, update } = mountPicker({+ allowedConnectionIds: null,+ layout: { groups: [...layout.groups, { id: "g2", name: "Nested", collapsed: false }], order: [{ type: "group", id: "g1", children: [{ type: "group", id: "g2", children: [{ type: "connection", id: "c1" }] }] }] },+ groupPolicies: [{ groupId: "g2", readOnly: false, allowDangerousSql: true }],+ "onSet:group-policy": setPolicy,+ });+ expect(hostText(mounted.root)).toContain("Group 1 / Nested");+ const editor = findOne(mounted.root, (node) => node.props["data-stub"] === "Select" && node.props["model-value"] === "high_risk_write");+ editor.props["onUpdate:modelValue"]("inherit");+ expect(setPolicy).toHaveBeenCalledWith("g2", "inherit");+ expect(update).not.toHaveBeenCalled();+ mounted.unmount();+ });++ it("ignores database-scope-only and deleted-resource rules", () => {+ const { mounted } = mountPicker({+ allowedConnectionIds: null,+ connectionPolicies: [+ { ...policies[0], executionModeConfigured: false },+ { ...policies[0], connectionId: "deleted" },+ ],+ groupPolicies: [{ groupId: "deleted", readOnly: false, allowDangerousSql: true }],+ });+ expect(hostText(mounted.root)).not.toContain("settings.mcpPolicyExceptionsTitle");+ mounted.unmount();+ });++ it.each([{ disabled: true }, { busy: true }])("disables exception editing with %j", (props) => {+ const { mounted } = mountPicker({ allowedConnectionIds: null, connectionPolicies: policies, ...props });+ expect(safeWriteEditors(mounted.root)[0].props.disabled).toBe(true);+ mounted.unmount();+ });++ it("exposes a saved Salesforce DML opt-in even without an execution-mode override", () => {+ const setDml = vi.fn();+ const { mounted, update } = mountPicker({+ allowedConnectionIds: null,+ connections: [connection("c1"), { ...connection("c2"), db_type: "salesforce" }],+ connectionPolicies: [{ ...policies[0], executionModeConfigured: false, allowSalesforceDml: true }],+ "onSet:connection-salesforce-dml": setDml,+ });+ const checkbox = salesforceDmlCheckboxes(mounted.root)[0];+ expect(checkbox.props.checked).toBe(true);+ dispatch(checkbox, "change", { target: { checked: false } });+ expect(setDml).toHaveBeenCalledWith("c2", false);+ expect(update).not.toHaveBeenCalled();+ mounted.unmount();+ });+});diff --git a/apps/desktop/src/i18n/locales/az.ts b/apps/desktop/src/i18n/locales/az.tsindex aab9ca6c1b..73741ea765 100644--- a/apps/desktop/src/i18n/locales/az.ts+++ b/apps/desktop/src/i18n/locales/az.ts@@ -8215,6 +8215,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Əvvəlki",mcpAuthNextStep: "Növbəti",mcpAuthStepProgress: "Addım {current}/{total}",+ mcpPolicyExceptionsTitle: "Saxlanılmış icazə istisnaları",+ mcpPolicyExceptionsDescription: "Bağlantı əhatəsinin dəyişdirilməsi icazə istisnalarını saxlayır. Əhatə daxilindəki istisnalar qüvvədə qalır; əhatədən kənardakı istisnalar bağlantı əhatəyə qayıtdıqda tətbiq olunur. Burada icra icazələrini dəyişə və ya irsi icazələri bərpa edə bilərsiniz.",+ mcpPolicyExceptionInScope: "Cari əhatə daxilində",+ mcpPolicyExceptionOutsideScope: "Cari əhatədən kənarda (saxlanılıb)",+ mcpPolicyExceptionInherit: "Üst səviyyənin icazələrini miras al",mcpResourceScopeTitle: "MCP-yə görünən əlaqələr",mcpResourceScopeDescription: "Dinamik əhatə üçün qrupları, dəqiq istisnalar üçün isə ayrıca əlaqələri seçin.",mcpResourceScopeModeCustom: "Fərdi əhatə",diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.tsindex c234268f28..94bf93e124 100644--- a/apps/desktop/src/i18n/locales/en.ts+++ b/apps/desktop/src/i18n/locales/en.ts@@ -9307,6 +9307,11 @@ export default {mcpAuthPreviousStep: "Previous",mcpAuthNextStep: "Next",mcpAuthStepProgress: "Step {current} of {total}",+ mcpPolicyExceptionsTitle: "Saved permission exceptions",+ mcpPolicyExceptionsDescription: "Changing the connection scope preserves permission exceptions. Exceptions inside the scope remain effective; those outside apply when the connection returns to the scope. You can edit execution permissions or restore inherited permissions here.",+ mcpPolicyExceptionInScope: "Inside current scope",+ mcpPolicyExceptionOutsideScope: "Outside current scope (saved)",+ mcpPolicyExceptionInherit: "Inherit parent permissions",mcpResourceScopeTitle: "Connections visible to MCP",mcpResourceScopeDescription: "Select groups for dynamic coverage and individual connections for precise exceptions.",mcpResourceScopeModeCustom: "Custom scope",diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.tsindex d00d9adaca..2e3c2c9ef4 100644--- a/apps/desktop/src/i18n/locales/es.ts+++ b/apps/desktop/src/i18n/locales/es.ts@@ -8542,6 +8542,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Anterior",mcpAuthNextStep: "Siguiente",mcpAuthStepProgress: "Paso {current} de {total}",+ mcpPolicyExceptionsTitle: "Excepciones de permisos guardadas",+ mcpPolicyExceptionsDescription: "Cambiar el ámbito de conexiones conserva las excepciones de permisos. Las excepciones dentro del ámbito siguen vigentes; las demás se aplican cuando la conexión vuelve al ámbito. Aquí puede editar los permisos de ejecución o restaurar los permisos heredados.",+ mcpPolicyExceptionInScope: "Dentro del ámbito actual",+ mcpPolicyExceptionOutsideScope: "Fuera del ámbito actual (guardada)",+ mcpPolicyExceptionInherit: "Heredar permisos superiores",mcpResourceScopeTitle: "Conexiones visibles para MCP",mcpResourceScopeDescription: "Selecciona grupos para una cobertura dinámica y conexiones individuales para excepciones precisas.",mcpResourceScopeModeCustom: "Ámbito personalizado",diff --git a/apps/desktop/src/i18n/locales/id.ts b/apps/desktop/src/i18n/locales/id.tsindex ecd411a40e..1b40be5669 100644--- a/apps/desktop/src/i18n/locales/id.ts+++ b/apps/desktop/src/i18n/locales/id.ts@@ -9011,6 +9011,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Sebelumnya",mcpAuthNextStep: "Berikutnya",mcpAuthStepProgress: "Langkah {current} dari {total}",+ mcpPolicyExceptionsTitle: "Pengecualian izin tersimpan",+ mcpPolicyExceptionsDescription: "Mengubah cakupan koneksi mempertahankan pengecualian izin. Pengecualian dalam cakupan tetap berlaku; pengecualian di luar cakupan berlaku saat koneksi kembali ke cakupan. Anda dapat mengedit izin eksekusi atau memulihkan izin yang diwarisi di sini.",+ mcpPolicyExceptionInScope: "Dalam cakupan saat ini",+ mcpPolicyExceptionOutsideScope: "Di luar cakupan saat ini (tersimpan)",+ mcpPolicyExceptionInherit: "Warisi izin induk",mcpResourceScopeTitle: "Koneksi yang terlihat oleh MCP",mcpResourceScopeDescription: "Pilih grup untuk cakupan dinamis dan koneksi tertentu untuk pengecualian yang tepat.",mcpResourceScopeModeCustom: "Cakupan kustom",diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.tsindex 5b500d674b..56395c4c83 100644--- a/apps/desktop/src/i18n/locales/it.ts+++ b/apps/desktop/src/i18n/locales/it.ts@@ -8291,6 +8291,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Indietro",mcpAuthNextStep: "Avanti",mcpAuthStepProgress: "Passaggio {current} di {total}",+ mcpPolicyExceptionsTitle: "Eccezioni ai permessi salvate",+ mcpPolicyExceptionsDescription: "La modifica dell’ambito delle connessioni conserva le eccezioni ai permessi. Le eccezioni nell’ambito restano attive; le altre si applicano quando la connessione rientra nell’ambito. Qui puoi modificare i permessi di esecuzione o ripristinare quelli ereditati.",+ mcpPolicyExceptionInScope: "Nell’ambito attuale",+ mcpPolicyExceptionOutsideScope: "Fuori dall’ambito attuale (salvata)",+ mcpPolicyExceptionInherit: "Eredita i permessi superiori",mcpResourceScopeTitle: "Connessioni visibili a MCP",mcpResourceScopeDescription: "Seleziona gruppi per una copertura dinamica e singole connessioni per eccezioni precise.",mcpResourceScopeModeCustom: "Ambito personalizzato",diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.tsindex 6c007c4e0f..5c7ac371ea 100644--- a/apps/desktop/src/i18n/locales/ja.ts+++ b/apps/desktop/src/i18n/locales/ja.ts@@ -8282,6 +8282,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "前へ",mcpAuthNextStep: "次へ",mcpAuthStepProgress: "ステップ {current} / {total}",+ mcpPolicyExceptionsTitle: "保存された権限の例外",+ mcpPolicyExceptionsDescription: "接続範囲を変更しても権限の例外は保持されます。範囲内の例外は引き続き有効で、範囲外の例外は接続が範囲に戻ると適用されます。ここで実行権限を変更したり、継承する権限に戻したりできます。",+ mcpPolicyExceptionInScope: "現在の範囲内",+ mcpPolicyExceptionOutsideScope: "現在の範囲外(保存済み)",+ mcpPolicyExceptionInherit: "上位の権限を継承",mcpResourceScopeTitle: "MCP から表示する接続",mcpResourceScopeDescription: "動的な範囲にはグループを、個別の例外には接続を選択します。",mcpResourceScopeModeCustom: "カスタム範囲",diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.tsindex 891e18796a..db68031a31 100644--- a/apps/desktop/src/i18n/locales/ko.ts+++ b/apps/desktop/src/i18n/locales/ko.ts@@ -8139,6 +8139,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "이전",mcpAuthNextStep: "다음",mcpAuthStepProgress: "{total}단계 중 {current}단계",+ mcpPolicyExceptionsTitle: "저장된 권한 예외",+ mcpPolicyExceptionsDescription: "연결 범위를 변경해도 권한 예외는 유지됩니다. 범위 안의 예외는 계속 유효하며, 범위 밖의 예외는 연결이 범위에 다시 포함되면 적용됩니다. 여기서 실행 권한을 수정하거나 상속된 권한으로 되돌릴 수 있습니다.",+ mcpPolicyExceptionInScope: "현재 범위 안",+ mcpPolicyExceptionOutsideScope: "현재 범위 밖 (저장됨)",+ mcpPolicyExceptionInherit: "상위 권한 상속",mcpResourceScopeTitle: "MCP에 표시되는 연결",mcpResourceScopeDescription: "동적 범위에는 그룹을 선택하고 정확한 예외에는 개별 연결을 선택하세요.",mcpResourceScopeModeCustom: "사용자 지정 범위",diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.tsindex 2d2508e157..9483a05e0a 100644--- a/apps/desktop/src/i18n/locales/pt-BR.ts+++ b/apps/desktop/src/i18n/locales/pt-BR.ts@@ -8289,6 +8289,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Voltar",mcpAuthNextStep: "Avançar",mcpAuthStepProgress: "Etapa {current} de {total}",+ mcpPolicyExceptionsTitle: "Exceções de permissões salvas",+ mcpPolicyExceptionsDescription: "Alterar o escopo das conexões preserva as exceções de permissões. As exceções dentro do escopo continuam ativas; as demais se aplicam quando a conexão retorna ao escopo. Aqui você pode editar as permissões de execução ou restaurar as permissões herdadas.",+ mcpPolicyExceptionInScope: "Dentro do escopo atual",+ mcpPolicyExceptionOutsideScope: "Fora do escopo atual (salva)",+ mcpPolicyExceptionInherit: "Herdar permissões superiores",mcpResourceScopeTitle: "Conexões visíveis ao MCP",mcpResourceScopeDescription: "Selecione grupos para cobertura dinâmica e conexões individuais para exceções precisas.",mcpResourceScopeModeCustom: "Escopo personalizado",diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.tsindex f37fd55182..68d2a645c8 100644--- a/apps/desktop/src/i18n/locales/ru.ts+++ b/apps/desktop/src/i18n/locales/ru.ts@@ -9591,6 +9591,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Назад",mcpAuthNextStep: "Далее",mcpAuthStepProgress: "Шаг {current} из {total}",+ mcpPolicyExceptionsTitle: "Сохранённые исключения разрешений",+ mcpPolicyExceptionsDescription: "При изменении области подключений исключения разрешений сохраняются. Внутри области они остаются действующими; вне области они применяются при возвращении подключения. Здесь можно изменить разрешения на выполнение или восстановить наследуемые разрешения.",+ mcpPolicyExceptionInScope: "В текущей области",+ mcpPolicyExceptionOutsideScope: "Вне текущей области (сохранено)",+ mcpPolicyExceptionInherit: "Наследовать разрешения родителя",mcpResourceScopeTitle: "Подключения, видимые для MCP",mcpResourceScopeDescription: "Выберите группы для динамического охвата и отдельные подключения для точных исключений.",mcpResourceScopeModeCustom: "Своя область",diff --git a/apps/desktop/src/i18n/locales/tr.ts b/apps/desktop/src/i18n/locales/tr.tsindex 1968871184..36d9534e73 100644--- a/apps/desktop/src/i18n/locales/tr.ts+++ b/apps/desktop/src/i18n/locales/tr.ts@@ -8115,6 +8115,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "Geri",mcpAuthNextStep: "İleri",mcpAuthStepProgress: "{total} adımdan {current}. adım",+ mcpPolicyExceptionsTitle: "Kaydedilen izin istisnaları",+ mcpPolicyExceptionsDescription: "Bağlantı kapsamını değiştirmek izin istisnalarını korur. Kapsamdaki istisnalar geçerli kalır; kapsam dışındakiler bağlantı kapsama döndüğünde uygulanır. Burada yürütme izinlerini düzenleyebilir veya devralınan izinleri geri yükleyebilirsiniz.",+ mcpPolicyExceptionInScope: "Geçerli kapsam içinde",+ mcpPolicyExceptionOutsideScope: "Geçerli kapsam dışında (kaydedildi)",+ mcpPolicyExceptionInherit: "Üst düzey izinleri devral",mcpResourceScopeTitle: "MCP'ye görünür bağlantılar",mcpResourceScopeDescription: "Dinamik kapsam için grupları, hassas istisnalar için tek tek bağlantıları seçin.",mcpResourceScopeModeCustom: "Özel kapsam",diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.tsindex 336804e08d..a33d893bed 100644--- a/apps/desktop/src/i18n/locales/zh-CN.ts+++ b/apps/desktop/src/i18n/locales/zh-CN.ts@@ -9293,6 +9293,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "上一步",mcpAuthNextStep: "下一步",mcpAuthStepProgress: "第 {current} 步,共 {total} 步",+ mcpPolicyExceptionsTitle: "已保存的权限例外",+ mcpPolicyExceptionsDescription: "切换连接范围会保留权限例外。范围内的例外仍然生效;范围外的例外会在连接重新进入范围后生效。可直接修改执行权限,或恢复继承上级权限。",+ mcpPolicyExceptionInScope: "当前范围内",+ mcpPolicyExceptionOutsideScope: "当前范围外(保留)",+ mcpPolicyExceptionInherit: "继承上级权限",mcpResourceScopeTitle: "MCP 可见的连接",mcpResourceScopeDescription: "选择分组可动态覆盖其下连接,也可单独选择连接作为精确例外。",mcpResourceScopeModeCustom: "自定义范围",diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.tsindex 63e788ef8f..5c4ed409d9 100644--- a/apps/desktop/src/i18n/locales/zh-TW.ts+++ b/apps/desktop/src/i18n/locales/zh-TW.ts@@ -7676,6 +7676,11 @@ export default withEnglishFallback({mcpAuthPreviousStep: "上一步",mcpAuthNextStep: "下一步",mcpAuthStepProgress: "第 {current} 步,共 {total} 步",+ mcpPolicyExceptionsTitle: "已儲存的權限例外",+ mcpPolicyExceptionsDescription: "切換連線範圍會保留權限例外。範圍內的例外仍然生效;範圍外的例外會在連線重新進入範圍後生效。可直接修改執行權限,或恢復繼承上層權限。",+ mcpPolicyExceptionInScope: "目前範圍內",+ mcpPolicyExceptionOutsideScope: "目前範圍外(保留)",+ mcpPolicyExceptionInherit: "繼承上層權限",mcpResourceScopeTitle: "MCP 可見的連線",mcpResourceScopeDescription: "選擇群組可動態涵蓋其下連線,也可單獨選擇連線作為精確例外。",mcpResourceScopeModeCustom: "自訂範圍",diff --git a/docs/screenshots/issue-11503-all.jpg b/docs/screenshots/issue-11503-all.jpgnew file mode 100644index 0000000000..991e1a107eBinary files /dev/null and b/docs/screenshots/issue-11503-all.jpg differdiff --git a/docs/screenshots/issue-11503-before.jpg b/docs/screenshots/issue-11503-before.jpgnew file mode 100644index 0000000000..d0bc868759Binary files /dev/null and b/docs/screenshots/issue-11503-before.jpg differdiff --git a/docs/screenshots/issue-11503-custom.jpg b/docs/screenshots/issue-11503-custom.jpgnew file mode 100644index 0000000000..8f6a33c29eBinary files /dev/null and b/docs/screenshots/issue-11503-custom.jpg differ