import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react" import { FormEvent } from "react" import { useExtensionState } from "../../context/ExtensionStateContext" import { vscode } from "../../utils/vscode" const McpEnabledToggle = () => { const { mcpEnabled, setMcpEnabled } = useExtensionState() const handleChange = (e: Event | FormEvent) => { const target = ("target" in e ? e.target : null) as HTMLInputElement | null if (!target) return setMcpEnabled(target.checked) vscode.postMessage({ type: "mcpEnabled", bool: target.checked }) } return (
Enable MCP Servers

When enabled, Roo will be able to interact with MCP servers for advanced functionality. If you're not using MCP, you can disable this to reduce Roo's token usage.

) } export default McpEnabledToggle