Keep installed models, chat selection, and web enablement in sync
This commit is contained in:
+5
-5
@@ -223,6 +223,7 @@ struct MCPSettings: View {
|
||||
@AppStorage("mcpTransport") private var transport = "http"
|
||||
@AppStorage("mcpExecutable") private var executable = ""
|
||||
@AppStorage("mcpArguments") private var launchArguments = ""
|
||||
@AppStorage("builtInWebEnabled") private var builtInWebEnabled = true
|
||||
@AppStorage("webSearchEndpoint") private var webSearchEndpoint = ""
|
||||
@AppStorage("mcpConfigPath") private var configPath = ""
|
||||
@State private var token = ""
|
||||
@@ -243,11 +244,10 @@ struct MCPSettings: View {
|
||||
HSplitView {
|
||||
Form {
|
||||
Section("Built-In Tools") {
|
||||
LabeledContent {
|
||||
Text("Runs on demand").foregroundStyle(.secondary)
|
||||
} label: {
|
||||
Label(BuiltInWebTools.name, systemImage: "globe")
|
||||
}
|
||||
Toggle("Web Search and Page Retrieval", isOn: $builtInWebEnabled)
|
||||
.onChange(of: builtInWebEnabled) { _, _ in studio.restoreToolsets() }
|
||||
Text(builtInWebEnabled ? "Ready for web requests in chat." : "Automatic web lookup is off.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
Section("Custom MCP Servers") {
|
||||
Menu("Manage Servers", systemImage: "ellipsis.circle") {
|
||||
|
||||
Reference in New Issue
Block a user