From eb9284760d4bc6020025ecd4251e83b324b2c9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=9F=B3=E7=9F=B3?= Date: Tue, 9 Dec 2025 15:37:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0rag=E2=80=94mcp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mcp_center/mcp_config/mcp_to_app_config.toml | 1 + mcp_center/servers/rag/run.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mcp_center/mcp_config/mcp_to_app_config.toml b/mcp_center/mcp_config/mcp_to_app_config.toml index 91c7d347..edb6804a 100644 --- a/mcp_center/mcp_config/mcp_to_app_config.toml +++ b/mcp_center/mcp_config/mcp_to_app_config.toml @@ -4,5 +4,6 @@ name = "OE-智能运维助手" description = "提供通用文件管理,软件包管理,系统信息查询,进程管理,系统调优功能" mcpPath = [ "mcp_server_mcp", + "rag_mcp" ] published = true diff --git a/mcp_center/servers/rag/run.sh b/mcp_center/servers/rag/run.sh index ac30e86b..e7f73d0b 100644 --- a/mcp_center/servers/rag/run.sh +++ b/mcp_center/servers/rag/run.sh @@ -14,9 +14,10 @@ else echo "⚠️ 警告:未找到 service 文件:$SERVICE_FILE" fi + # 安装依赖 if [ -f "$RAG_DIR/src/requirements.txt" ]; then - python3 -m pip install -r "$RAG_DIR/src/requirements.txt" -i https://pypi.tuna.tsinghua.edu.cn/simple + pip install -r "$RAG_DIR/src/requirements.txt" -i https://pypi.tuna.tsinghua.edu.cn/simple echo "✅ 依赖安装完成" fi -- Gitee From ec29b918367b1737f147c42fa08ebac68aaa5b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=9F=B3=E7=9F=B3?= Date: Tue, 9 Dec 2025 15:40:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0rag=E2=80=94mcp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mcp_center/servers/rag/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp_center/servers/rag/run.sh b/mcp_center/servers/rag/run.sh index e7f73d0b..d1de890c 100644 --- a/mcp_center/servers/rag/run.sh +++ b/mcp_center/servers/rag/run.sh @@ -17,7 +17,7 @@ fi # 安装依赖 if [ -f "$RAG_DIR/src/requirements.txt" ]; then - pip install -r "$RAG_DIR/src/requirements.txt" -i https://pypi.tuna.tsinghua.edu.cn/simple + python3 -m pip install -r "$RAG_DIR/src/requirements.txt" -i https://pypi.tuna.tsinghua.edu.cn/simple echo "✅ 依赖安装完成" fi -- Gitee