From f98458323f5797a116f1372f8be55c127e4e8184 Mon Sep 17 00:00:00 2001 From: Alex Hancock Date: Wed, 29 Oct 2025 12:14:26 -0400 Subject: [PATCH] fix(extensions/desktop): only show env vars for stdio mcps (#5430) --- .../extensions/modal/ExtensionModal.tsx | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/ui/desktop/src/components/settings/extensions/modal/ExtensionModal.tsx b/ui/desktop/src/components/settings/extensions/modal/ExtensionModal.tsx index 44b26345..947a6d02 100644 --- a/ui/desktop/src/components/settings/extensions/modal/ExtensionModal.tsx +++ b/ui/desktop/src/components/settings/extensions/modal/ExtensionModal.tsx @@ -353,7 +353,6 @@ export default function ExtensionModal({ submitAttempted={submitAttempted} /> - {/* Divider */}
{/* Command */} @@ -374,42 +373,43 @@ export default function ExtensionModal({ /> - {/* Divider */} -
+ {formData.type === 'stdio' && ( + <> +
- {/* Environment Variables */} -
- -
+
+ +
+ + )} + + {formData.type === 'streamable_http' && ( + <> + {/* Divider */} +
+ +
+ +
+ + )} )} - {/* Request Headers - Only for streamable_http */} - {formData.type === 'streamable_http' && ( - <> - {/* Divider */} -
- -
- -
- - )} - {showDeleteConfirmation ? ( <>