fix(mcp): show only missing fields in preview; persist userFields across OAuth redirect

Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
Cursor Agent 2026-05-19 07:00:26 +00:00
parent 366be211c1
commit 515023d1f0
No known key found for this signature in database

View file

@ -77,8 +77,8 @@ const UserFieldsModal: React.FC<UserFieldsModalProps> = ({
const errorPreview = `Error: MCP server "${serverDisplayName}" requires user configuration before use.
${defs.length > 0 ? `Missing field${defs.length === 1 ? "" : "s"}:` : "No fields defined."}
${defs.map((f) => ` • ${f.label || f.name}${f.description ? ` — ${f.description}` : ""}`).join("\n")}
${missing.length > 0 ? `Missing field${missing.length === 1 ? "" : "s"}:` : "No fields defined."}
${missing.map((f) => ` • ${f.label || f.name}${f.description ? ` — ${f.description}` : ""}`).join("\n")}
Please configure your fields at:
${buildDeepLinkUrl()}