Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

expose feature flag for chat mode (#6577)

Shahmir Varqhaef29568d73d4
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index 497a53c626..3a48b7ae2d 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -1359,6 +1359,32 @@ export const UserConfigForm: React.FC = () => {
</div>
)}
/>
+ <FormField
+ control={form.control}
+ name="experimental.mcp_docs"
+ render={({ field }) => (
+ <div className="flex flex-col gap-y-1">
+ <FormItem className={formItemClasses}>
+ <FormLabel className="font-normal">Chat Mode</FormLabel>
+ <FormControl>
+ <Checkbox
+ data-testid="chat-mode-checkbox"
+ checked={field.value === true}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ </FormItem>
+ <IsOverridden
+ userConfig={config}
+ name="experimental.mcp_docs"
+ />
+ <FormDescription>
+ Switch between different modes in the Chat sidebar, to
+ enable tool use.
+ </FormDescription>
+ </div>
+ )}
+ />
</SettingGroup>
);
}