diff --git a/src/components/mcp/UnifiedMcpPanel.tsx b/src/components/mcp/UnifiedMcpPanel.tsx index 908be51..ab96746 100644 --- a/src/components/mcp/UnifiedMcpPanel.tsx +++ b/src/components/mcp/UnifiedMcpPanel.tsx @@ -9,7 +9,7 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog"; -import { Checkbox } from "@/components/ui/checkbox"; +import { Switch } from "@/components/ui/switch"; import { useAllMcpServers, useToggleMcpApp } from "@/hooks/useMcp"; import type { McpServer } from "@/types"; import type { AppId } from "@/lib/api/types"; @@ -117,7 +117,7 @@ const UnifiedMcpPanel: React.FC = ({ return ( <> - +
{t("mcp.unifiedPanel.title")} @@ -264,9 +264,22 @@ const UnifiedMcpListItem: React.FC = ({
{/* 左侧:服务器信息 */}
-

- {name} -

+
+

+ {name} +

+ {docsUrl && ( + + )} +
{description && (

{description} @@ -279,70 +292,59 @@ const UnifiedMcpListItem: React.FC = ({ )}

- {/* 中间:应用复选框 */} -
-
- - onToggleApp(id, "claude", checked === true) - } - /> + {/* 中间:应用开关 */} +
+
-
- -
- - onToggleApp(id, "codex", checked === true) + onToggleApp(id, "claude", checked) } /> +
+ +
-
- -
- - onToggleApp(id, "gemini", checked === true) + onToggleApp(id, "codex", checked) } /> +
+ +
+ + onToggleApp(id, "gemini", checked) + } + />
{/* 右侧:操作按钮 */}
- {docsUrl && ( - - )}