diff --git a/apps/web/app/onboarding/mcp-form.tsx b/apps/web/app/onboarding/mcp-form.tsx
index 161642c4..84ba0838 100644
--- a/apps/web/app/onboarding/mcp-form.tsx
+++ b/apps/web/app/onboarding/mcp-form.tsx
@@ -165,14 +165,14 @@ export function MCPForm() {
Copy the installation command
- npx -y install-mcp@latest https://api.supermemory.ai/mcp
+ npx -y install-mcp@latest https://mcp.supermemory.ai/mcp
--client {client} --oauth=yes
diff --git a/apps/web/components/views/mcp/index.tsx b/apps/web/components/views/mcp/index.tsx
index e79c2716..2489074b 100644
--- a/apps/web/components/views/mcp/index.tsx
+++ b/apps/web/components/views/mcp/index.tsx
@@ -138,7 +138,7 @@ export function MCPView() {
diff --git a/apps/web/components/views/mcp/installation-dialog-content.tsx b/apps/web/components/views/mcp/installation-dialog-content.tsx
index 4c04c6ac..2eb043c4 100644
--- a/apps/web/components/views/mcp/installation-dialog-content.tsx
+++ b/apps/web/components/views/mcp/installation-dialog-content.tsx
@@ -1,25 +1,25 @@
-import { Button } from "@ui/components/button";
+import { Button } from "@ui/components/button"
import {
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
-} from "@ui/components/dialog";
-import { Input } from "@ui/components/input";
+} from "@ui/components/dialog"
+import { Input } from "@ui/components/input"
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from "@ui/components/select";
-import { Label } from "@ui/components/label";
-import { CopyIcon } from "lucide-react";
-import { useState } from "react";
-import { toast } from "sonner";
-import { analytics } from "@/lib/analytics";
-import { $fetch } from "@repo/lib/api";
-import { useQuery } from "@tanstack/react-query";
+} from "@ui/components/select"
+import { Label } from "@ui/components/label"
+import { CopyIcon } from "lucide-react"
+import { useState } from "react"
+import { toast } from "sonner"
+import { analytics } from "@/lib/analytics"
+import { $fetch } from "@repo/lib/api"
+import { useQuery } from "@tanstack/react-query"
const clients = {
cursor: "Cursor",
@@ -31,47 +31,47 @@ const clients = {
enconvo: "Enconvo",
"gemini-cli": "Gemini CLI",
"claude-code": "Claude Code",
-} as const;
+} as const
interface Project {
- id: string;
- name: string;
- containerTag: string;
- createdAt: string;
- updatedAt: string;
- isExperimental?: boolean;
+ id: string
+ name: string
+ containerTag: string
+ createdAt: string
+ updatedAt: string
+ isExperimental?: boolean
}
export function InstallationDialogContent() {
- const [client, setClient] = useState("cursor");
- const [selectedProject, setSelectedProject] = useState("none");
+ const [client, setClient] = useState("cursor")
+ const [selectedProject, setSelectedProject] = useState("none")
// Fetch projects
const { data: projects = [], isLoading: isLoadingProjects } = useQuery({
queryKey: ["projects"],
queryFn: async () => {
- const response = await $fetch("@get/projects");
+ const response = await $fetch("@get/projects")
if (response.error) {
- throw new Error(response.error?.message || "Failed to load projects");
+ throw new Error(response.error?.message || "Failed to load projects")
}
- return response.data?.projects || [];
+ return response.data?.projects || []
},
staleTime: 30 * 1000,
- });
+ })
// Generate installation command based on selected project
function generateInstallCommand() {
- let command = `npx -y install-mcp@latest https://api.supermemory.ai/mcp --client ${client} --oauth=yes`;
+ let command = `npx -y install-mcp@latest https://mcp.supermemory.ai/mcp --client ${client} --oauth=yes`
if (selectedProject && selectedProject !== "none") {
// Remove the "sm_project_" prefix from the containerTag
- const projectId = selectedProject.replace(/^sm_project_/, '');
- command += ` --project ${projectId}`;
+ const projectId = selectedProject.replace(/^sm_project_/, "")
+ command += ` --project ${projectId}`
}
- return command;
+ return command
}
return (
@@ -79,8 +79,8 @@ export function InstallationDialogContent() {
Install the supermemory MCP Server
- Select the app and project you want to install supermemory MCP to, then run the
- following command:
+ Select the app and project you want to install supermemory MCP to,
+ then run the following command:
@@ -118,7 +118,10 @@ export function InstallationDialogContent() {
Auto-select project
-
+
Default Project
{projects
@@ -149,14 +152,14 @@ export function InstallationDialogContent() {
{
- const command = generateInstallCommand();
- navigator.clipboard.writeText(command);
- analytics.mcpInstallCmdCopied();
- toast.success("Copied to clipboard!");
+ const command = generateInstallCommand()
+ navigator.clipboard.writeText(command)
+ analytics.mcpInstallCmdCopied()
+ toast.success("Copied to clipboard!")
}}
>
Copy Installation Command
- );
+ )
}