diff --git a/src/components/mcp/McpPanel.tsx b/src/components/mcp/McpPanel.tsx index 6dd3709..2dd7b8f 100644 --- a/src/components/mcp/McpPanel.tsx +++ b/src/components/mcp/McpPanel.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useMemo, useState } from "react"; import { useTranslation } from "react-i18next"; import { X, Plus, Server } from "lucide-react"; -import { McpServer, McpStatus } from "../../types"; +import { McpServer } from "../../types"; import McpListItem from "./McpListItem"; import McpFormModal from "./McpFormModal"; import { ConfirmDialog } from "../ConfirmDialog"; @@ -25,7 +25,6 @@ interface McpPanelProps { */ const McpPanel: React.FC = ({ onClose, onNotify }) => { const { t } = useTranslation(); - const [status, setStatus] = useState(null); const [servers, setServers] = useState>({}); const [loading, setLoading] = useState(true); const [isFormOpen, setIsFormOpen] = useState(false); @@ -41,11 +40,6 @@ const McpPanel: React.FC = ({ onClose, onNotify }) => { setLoading(true); try { const cfg = await window.api.getMcpConfig("claude"); - setStatus({ - userConfigPath: cfg.configPath, - userConfigExists: true, - serverCount: Object.keys(cfg.servers || {}).length, - }); setServers(cfg.servers || {}); } finally { setLoading(false); @@ -174,7 +168,7 @@ const McpPanel: React.FC = ({ onClose, onNotify }) => { /> {/* Panel */} -
+
{/* Header */}

@@ -201,11 +195,7 @@ const McpPanel: React.FC = ({ onClose, onNotify }) => { {/* Info Section */}
- {t("mcp.configPath")}:{" "} - {status?.userConfigPath} -
-
- {t("mcp.serverCount", { count: status?.serverCount || 0 })} + {t("mcp.serverCount", { count: Object.keys(servers).length })}