diff --git a/src/api/ai/model/chatRole/index.ts b/src/api/ai/model/chatRole/index.ts
index 6c5511a54..ffdd3050d 100644
--- a/src/api/ai/model/chatRole/index.ts
+++ b/src/api/ai/model/chatRole/index.ts
@@ -15,6 +15,7 @@ export interface ChatRoleVO {
status: number // 状态
knowledgeIds?: number[] // 引用的知识库 ID 列表
toolIds?: number[] // 引用的工具 ID 列表
+ mcpClientNames?: string[] // 引用的 MCP Client 名字列表
}
// AI 聊天角色 分页请求 vo
@@ -57,26 +58,26 @@ export const ChatRoleApi = {
// 获取 my role
getMyPage: async (params: ChatRolePageReqVO) => {
- return await request.get({ url: `/ai/chat-role/my-page`, params})
+ return await request.get({ url: `/ai/chat-role/my-page`, params })
},
// 获取角色分类
getCategoryList: async () => {
- return await request.get({ url: `/ai/chat-role/category-list`})
+ return await request.get({ url: `/ai/chat-role/category-list` })
},
// 创建角色
createMy: async (data: ChatRoleVO) => {
- return await request.post({ url: `/ai/chat-role/create-my`, data})
+ return await request.post({ url: `/ai/chat-role/create-my`, data })
},
// 更新角色
updateMy: async (data: ChatRoleVO) => {
- return await request.put({ url: `/ai/chat-role/update-my`, data})
+ return await request.put({ url: `/ai/chat-role/update-my`, data })
},
// 删除角色 my
deleteMy: async (id: number) => {
return await request.delete({ url: `/ai/chat-role/delete-my?id=` + id })
- },
+ }
}
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 947f9f31a..41128562d 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -227,6 +227,7 @@ export enum DICT_TYPE {
AI_WRITE_FORMAT = 'ai_write_format', // AI 写作格式
AI_WRITE_TONE = 'ai_write_tone', // AI 写作语气
AI_WRITE_LANGUAGE = 'ai_write_language', // AI 写作语言
+ AI_MCP_CLIENT_NAME = 'ai_mcp_client_name', // AI MCP Client 名字
// ========== IOT - 物联网模块 ==========
IOT_NET_TYPE = 'iot_net_type', // IOT 联网方式
diff --git a/src/views/ai/model/chatRole/ChatRoleForm.vue b/src/views/ai/model/chatRole/ChatRoleForm.vue
index ebfd600c7..8f5c0ef52 100644
--- a/src/views/ai/model/chatRole/ChatRoleForm.vue
+++ b/src/views/ai/model/chatRole/ChatRoleForm.vue
@@ -47,6 +47,16 @@
+
+
+
+
+