From 495b25e2b19c3315fb24b9d28985a4c95ddb1bb3 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 13 Jan 2026 08:56:20 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=BC=BA=20MCP=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=A9=E6=89=8B=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A?= =?UTF-8?q?=E7=A7=8D=20AI=20=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 Tabs 组件展示多种 AI 工具的配置方式 - 支持 Claude Code、Cursor、VS Code、Windsurf、Claude Desktop、 Codex、Kiro、Trae、Antigravity、Opencode 等工具 - 丰富使用示例,按任务管理、项目查询、工作汇报、团队协作、 文件查找等分类展示 - 优化国际化支持,使用 t() 函数替代 $L() 实现中英双语 --- .../js/pages/manage/components/MCPHelper.vue | 396 +++++++++++++++--- 1 file changed, 343 insertions(+), 53 deletions(-) diff --git a/resources/assets/js/pages/manage/components/MCPHelper.vue b/resources/assets/js/pages/manage/components/MCPHelper.vue index d3a87a590..0023d77ca 100644 --- a/resources/assets/js/pages/manage/components/MCPHelper.vue +++ b/resources/assets/js/pages/manage/components/MCPHelper.vue @@ -1,40 +1,187 @@ @@ -45,7 +192,6 @@ margin-top: 20px; h3 { - font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #333; @@ -57,21 +203,54 @@ line-height: 1.6; } + .mcp-config-tabs { + margin-top: 12px; + + .mcp-config-hint { + margin: 8px 0; + color: #666; + + code { + background: #f0f0f0; + padding: 2px 6px; + border-radius: 3px; + } + + .mcp-path { + display: block; + margin-top: 4px; + color: #999; + } + + &.mcp-config-note { + margin-top: 16px; + padding-top: 12px; + border-top: 1px dashed #e4e7ed; + } + } + } + .mcp-code-block { position: relative; background: #f5f7fa; border: 1px solid #e4e7ed; border-radius: 4px; padding: 12px; - margin: 12px 0; + padding-right: 70px; + margin: 8px 0; + + code, pre { + font-family: 'Consolas', 'Monaco', 'Courier New', monospace; + font-size: 13px; + } pre { margin: 0; - font-family: 'Consolas', 'Monaco', 'Courier New', monospace; - font-size: 13px; - line-height: 1.6; + line-height: 1.5; color: #333; overflow-x: auto; + white-space: pre-wrap; + word-break: break-all; } .mcp-copy-btn { @@ -81,31 +260,30 @@ } } - .mcp-hint { - font-size: 13px; - color: #999; - margin-top: 8px; - display: flex; - align-items: center; - gap: 4px; + .mcp-category { + margin-top: 16px; - code { - background: #f5f7fa; - padding: 2px 6px; - border-radius: 3px; - font-size: 12px; + &:first-child { + margin-top: 12px; + } + + h4 { + font-weight: 600; + color: #515a6e; + margin-bottom: 8px; + padding-left: 8px; + border-left: 3px solid #2d8cf0; } } .mcp-examples { - margin: 12px 0; + margin: 0; padding-left: 20px; li { - margin: 8px 0; + margin: 6px 0; color: #666; line-height: 1.6; - font-size: 14px; &:before { content: '•'; @@ -124,7 +302,6 @@ padding: 2px 6px; border-radius: 3px; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; - font-size: 13px; color: #e96900; } } @@ -132,6 +309,7 @@