mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
feature/1.7-MCP
This commit is contained in:
@@ -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'] }]
|
||||
|
||||
@@ -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: '数据源',
|
||||
|
||||
Reference in New Issue
Block a user