From bf2d8e2f5f9705787601bf2199eb2599712b7bfd Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Mon, 1 Sep 2025 23:43:54 +0000 Subject: [PATCH] feat: add mcp url to clients in connect ai modal (#406) ![image.png](https://app.graphite.dev/user-attachments/assets/7f4136fc-2d10-46e9-a837-b09d2d6486f8.png) --- apps/web/components/connect-ai-modal.tsx | 120 ++++++++++++++--------- apps/web/public/mcp-icon.svg | 5 + 2 files changed, 81 insertions(+), 44 deletions(-) create mode 100644 apps/web/public/mcp-icon.svg diff --git a/apps/web/components/connect-ai-modal.tsx b/apps/web/components/connect-ai-modal.tsx index 5099deed..f3008796 100644 --- a/apps/web/components/connect-ai-modal.tsx +++ b/apps/web/components/connect-ai-modal.tsx @@ -35,6 +35,7 @@ const clients = { cline: "Cline", "gemini-cli": "Gemini CLI", "claude-code": "Claude Code", + "mcp-url": "MCP URL", "roo-cline": "Roo Cline", witsy: "Witsy", enconvo: "Enconvo", @@ -195,9 +196,9 @@ export function ConnectAIModal({

Select Your AI Client

-
+
{Object.entries(clients) - .slice(0, 6) + .slice(0, 7) .map(([key, clientName]) => (
@@ -247,7 +248,7 @@ export function ConnectAIModal({
- {/* Step 2: Project Selection */} + {/* Step 2: Project Selection or MCP URL */} {selectedClient && (
@@ -255,53 +256,84 @@ export function ConnectAIModal({ 2

- Select Target Project (Optional) + {selectedClient === "mcp-url" + ? "MCP Server URL" + : "Select Target Project (Optional)"}

-
- +
+ + + +

+ Use this URL to configure supermemory in your AI assistant +

+ + ) : ( +
+ +
+ )} )} {/* Step 3: Command Line */} - {selectedClient && ( + {selectedClient && selectedClient !== "mcp-url" && (
diff --git a/apps/web/public/mcp-icon.svg b/apps/web/public/mcp-icon.svg new file mode 100644 index 00000000..fd3ed5db --- /dev/null +++ b/apps/web/public/mcp-icon.svg @@ -0,0 +1,5 @@ + + ModelContextProtocol + + + \ No newline at end of file