|
@@ -4,6 +4,7 @@ import { useExtensionState } from "../../context/ExtensionStateContext"
|
|
|
import { validateApiConfiguration, validateModelId } from "../../utils/validate"
|
|
import { validateApiConfiguration, validateModelId } from "../../utils/validate"
|
|
|
import { vscode } from "../../utils/vscode"
|
|
import { vscode } from "../../utils/vscode"
|
|
|
import ApiOptions from "./ApiOptions"
|
|
import ApiOptions from "./ApiOptions"
|
|
|
|
|
+import McpEnabledToggle from "../mcp/McpEnabledToggle"
|
|
|
|
|
|
|
|
const IS_DEV = false // FIXME: use flags when packaging
|
|
const IS_DEV = false // FIXME: use flags when packaging
|
|
|
|
|
|
|
@@ -48,6 +49,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|
|
setScreenshotQuality,
|
|
setScreenshotQuality,
|
|
|
terminalOutputLineLimit,
|
|
terminalOutputLineLimit,
|
|
|
setTerminalOutputLineLimit,
|
|
setTerminalOutputLineLimit,
|
|
|
|
|
+ mcpEnabled,
|
|
|
} = useExtensionState()
|
|
} = useExtensionState()
|
|
|
const [apiErrorMessage, setApiErrorMessage] = useState<string | undefined>(undefined)
|
|
const [apiErrorMessage, setApiErrorMessage] = useState<string | undefined>(undefined)
|
|
|
const [modelIdErrorMessage, setModelIdErrorMessage] = useState<string | undefined>(undefined)
|
|
const [modelIdErrorMessage, setModelIdErrorMessage] = useState<string | undefined>(undefined)
|
|
@@ -79,6 +81,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|
|
vscode.postMessage({ type: "writeDelayMs", value: writeDelayMs })
|
|
vscode.postMessage({ type: "writeDelayMs", value: writeDelayMs })
|
|
|
vscode.postMessage({ type: "screenshotQuality", value: screenshotQuality ?? 75 })
|
|
vscode.postMessage({ type: "screenshotQuality", value: screenshotQuality ?? 75 })
|
|
|
vscode.postMessage({ type: "terminalOutputLineLimit", value: terminalOutputLineLimit ?? 500 })
|
|
vscode.postMessage({ type: "terminalOutputLineLimit", value: terminalOutputLineLimit ?? 500 })
|
|
|
|
|
+ vscode.postMessage({ type: "mcpEnabled", bool: mcpEnabled })
|
|
|
onDone()
|
|
onDone()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -211,6 +214,8 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|
|
}}>
|
|
}}>
|
|
|
These instructions are added to the end of the system prompt sent with every request. Custom instructions set in .clinerules and .cursorrules in the working directory are also included.
|
|
These instructions are added to the end of the system prompt sent with every request. Custom instructions set in .clinerules and .cursorrules in the working directory are also included.
|
|
|
</p>
|
|
</p>
|
|
|
|
|
+
|
|
|
|
|
+ <McpEnabledToggle />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div style={{ marginBottom: 5 }}>
|
|
<div style={{ marginBottom: 5 }}>
|