diff --git a/client/src/components/SidePanel/MCP/MCPPanel.tsx b/client/src/components/SidePanel/MCP/MCPPanel.tsx index 0d585540ef..c67517278c 100644 --- a/client/src/components/SidePanel/MCP/MCPPanel.tsx +++ b/client/src/components/SidePanel/MCP/MCPPanel.tsx @@ -141,33 +141,31 @@ function MCPPanelContent() { {localize('com_sidepanel_mcp_variables_for', { '0': serverBeingEdited.serverName })} - {/* Server Initialization Section */}
- 0 - } + fields={serverBeingEdited.config.customUserVars} + onSave={(authData) => { + if (selectedServerNameForEditing) { + handleConfigSave(selectedServerNameForEditing, authData); + } + }} + onRevoke={() => { + if (selectedServerNameForEditing) { + handleConfigRevoke(selectedServerNameForEditing); + } + }} + isSubmitting={updateUserPluginsMutation.isLoading} />
- {/* Custom User Variables Section */} - { - if (selectedServerNameForEditing) { - handleConfigSave(selectedServerNameForEditing, authData); - } - }} - onRevoke={() => { - if (selectedServerNameForEditing) { - handleConfigRevoke(selectedServerNameForEditing); - } - }} - isSubmitting={updateUserPluginsMutation.isLoading} + requiresOAuth={serverStatus?.requiresOAuth || false} + hasCustomUserVars={ + serverBeingEdited.config.customUserVars && + Object.keys(serverBeingEdited.config.customUserVars).length > 0 + } /> );