WC-SPC AI MCP Service
本服务为 MES-Manager_View 提供本地 MCP 工具和 DeepSeekV4Pro 网页助手代理。
启动
npm run kb:build
npm run ai:mcp
或日常启动:
npm run start:daily
配置
可创建本地文件 mcp-server/.env.local,不要提交到 Git:
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 /healthGET /api/toolsPOST /mcpPOST /api/assistant/chat
工具
project_summarysearch_project_functionslist_quality_modulessearch_quality_functionslist_spc_chartsspc_query_chartreload_project_indexcall_mes_backend
call_mes_backend 默认禁用,避免 AI 直接执行会修改业务数据的后端操作。