MCP 卡片显示运行态连接状态
- mcp.js 留痕每个服务的发现结果(key = name|url|mode → ok/tools/hidden/error/disabled), 重试阶梯重跑 loadServer 时状态自动更新;失败原因补上 err.cause, 卡片 title 能看到 fetch failed(ECONNREFUSED)这类真因 - 新增 GET /api/config/mcp-status(随 /api/config 继承管理员门禁) - 卡片:「已配置」转中性灰,颜色只表达连接——已连接(绿,带工具数)/ 未连接(红,带原因)/ 待重启(黄,运行态查不到);mode=disable 不显示连接标记 - 状态接口自身失败时整块不显示,避免把全部卡片误报成「待重启」 - 页头加「刷新连接状态」:状态是页面快照,重试阶梯成功后需手动刷 - 预设字段的 hint 右对齐
This commit is contained in:
@@ -1229,7 +1229,7 @@ label.icon-btn { cursor: pointer; }
|
||||
.modal .mpe-item { margin-bottom: 10px; }
|
||||
.modal .mpe-item:last-child { margin-bottom: 0; }
|
||||
.modal .mpe-item .mpe-line { margin-bottom: 0; }
|
||||
.modal .mpe-item .cfg-note { margin-top: 4px; }
|
||||
.modal .mpe-item .cfg-note { margin-top: 4px; text-align: right; }
|
||||
/* ms 作为输入框内的后缀:定位在框内右侧,pointer-events:none 保证点击穿给输入框 */
|
||||
.modal .mpe-unit { position: relative; flex: none; width: 118px; }
|
||||
.modal .mpe-unit input { width: 100%; margin: 0; padding: 8px 30px 8px 10px; }
|
||||
|
||||
Reference in New Issue
Block a user