fix: Default MCP tools button state to disabled

This commit is contained in:
kangfenmao 2025-03-09 17:00:35 +08:00
parent 40163e5c63
commit de1ad09900

View File

@ -15,7 +15,7 @@ interface Props {
const MCPToolsButton: FC<Props> = ({ enabledMCPs, onEnableMCP, ToolbarButton }) => { const MCPToolsButton: FC<Props> = ({ enabledMCPs, onEnableMCP, ToolbarButton }) => {
const { mcpServers } = useMCPServers() const { mcpServers } = useMCPServers()
const [isOpen, setIsOpen] = useState(false) const [isOpen, setIsOpen] = useState(false)
const [enableAll, setEnableAll] = useState(true) const [enableAll, setEnableAll] = useState(false)
const dropdownRef = useRef<any>(null) const dropdownRef = useRef<any>(null)
const menuRef = useRef<HTMLDivElement>(null) const menuRef = useRef<HTMLDivElement>(null)
const { t } = useTranslation() const { t } = useTranslation()