diff --git a/frontend/packages/common/src/const/permissions.ts b/frontend/packages/common/src/const/permissions.ts index 132f9641..8aad4cf5 100644 --- a/frontend/packages/common/src/const/permissions.ts +++ b/frontend/packages/common/src/const/permissions.ts @@ -254,6 +254,21 @@ export const PERMISSION_DEFINITION = [ anyOf: [{ backend: ['system.settings.ai_balance.manager'] }] } }, + 'system.settings.mcp.manager': { + granted: { + anyOf: [{ backend: ['system.settings.mcp.manager'] }] + } + }, + 'system.settings.mcp.view': { + granted: { + anyOf: [{ backend: ['system.settings.mcp.view'] }] + } + }, + 'system.settings.apikey.view': { + granted: { + anyOf: [{ backend: ['system.settings.apikey.view'] }] + } + }, 'system.devops.policy.view': { granted: { anyOf: [{ backend: ['system.settings.strategy.view'] }] diff --git a/frontend/packages/common/src/contexts/GlobalStateContext.tsx b/frontend/packages/common/src/contexts/GlobalStateContext.tsx index 99087cd1..6e60c5db 100644 --- a/frontend/packages/common/src/contexts/GlobalStateContext.tsx +++ b/frontend/packages/common/src/contexts/GlobalStateContext.tsx @@ -201,14 +201,14 @@ const mockData = [ key: 'mcpService', path: '/mcpService', icon: 'ph:network-x', - access: '' + access: 'system.settings.mcp.view' }, { name: 'API Key', key: 'mcpKey', path: '/mcpKey', icon: 'material-symbols:key', - access: '' + access: 'system.settings.apikey.view' }, { name: '数据源',