@cloudbase/cloudbase-mcp 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/tools/rag.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -547,7 +547,7 @@ AI 会自动:
|
|
|
547
547
|
| deleteFunctionTrigger | 删除云函数触发器 |
|
|
548
548
|
| downloadRemoteFile | 下载远程文件到本地临时文件 |
|
|
549
549
|
| uploadFile | 上传文件到云存储(适合存储业务数据文件) |
|
|
550
|
-
|
|
|
550
|
+
| searchKnowledgeBase | 智能检索云开发知识库(支持云开发与云函数),通过向量搜索快速获取专业文档与答案。|
|
|
551
551
|
|
|
552
552
|
## 🏗️ 架构原理
|
|
553
553
|
|
package/dist/tools/rag.js
CHANGED
|
@@ -34,7 +34,7 @@ function safeStringify(obj) {
|
|
|
34
34
|
}
|
|
35
35
|
export function registerRagTools(server) {
|
|
36
36
|
// 知识库检索
|
|
37
|
-
server.tool('
|
|
37
|
+
server.tool('searchKnowledgeBase', '云开发知识库智能检索工具,支持云开发与云函数知识的向量查询', {
|
|
38
38
|
threshold: z.number().default(0.5).optional().describe("相似性检索阈值"),
|
|
39
39
|
id: KnowledgeBaseEnum.describe("知识库范围,cloudbase=云开发全量知识,scf=云开发的云函数知识"),
|
|
40
40
|
content: z.string().describe("检索内容"),
|