From 963c1463a819d5eccf548fe12b413775f8fb13c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= Date: Mon, 2 Nov 2026 22:16:53 +0800 Subject: [PATCH] fix: update MCP access permissions and improve titles in routing (#14281) --- frontend/src/lang/modules/en.ts | 2 ++ frontend/src/lang/modules/es-es.ts | 2 ++ frontend/src/lang/modules/fa.ts | 2 ++ frontend/src/lang/modules/ja.ts | 2 ++ frontend/src/lang/modules/ko.ts | 2 ++ frontend/src/lang/modules/lo.ts | 2 ++ frontend/src/lang/modules/ms.ts | 2 ++ frontend/src/lang/modules/pt-br.ts | 2 ++ frontend/src/lang/modules/ru.ts | 2 ++ frontend/src/lang/modules/tr.ts | 2 ++ frontend/src/lang/modules/zh-Hant.ts | 2 ++ frontend/src/lang/modules/zh.ts | 2 ++ frontend/src/routers/modules/ai.ts | 6 +++--- frontend/src/views/ai/mcp/index.vue | 12 ++++++------ 14 files changed, 33 insertions(+), 9 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 7d446aa26..28b398d7c 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1810,6 +1810,8 @@ const message = { }, }, panelMCP: { + accessTitle: '1Panel MCP Access', + servicesTitle: 'MCP Services', websiteCancelPendingBind: 'Cancel binding', websiteBinding: 'Website binding', websiteBind: 'Bind website', diff --git a/frontend/src/lang/modules/es-es.ts b/frontend/src/lang/modules/es-es.ts index 2e751e20b..3046558dc 100644 --- a/frontend/src/lang/modules/es-es.ts +++ b/frontend/src/lang/modules/es-es.ts @@ -1825,6 +1825,8 @@ const message = { }, }, panelMCP: { + accessTitle: 'Acceso a 1Panel MCP', + servicesTitle: 'Servicios MCP', websiteCancelPendingBind: 'Cancelar vinculación', websiteBinding: 'Vinculación de sitio web', websiteBind: 'Vincular sitio web', diff --git a/frontend/src/lang/modules/fa.ts b/frontend/src/lang/modules/fa.ts index 4f6214dd2..ed74d34b3 100644 --- a/frontend/src/lang/modules/fa.ts +++ b/frontend/src/lang/modules/fa.ts @@ -1789,6 +1789,8 @@ const message = { }, }, panelMCP: { + accessTitle: 'دسترسی به 1Panel MCP', + servicesTitle: 'سرویس‌های MCP', websiteCancelPendingBind: 'لغو اتصال', websiteBinding: 'اتصال وب‌سایت', websiteBind: 'اتصال وب‌سایت', diff --git a/frontend/src/lang/modules/ja.ts b/frontend/src/lang/modules/ja.ts index 03c3b77c7..c236cd502 100644 --- a/frontend/src/lang/modules/ja.ts +++ b/frontend/src/lang/modules/ja.ts @@ -1793,6 +1793,8 @@ const message = { }, }, panelMCP: { + accessTitle: '1Panel MCP 接続', + servicesTitle: 'MCP サービス', websiteCancelPendingBind: '関連付けを取り消す', websiteBinding: 'ウェブサイトの関連付け', websiteBind: 'ウェブサイトを関連付け', diff --git a/frontend/src/lang/modules/ko.ts b/frontend/src/lang/modules/ko.ts index 87a6f1a90..05207ef95 100644 --- a/frontend/src/lang/modules/ko.ts +++ b/frontend/src/lang/modules/ko.ts @@ -1775,6 +1775,8 @@ const message = { }, }, panelMCP: { + accessTitle: '1Panel MCP 연결', + servicesTitle: 'MCP 서비스', websiteCancelPendingBind: '연결 취소', websiteBinding: '웹사이트 연결', websiteBind: '웹사이트 연결', diff --git a/frontend/src/lang/modules/lo.ts b/frontend/src/lang/modules/lo.ts index 74764494c..69d92c67b 100644 --- a/frontend/src/lang/modules/lo.ts +++ b/frontend/src/lang/modules/lo.ts @@ -1765,6 +1765,8 @@ const message = { }, }, panelMCP: { + accessTitle: 'ການເຂົ້າເຖິງ 1Panel MCP', + servicesTitle: 'ບໍລິການ MCP', websiteCancelPendingBind: 'ຍົກເລີກການຜູກ', websiteBinding: 'ການຜູກເວັບໄຊ', websiteBind: 'ຜູກເວັບໄຊ', diff --git a/frontend/src/lang/modules/ms.ts b/frontend/src/lang/modules/ms.ts index abd622cff..2b1eaaabf 100644 --- a/frontend/src/lang/modules/ms.ts +++ b/frontend/src/lang/modules/ms.ts @@ -1823,6 +1823,8 @@ const message = { }, }, panelMCP: { + accessTitle: 'Akses 1Panel MCP', + servicesTitle: 'Perkhidmatan MCP', websiteCancelPendingBind: 'Batalkan pautan', websiteBinding: 'Pautan laman web', websiteBind: 'Pautkan laman web', diff --git a/frontend/src/lang/modules/pt-br.ts b/frontend/src/lang/modules/pt-br.ts index dc4fd70d7..80f423c81 100644 --- a/frontend/src/lang/modules/pt-br.ts +++ b/frontend/src/lang/modules/pt-br.ts @@ -1824,6 +1824,8 @@ const message = { }, }, panelMCP: { + accessTitle: 'Acesso ao 1Panel MCP', + servicesTitle: 'Serviços MCP', websiteCancelPendingBind: 'Cancelar vinculação', websiteBinding: 'Vinculação de site', websiteBind: 'Vincular site', diff --git a/frontend/src/lang/modules/ru.ts b/frontend/src/lang/modules/ru.ts index d1ad22b98..4e47ad3d6 100644 --- a/frontend/src/lang/modules/ru.ts +++ b/frontend/src/lang/modules/ru.ts @@ -1813,6 +1813,8 @@ const message = { }, }, panelMCP: { + accessTitle: 'Подключение к 1Panel MCP', + servicesTitle: 'Сервисы MCP', websiteCancelPendingBind: 'Отменить привязку', websiteBinding: 'Привязка сайта', websiteBind: 'Привязать сайт', diff --git a/frontend/src/lang/modules/tr.ts b/frontend/src/lang/modules/tr.ts index f05667ab9..2edf7cc90 100644 --- a/frontend/src/lang/modules/tr.ts +++ b/frontend/src/lang/modules/tr.ts @@ -1819,6 +1819,8 @@ const message = { }, }, panelMCP: { + accessTitle: '1Panel MCP Erişimi', + servicesTitle: 'MCP Hizmetleri', websiteCancelPendingBind: 'Bağlamayı iptal et', websiteBinding: 'Web sitesi bağlama', websiteBind: 'Web sitesi bağla', diff --git a/frontend/src/lang/modules/zh-Hant.ts b/frontend/src/lang/modules/zh-Hant.ts index c08c809a9..92c716070 100644 --- a/frontend/src/lang/modules/zh-Hant.ts +++ b/frontend/src/lang/modules/zh-Hant.ts @@ -1714,6 +1714,8 @@ const message = { }, }, panelMCP: { + accessTitle: '1Panel MCP 接入', + servicesTitle: 'MCP 服務', websiteCancelPendingBind: '取消綁定', websiteBinding: '網站綁定', websiteBind: '綁定網站', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index d87684b4c..e78d664d1 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1728,6 +1728,8 @@ const message = { }, }, panelMCP: { + accessTitle: '1Panel MCP 接入', + servicesTitle: 'MCP 服务', websiteCancelPendingBind: '取消绑定', websiteBinding: '网站绑定', websiteBind: '绑定网站', diff --git a/frontend/src/routers/modules/ai.ts b/frontend/src/routers/modules/ai.ts index 969750889..313590faf 100644 --- a/frontend/src/routers/modules/ai.ts +++ b/frontend/src/routers/modules/ai.ts @@ -81,7 +81,7 @@ const aiRouter = { { path: '/ai/mcp', name: 'MCPServer', - redirect: () => (GlobalStore().hasPermission('ai_mcp_view') ? '/ai/mcp/server' : '/ai/mcp/1panel'), + redirect: () => (GlobalStore().hasPermission('mcp_access_view') ? '/ai/mcp/1panel' : '/ai/mcp/server'), meta: { icon: 'p-mcp-menu', title: 'menu.mcp', @@ -94,7 +94,7 @@ const aiRouter = { hidden: true, component: () => import('@/views/ai/mcp/server/index.vue'), meta: { - title: 'menu.mcp', + title: 'panelMCP.servicesTitle', activeMenu: '/ai/mcp', permission: 'ai_mcp_view', }, @@ -105,7 +105,7 @@ const aiRouter = { hidden: true, component: () => import('@/views/ai/mcp/panel/index.vue'), meta: { - title: 'panelMCP.title', + title: 'panelMCP.accessTitle', activeMenu: '/ai/mcp', permission: 'mcp_access_view', }, diff --git a/frontend/src/views/ai/mcp/index.vue b/frontend/src/views/ai/mcp/index.vue index 7a14025ec..5412b04ba 100644 --- a/frontend/src/views/ai/mcp/index.vue +++ b/frontend/src/views/ai/mcp/index.vue @@ -8,14 +8,14 @@ import { computed } from 'vue'; const buttons = computed(() => [ { - label: i18n.global.t('menu.mcp'), - path: '/ai/mcp/server', - permission: 'ai_mcp_view', - }, - { - label: i18n.global.t('panelMCP.title'), + label: i18n.global.t('panelMCP.accessTitle'), path: '/ai/mcp/1panel', permission: 'mcp_access_view', }, + { + label: i18n.global.t('panelMCP.servicesTitle'), + path: '/ai/mcp/server', + permission: 'ai_mcp_view', + }, ]);