feat(ui-rewrite): add rest of advanced settings in MCP server form#4597
feat(ui-rewrite): add rest of advanced settings in MCP server form#4597marekdano wants to merge 1 commit intoepic/ui-rewritefrom
Conversation
Signed-off-by: Marek Dano <Marek.Dano@ibm.com>
|
Good work getting all of this in... it's a BIG form, especially OAuth options! In the Figma, I may need to make adjustments to which fields are optional/not for this particular auth type depending on which options are entered. Will follow up with a proposal on that. We can fine tune small style things later ofc, but there are a couple of proposed changes to update now:
--> The auth type switching, accessibility wiring, and the security warning on query params all look good. A few things worth addressing before this moves toward production: OAuth2Auth.tsx - mixed controlled/uncontrolled state will silently drop updates Since MCPServerForm doesn't pass the optional handlers (onGrantTypeChange, onIssuerUrlChange, etc.), those fields are effectively uncontrolled. The fix is to lift all OAuth state up into MCPServerForm like the other auth fields (bearerToken, oauthClientId, etc.) and remove the internal state from OAuth2Auth entirely. OAuth optional fields not reset on cancel/submit Worth fixing before production CustomHeader is defined both locally in CustomHeadersAuth.tsx and exported from AdvancedSettings.tsx. The local one should import from AdvancedSettings to avoid drift. customHeaders is initialised with one blank row in MCPServerForm regardless of which auth type is selected. Initialising to [] is cleaner. |
🔗 Related Issue
Related: #4530
📝 Summary
Add the advanced settings for
advanced_settings_mcp_server_form.mov
🏷️ Type of Change
🧪 Verification
make lintmake testmake coverage✅ Checklist
make black isort pre-commit)📓 Notes (optional)
Screenshots, design decisions, or additional context.