McpImportDialog
Import MCP servers found in another client's configuration. Every candidate is selected initially and shows its transport and target (command or URL). Names that collide with existingNames (case-insensitive) get a _1, _2 suffix, marked Renamed, and stay editable; invalid, taken or duplicate names block the Import button with a message under the field. onImport receives the selected servers with their final names. While its promise is pending the button shows a loader and the inputs are disabled; a rejection keeps the dialog open with the message in an alert; on success the dialog closes. With an empty servers list the dialog shows an empty state. The rename and validation rules are exported as resolveImportNames and validateImportNames, so you can apply the same rules on the server side.
$pnpm add @sinups/ai-kit @mantine/core @mantine/hooks @tabler/icons-react