From 3162c9227f98fe882901ec7e795519535e1e305d Mon Sep 17 00:00:00 2001 From: Hongyu Shi Date: Wed, 10 Sep 2025 14:46:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=20chore:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=87=B3=200.10.1=EF=BC=8C=E7=AE=80=E5=8C=96=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=99=A8=E5=91=BD=E4=BB=A4=E4=B8=BA=20oi-manager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hongyu Shi --- distribution/linux/euler-copilot-shell.spec | 12 +++-- ...50\347\275\262\346\211\213\345\206\214.md" | 54 +++++++++++-------- 2 files changed, 41 insertions(+), 25 deletions(-) diff --git a/distribution/linux/euler-copilot-shell.spec b/distribution/linux/euler-copilot-shell.spec index bf3a333..0ea8d57 100644 --- a/distribution/linux/euler-copilot-shell.spec +++ b/distribution/linux/euler-copilot-shell.spec @@ -3,8 +3,8 @@ %global debug_package %{nil} Name: euler-copilot-shell -Version: 0.10.0 -Release: 4%{?dist} +Version: 0.10.1 +Release: 1%{?dist} Summary: openEuler Intelligence 智能命令行工具集 License: MulanPSL-2.0 URL: https://gitee.com/openeuler/euler-copilot-shell @@ -84,7 +84,7 @@ cp -r scripts/deploy/0-one-click-deploy scripts/deploy/1-check-env scripts/deplo chmod -R +x %{buildroot}/usr/lib/openeuler-intelligence/scripts/ # 创建可执行文件的符号链接 -ln -sf /usr/lib/openeuler-intelligence/scripts/deploy %{buildroot}%{_bindir}/openeuler-intelligence-installer +ln -sf /usr/lib/openeuler-intelligence/scripts/deploy %{buildroot}%{_bindir}/oi-manager %files -n openeuler-intelligence-cli %license LICENSE @@ -96,9 +96,13 @@ ln -sf /usr/lib/openeuler-intelligence/scripts/deploy %{buildroot}%{_bindir}/ope %license LICENSE %doc scripts/deploy/安装部署手册.md /usr/lib/openeuler-intelligence -%{_bindir}/openeuler-intelligence-installer +%{_bindir}/oi-manager %changelog +* Wed Sep 10 2025 openEuler - 0.10.1-1 +- 支持切换 MCP 自动执行模式 +- 简化安装器命令为 oi-manager + * Tue Sep 09 2025 openEuler - 0.10.0-4 - 优化安装脚本:添加内核版本检查和架构支持,优化 MongoDB 和 MinIO 安装逻辑 - 优化 MCP 交互相关 TUI 样式 diff --git "a/scripts/deploy/\345\256\211\350\243\205\351\203\250\347\275\262\346\211\213\345\206\214.md" "b/scripts/deploy/\345\256\211\350\243\205\351\203\250\347\275\262\346\211\213\345\206\214.md" index 26ffe2b..a421c7c 100644 --- "a/scripts/deploy/\345\256\211\350\243\205\351\203\250\347\275\262\346\211\213\345\206\214.md" +++ "b/scripts/deploy/\345\256\211\350\243\205\351\203\250\347\275\262\346\211\213\345\206\214.md" @@ -1,8 +1,8 @@ # **openEuler Intelligence 智能助手部署指南** 版本信息 -当前版本:v0.9.6 -更新日期:2025年8月4日 +当前版本:v0.10.1 +更新日期:2025年9月10日 ## 产品概述 @@ -26,10 +26,13 @@ openEuler Intelligence 是一款智能问答工具,使用 openEuler Intelligen | secret_inject | 无 | 配置文件安全复制工具 | ### 软件要求 + | 类型 | 版本要求 | 说明 | |----------------|-------------------------|--------------------------------------| | 操作系统 | openEuler 24.03 LTS SP2 | 无 | + --- + ### 硬件规格 | 硬件资源 | 最小配置 | 推荐配置 | @@ -39,13 +42,20 @@ openEuler Intelligence 是一款智能问答工具,使用 openEuler Intelligen | 存储 | 32 GB | 64G | **关键说明**: + - 建议通过调用 OpenAI 接口来实现功能。 + ## 快速开始 -#### 1. 获取轻量化部署客户端 -- dnf install openeuler-intelligence-installer -#### 2. 修改基础配置文件 -~~~bash +### 1. 获取轻量化部署客户端 + +```bash +dnf install openeuler-intelligence-installer +``` + +### 2. 修改基础配置文件 + +```bash [root@localhost 5-resource]# cd /usr/lib/openeuler-intelligence/scripts/5-resource/ [root@localhost 5-resource]# ll 总计 65828 @@ -96,11 +106,12 @@ temperature = 0.7 [fastapi] domain = '192.168.2.112' #修改ip为部署服务器ip -~~~ +``` -#### 3. 执行一键部署 -~~~bash -[root@localhost 5-resource]# openeuler-intelligence-installer #启动后直接输入 0 开启一键部署 等待部署完成,视网络情况好坏,大概在10~40分钟 +### 3. 执行一键部署 + +```bash +[root@localhost 5-resource]# oi-manager #启动后直接输入 0 开启一键部署 等待部署完成,视网络情况好坏,大概在10~40分钟 一键部署菜单 0) 自动部署 1) 手动部署 @@ -111,12 +122,13 @@ domain = '192.168.2.112' #修改ip为部署服务器ip 说明:0 是默认轻量部署,只部署framework框架;1 手动部署支持选择轻量部署还是全量部署,全量部署包含web端和知识库rag。 一键部署完openeuler-intelligence之后,轻量部署需要调用下面的初始化agent来构建agent服务。如果是全量部署,可以在web界面进行agent的构建。 -~~~ +``` + +### 4. 初始化mcp agent -#### 4. 初始化mcp agent -~~~bash +```bash #创建mcp服务 -openeuler-intelligence-installer --a init config.json +oi-manager --a init config.json #config.json 为copilot对应的mcp服务配置文件,参考如下,传入全路径 { "name": "systrace_mcp_server", @@ -136,7 +148,7 @@ openeuler-intelligence-installer --a init config.json } #说明:init 多次调用会删除之前注册的mcp 服务,重新注册 #创建一一对应的agent应用 -openeuler-intelligence-installer --a create config.json +oi-manager --a create config.json #config.json 同上,是调用init之后,会在原始json里面添加serviceId字段标识mcp服务 { "name": "systrace_mcp_server", @@ -156,7 +168,7 @@ openeuler-intelligence-installer --a create config.json "serviceId":"p2qQke" } #创建多对一的agent应用 -openeuler-intelligence-installer --a comb config.json +oi-manager --a comb config.json #config.json是组合多个mcp创建agent { "appType": "agent", #应用类型,不需要修改 @@ -180,10 +192,10 @@ openeuler-intelligence-installer --a comb config.json "published": "True" #是否公开 } #说明:如果是sse 或者 streamHttp格式 mcp server,在注册之前需要服务端先启动并且可用 -~~~ +``` -~~~ -[root@localhost deploy]# openeuler-intelligence-installer --a init /root/mcp_config/perf_mcp/config.json +```bash +[root@localhost deploy]# oi-manager --a init /root/mcp_config/perf_mcp/config.json 2025-08-15 09:49:54,874 - mcp_manager - INFO - 成功加载配置文件: /root/mcp_config/perf_mcp/config.json 2025-08-15 09:49:54,874 - mcp_manager - INFO - 删除MCP服务: dJsLV4 2025-08-15 09:49:54,960 - mcp_manager - INFO - 已删除旧的MCP服务ID @@ -191,7 +203,7 @@ openeuler-intelligence-installer --a comb config.json 2025-08-15 09:49:55,060 - mcp_manager - INFO - MCP服务创建成功,service_id: XMZ7Pb 2025-08-15 09:49:55,061 - mcp_manager - INFO - 配置文件已更新: /root/mcp_config/perf_mcp/config.json 2025-08-15 09:49:55,061 - mcp_manager - INFO - 操作执行成功 -[root@localhost deploy]# openeuler-intelligence-installer --a create /root/mcp_config/perf_mcp/config.json +[root@localhost deploy]# oi-manager --a create /root/mcp_config/perf_mcp/config.json 2025-08-15 09:50:03,819 - mcp_manager - INFO - 成功加载配置文件: /root/mcp_config/perf_mcp/config.json 2025-08-15 09:50:03,819 - mcp_manager - INFO - 安装MCP服务: XMZ7Pb 2025-08-15 09:50:04,052 - mcp_manager - INFO - 等待MCP服务就绪: XMZ7Pb @@ -201,4 +213,4 @@ openeuler-intelligence-installer --a comb config.json 2025-08-15 09:50:15,057 - mcp_manager - INFO - 发布应用: cd4a8f3b-9b25-4608-8d4c-d2c435e15ffd 2025-08-15 09:50:15,149 - mcp_manager - INFO - Agent创建流程完成 2025-08-15 09:50:15,149 - mcp_manager - INFO - 操作执行成功 -~~~ \ No newline at end of file +``` -- Gitee From aba52a44b46830f87036cce3ef08de95d8a9a758 Mon Sep 17 00:00:00 2001 From: Hongyu Shi Date: Wed, 10 Sep 2025 15:03:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20--init=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=AF=B4=E6=98=8E=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9=E4=BB=A5=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8C=87=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hongyu Shi --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90c2a82..16ec59c 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,11 @@ oi --agent - 需要管理员权限(sudo) - 需要网络连接以下载 RPM 包 -**注意**: 此命令会自动安装系统服务,请在生产环境使用前仔细评估。 +**注意**: + +1. 此命令会自动安装系统服务,请在生产环境使用前仔细评估; +2. 如果需要重启或卸载 openEuler Intelligence 后端,请以管理员身份运行 `oi-manager` 并根据指引操作; +3. `oi-manager` 的卸载功能会清空机器上 MongoDB 和 PostgreSQL 的全部数据并重置 nginx 服务,请谨慎操作。 ### --agent 命令说明 -- Gitee