diff --git a/client/src/components/SidePanel/MCPBuilder/MCPCardActions.tsx b/client/src/components/SidePanel/MCPBuilder/MCPCardActions.tsx index 015dfce014..7185185132 100644 --- a/client/src/components/SidePanel/MCPBuilder/MCPCardActions.tsx +++ b/client/src/components/SidePanel/MCPBuilder/MCPCardActions.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Pencil, PlugZap, SlidersHorizontal, RefreshCw, X } from 'lucide-react'; +import { Pencil, PlugZap, SlidersHorizontal, RefreshCw, X, Trash2 } from 'lucide-react'; import { Spinner, TooltipAnchor } from '@librechat/client'; import type { MCPServerStatus } from 'librechat-data-provider'; import { useLocalize } from '~/hooks'; @@ -17,6 +17,7 @@ interface MCPCardActionsProps { onConfigClick: (e: React.MouseEvent) => void; onInitialize: () => void; onCancel: (e: React.MouseEvent) => void; + onRevoke?: () => void; } /** @@ -26,6 +27,7 @@ interface MCPCardActionsProps { * - Pencil: Edit server definition (Settings panel only) * - PlugZap: Connect/Authenticate (for disconnected/error servers) * - SlidersHorizontal: Configure custom variables (for connected servers with vars) + * - Trash2: Revoke OAuth access (for connected OAuth servers) * - RefreshCw: Reconnect/Refresh (for connected servers) * - Spinner: Loading state (with X on hover for cancel) */ @@ -41,6 +43,7 @@ export default function MCPCardActions({ onConfigClick, onInitialize, onCancel, + onRevoke, }: MCPCardActionsProps) { const localize = useLocalize(); @@ -162,6 +165,20 @@ export default function MCPCardActions({