Files
HL_MES_manager_ai/ai-mcp-service/knowledge/operations-and-risk.md

32 lines
935 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 运维与风险知识库
## AI/MCP 服务
- 目录ai-mcp-service
- 后台启动:.\start.ps1
- 状态检查:.\status.ps1
- 停止服务:.\stop.ps1
- 健康检查http://127.0.0.1:8787/health
- DeepSeek Key 配置ai-mcp-service/.env 中的 DEEPSEEK_API_KEY
## 前端配置
- 开发配置:前端源码/HL_MES_manager/static/config.js
- 发布配置:前端源码/HL_MES_manager/dist/static/config.js
- 后端地址baseURL
- AI 服务地址aiMcpURL
## 后端配置
- 主配置MES_Manage_standard/Web.config
- 主库MESBasicDB_HL
- 主入口submit/MESCommonBase.ashx
## 安全风险
- Web.config 存在明文数据库账号密码。
- CORS 当前允许任意来源。
- 通用接口支持 name/param 动态调用,应限制 AI 写入权限。
- AI 服务默认禁止写入类操作,只有 MES_AI_ALLOW_WRITE=1 才放开。
- 前端登录态主要依赖 Cookiesession 校验逻辑未启用。