Add DeepSeek AI MCP assistant
This commit is contained in:
52
MES-Manager_View/mcp-server/README.md
Normal file
52
MES-Manager_View/mcp-server/README.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# WC-SPC AI MCP Service
|
||||
|
||||
本服务为 `MES-Manager_View` 提供本地 MCP 工具和 DeepSeekV4Pro 网页助手代理。
|
||||
|
||||
## 启动
|
||||
|
||||
```powershell
|
||||
npm run kb:build
|
||||
npm run ai:mcp
|
||||
```
|
||||
|
||||
或日常启动:
|
||||
|
||||
```powershell
|
||||
npm run start:daily
|
||||
```
|
||||
|
||||
## 配置
|
||||
|
||||
可创建本地文件 `mcp-server/.env.local`,不要提交到 Git:
|
||||
|
||||
```text
|
||||
AI_MCP_PORT=3100
|
||||
DEEPSEEK_API_KEY=your_deepseek_key
|
||||
DEEPSEEK_MODEL=deepseek-v4-pro
|
||||
DEEPSEEK_BASE_URL=https://api.deepseek.com
|
||||
MES_BACKEND_URL=http://127.0.0.1:10050/submit/MESCommonBase.ashx
|
||||
SPC_BACKEND_URL=http://localhost:57966
|
||||
AI_MCP_ALLOW_BACKEND_CALLS=false
|
||||
```
|
||||
|
||||
未配置 `DEEPSEEK_API_KEY` 时,助手仍可基于本地知识库回答项目功能、质量模块和 SPC 页面映射问题。
|
||||
|
||||
## 端点
|
||||
|
||||
- `GET /health`
|
||||
- `GET /api/tools`
|
||||
- `POST /mcp`
|
||||
- `POST /api/assistant/chat`
|
||||
|
||||
## 工具
|
||||
|
||||
- `project_summary`
|
||||
- `search_project_functions`
|
||||
- `list_quality_modules`
|
||||
- `search_quality_functions`
|
||||
- `list_spc_charts`
|
||||
- `spc_query_chart`
|
||||
- `reload_project_index`
|
||||
- `call_mes_backend`
|
||||
|
||||
`call_mes_backend` 默认禁用,避免 AI 直接执行会修改业务数据的后端操作。
|
||||
Reference in New Issue
Block a user