import { createMemo, Show } from "solid-js" import { Button } from "@opencode-ai/ui/button" import { useDialog } from "@opencode-ai/ui/context/dialog" import { useSync } from "@/context/sync" import { DialogSelectMcp } from "@/components/dialog-select-mcp" export function SessionMcpIndicator() { const sync = useSync() const dialog = useDialog() const mcpStats = createMemo(() => { const mcp = sync.data.mcp ?? {} const entries = Object.entries(mcp) const enabled = entries.filter(([, status]) => status.status === "connected").length const failed = entries.some(([, status]) => status.status === "failed") const total = entries.length return { enabled, failed, total } }) return ( 0}> ) }