Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/views/knowledge-detail/external-retrieval/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ watch([knowledgeId, () => resourceApi.externalRetrieval], loadExternalRetrieval,
</section>

<section>
<div class="mb-2">MCP 配置详情</div>
<div class="mb-2">MCP 服务配置</div>
<div class="group relative">
<el-input :model-value="mcpConfig" readonly :autosize="{ minRows: 8, maxRows: 24 }" type="textarea" />
<!-- 复制 MCP 配置 -->
Expand Down
4 changes: 2 additions & 2 deletions ui/src/views/knowledge/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ function handleBatchDelete() {
:api="KnowledgeApi"
:knowledge="knowledge"
/>
<!-- MCP 配置详情 -->
<!-- MCP 服务配置 -->
<McpConfigKnowledgeAction
v-model:loading="knowledgeOperationLoading"
label="MCP 配置详情"
label="MCP 服务配置"
:api="KnowledgeApi"
:knowledge="knowledge"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const props = defineProps<{
}>()
const loading = defineModel<boolean>('loading', { default: false })

/* 知识库 MCP 配置详情 */
/* 知识库 MCP 服务配置 */
const visible = ref(false)
const config = ref('')
const canRead = () => isSystemResource() ? perm.knowledge.system.mcpConfig() : !isWorkspaceResource() || perm.knowledge.workspace.mcpConfig(props.knowledge.id)
Expand All @@ -42,13 +42,13 @@ function handleDialogClosed() {
</script>

<template>
<!-- 查看 MCP 配置详情 -->
<!-- 查看 MCP 服务配置 -->
<MkDropdownItem v-if="canRead()" :disabled="loading" @click.stop="handleOpenMcpConfig">
<template #icon><MkIcon name="icon_describe_outlined" /></template>
<span>{{ label }}</span>
</MkDropdownItem>

<MkDialog v-model="visible" title="MCP 配置详情" @closed="handleDialogClosed">
<MkDialog v-model="visible" title="MCP 服务配置" @closed="handleDialogClosed">
<div class="group relative">
<el-input v-model="config" readonly :autosize="{ minRows: 8, maxRows: 24 }" type="textarea" />
<!-- 复制 MCP 配置 -->
Expand Down
3 changes: 3 additions & 0 deletions ui/src/views/system/resource-management/application/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
PortalApplicationAction,
DeleteApplicationAction,
TriggerApplicationAction,
McpConfigApplicationAction,
} from '@/views/application/application-card/action-dropdown'
import perm from '@/permission'

Expand Down Expand Up @@ -184,6 +185,8 @@ onMounted(() => {
<AuthorizeApplicationAction v-if="perm.application.system.auth()" label="资源授权" :application="row" />
<!-- 智能体触发器 -->
<TriggerApplicationAction v-if="perm.application.system.triggerRead()" label="触发器" :api="SystemResourceTriggerApi" :application="row" />
<!-- MCP 服务配置 -->
<McpConfigApplicationAction label="MCP 服务配置" :application="row" />
<!-- 门户上下架 -->
<PortalApplicationAction
v-model:loading="operationLoading"
Expand Down
4 changes: 2 additions & 2 deletions ui/src/views/system/resource-management/knowledge/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ onMounted(() => {
:api="SystemResourceKnowledgeApi"
:knowledge="row"
/>
<!-- MCP 配置详情 -->
<!-- MCP 服务配置 -->
<McpConfigKnowledgeAction
v-model:loading="knowledgeOperationLoading"
label="MCP 配置详情"
label="MCP 服务配置"
:api="SystemResourceKnowledgeApi"
:knowledge="row"
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/system/resource-management/tool/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ onMounted(() => {
<McpConfigAction
v-if="row.tool_type === TOOL_TYPE.MCP"
v-model:loading="operationLoading"
label="MCP 配置详情"
label="MCP 服务配置"
:api="SystemToolApi"
:tool="row"
/>
Expand Down
4 changes: 2 additions & 2 deletions ui/src/views/system/shared-resources/knowledge/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ function handleSearchChange(query?: Dict<unknown>) {
:api="SystemSharedKnowledgeApi"
:knowledge="knowledge"
/>
<!-- MCP 配置详情 -->
<!-- MCP 服务配置 -->
<McpConfigKnowledgeAction
v-model:loading="knowledgeOperationLoading"
label="MCP 配置详情"
label="MCP 服务配置"
:api="SystemSharedKnowledgeApi"
:knowledge="knowledge"
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/system/shared-resources/tool/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function handleOpenWorkflow(tool: ToolItem, event: MouseEvent) {
<McpConfigAction
v-if="tool.tool_type === TOOL_TYPE.MCP"
v-model:loading="toolOperationLoading"
label="MCP 配置详情"
label="MCP 服务配置"
:api="SystemSharedToolApi"
:tool="tool"
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/tool/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ onMounted(() => {
<McpConfigAction
v-if="tool.tool_type === TOOL_TYPE.MCP"
v-model:loading="toolOperationLoading"
label="MCP 配置详情"
label="MCP 服务配置"
:api="ToolApi"
:tool="tool"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function handleDialogClosed() {
<span>{{ label }}</span>
</MkDropdownItem>

<MkDialog v-model="visible" title="MCP 配置详情" @closed="handleDialogClosed">
<MkDialog v-model="visible" title="MCP 服务配置" @closed="handleDialogClosed">
<div class="group relative">
<el-input v-model="config" readonly :autosize="{ minRows: 8, maxRows: 24 }" type="textarea" />
<!-- 复制 MCP 配置 -->
Expand Down
Loading