mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-27 01:22:18 +00:00
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:
parent
366be211c1
commit
515023d1f0
1 changed files with 2 additions and 2 deletions
|
|
@ -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()}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue