From ee62d4d213618b0d6d52c6e3383cdd78be37d3d6 Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Mon, 3 Nov 2025 00:38:21 +0000 Subject: chore: mcp connection trouble nav to manual mcp (#552) ![image.png](https://app.graphite.dev/user-attachments/assets/937eff40-0a98-4616-b3ce-a74a8926f082.png) --- apps/web/components/connect-ai-modal.tsx | 202 ++++++++++++++++++++----------- 1 file changed, 128 insertions(+), 74 deletions(-) diff --git a/apps/web/components/connect-ai-modal.tsx b/apps/web/components/connect-ai-modal.tsx index eb1597b5..69884d15 100644 --- a/apps/web/components/connect-ai-modal.tsx +++ b/apps/web/components/connect-ai-modal.tsx @@ -31,6 +31,7 @@ import { toast } from "sonner" import { z } from "zod/v4" import { analytics } from "@/lib/analytics" import { cn } from "@lib/utils" +import { motion, AnimatePresence } from "framer-motion" const clients = { cursor: "Cursor", @@ -72,6 +73,50 @@ interface ConnectAIModalProps { openInitialTab?: "oneClick" | "manual" | null } +interface ManualMCPHelpLinkProps { + onClick: () => void +} + +function ManualMCPHelpLink({ onClick }: ManualMCPHelpLinkProps) { + const [isHovered, setIsHovered] = useState(false) + + return ( + + ) +} + export function ConnectAIModal({ children, open, @@ -248,9 +293,8 @@ export function ConnectAIModal({ Connect supermemory to Your AI - Connect supermemory to your favorite AI tools using the Model - Context Protocol (MCP). This allows your AI assistant to create, - search, and access your memories directly. + Enable your AI assistant to create, search, and access your memories + directly using the Model Context Protocol (MCP). @@ -258,7 +302,7 @@ export function ConnectAIModal({ {/* Step 1: Client Selection */}
-
+
1

Select Your AI Client

@@ -325,7 +369,7 @@ export function ConnectAIModal({
-
+
2

@@ -337,65 +381,82 @@ export function ConnectAIModal({

-
- {/* Tabs */} -
-
- - + type="button" + > + {selectedClient === "mcp-url" + ? "Quick Setup" + : "One Click Install"} + + +
@@ -412,10 +473,6 @@ export function ConnectAIModal({ Click the button below to automatically install and configure Supermemory in Cursor

-

- This will install the MCP server without any - additional setup required -

-

- Make sure you have Cursor installed on your system -

) : (
@@ -611,7 +665,7 @@ export function ConnectAIModal({ (selectedClient !== "cursor" || cursorInstallTab === "manual") && (
-
+
3

@@ -649,7 +703,7 @@ export function ConnectAIModal({ {!selectedClient && (
-
+
3

Installation Command

@@ -687,17 +741,17 @@ export function ConnectAIModal({
-
+ {/* TODO: Show when connection successful or not */} + {/*

What You Can Do

  • • Ask your AI to save important information as memories
  • • Search through your saved memories during conversations
  • • Get contextual information from your knowledge base
  • -
  • • Seamlessly integrate with your existing AI workflow
-
+
*/} -
+