mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-05 08:06:19 +00:00
Add Antigravity MCP setup
This commit is contained in:
parent
5eed4bcbf3
commit
6814033cf2
6 changed files with 44 additions and 5 deletions
|
|
@ -49,6 +49,7 @@ import type { Project } from "@lib/types"
|
|||
import { motion, AnimatePresence } from "motion/react"
|
||||
|
||||
const clients = {
|
||||
antigravity: "Antigravity",
|
||||
chatgpt: "ChatGPT",
|
||||
codex: "Codex",
|
||||
cursor: "Cursor",
|
||||
|
|
@ -60,6 +61,12 @@ const clients = {
|
|||
"mcp-url": "MCP URL",
|
||||
} as const
|
||||
|
||||
function mcpClientIconSrc(key: string): string {
|
||||
if (key === "mcp-url") return "/mcp-icon.svg"
|
||||
if (key === "antigravity") return "/mcp-supported-tools/antigravity.svg"
|
||||
return `/mcp-supported-tools/${key === "claude-code" ? "claude" : key}.png`
|
||||
}
|
||||
|
||||
const mcpMigrationSchema = z.object({
|
||||
url: z
|
||||
.string()
|
||||
|
|
@ -396,11 +403,7 @@ export function ConnectAIModal({
|
|||
parent.appendChild(fallback)
|
||||
}
|
||||
}}
|
||||
src={
|
||||
key === "mcp-url"
|
||||
? "/mcp-icon.svg"
|
||||
: `/mcp-supported-tools/${key === "claude-code" ? "claude" : key}.png`
|
||||
}
|
||||
src={mcpClientIconSrc(key)}
|
||||
width={20}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ type ListedApiKey = {
|
|||
type ItemKind = "plugin" | "connector" | "client" | "mcp-client" | "import"
|
||||
|
||||
type MCPClientKey =
|
||||
| "antigravity"
|
||||
| "chatgpt"
|
||||
| "codex"
|
||||
| "cursor"
|
||||
|
|
@ -172,6 +173,13 @@ const MCP_CLIENTS: Array<{
|
|||
simpleTitle?: string
|
||||
dev?: boolean
|
||||
}> = [
|
||||
{
|
||||
key: "antigravity",
|
||||
name: "Antigravity",
|
||||
tagline: "Manual MCP config for Antigravity IDE",
|
||||
simpleTitle: "Bring your memory into Antigravity",
|
||||
dev: true,
|
||||
},
|
||||
{
|
||||
key: "cursor",
|
||||
name: "Cursor",
|
||||
|
|
@ -236,6 +244,7 @@ const MCP_CLIENTS: Array<{
|
|||
|
||||
function mcpClientIconSrc(key: MCPClientKey): string {
|
||||
if (key === "mcp-url") return "/mcp-icon.svg"
|
||||
if (key === "antigravity") return "/mcp-supported-tools/antigravity.svg"
|
||||
const file = key === "claude-code" ? "claude" : key
|
||||
return `/mcp-supported-tools/${file}.png`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ function McpCodeBlock({
|
|||
}
|
||||
|
||||
const clients = {
|
||||
antigravity: "Antigravity",
|
||||
chatgpt: "ChatGPT",
|
||||
codex: "Codex",
|
||||
cursor: "Cursor",
|
||||
|
|
@ -131,6 +132,7 @@ const MCP_CATEGORIES: {
|
|||
{
|
||||
label: "IDEs",
|
||||
items: [
|
||||
{ key: "antigravity", title: "Antigravity", subtitle: "AI IDE" },
|
||||
{ key: "cursor", title: "Cursor", subtitle: "AI IDE" },
|
||||
{ key: "vscode", title: "VS Code", subtitle: "IDE" },
|
||||
{ key: "cline", title: "Cline", subtitle: "VS Code extension" },
|
||||
|
|
@ -145,6 +147,7 @@ const MCP_CATEGORIES: {
|
|||
|
||||
function clientIconSrc(key: ClientKey) {
|
||||
if (key === "mcp-url") return "/mcp-icon.svg"
|
||||
if (key === "antigravity") return "/mcp-supported-tools/antigravity.svg"
|
||||
const file = key === "claude-code" ? "claude" : key
|
||||
return `/mcp-supported-tools/${file}.png`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ const DEFAULT_SETUP: McpSetupAvailability = {
|
|||
* manual instructions and one-click (CLI / deeplink / URL copy).
|
||||
*/
|
||||
export const MCP_CLIENT_SETUP: Record<string, McpSetupAvailability> = {
|
||||
antigravity: { manual: true, oneClick: false },
|
||||
chatgpt: { manual: true, oneClick: false },
|
||||
cline: { manual: false, oneClick: true },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,14 @@ export const SUPERMEMORY_MCP_OAUTH_JSON = `{
|
|||
}
|
||||
}`
|
||||
|
||||
export const ANTIGRAVITY_MCP_SNIPPET = `{
|
||||
"mcpServers": {
|
||||
"supermemory": {
|
||||
"serverUrl": "${CHATGPT_REMOTE_MCP_URL}"
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
export function buildMcpUrlRemoteJson(apiKeyPlaceholder: string) {
|
||||
return `{
|
||||
"supermemory-mcp": {
|
||||
|
|
@ -52,6 +60,14 @@ export function getManualInstallEntry(clientKey: string): ManualInstallEntry {
|
|||
return { kind: "chatgpt" }
|
||||
case "mcp-url":
|
||||
return { kind: "generic-remote" }
|
||||
case "antigravity":
|
||||
return {
|
||||
kind: "file",
|
||||
paths:
|
||||
"Antigravity: open your Antigravity MCP configuration and merge this server entry.",
|
||||
snippet: ANTIGRAVITY_MCP_SNIPPET,
|
||||
format: "json",
|
||||
}
|
||||
case "codex":
|
||||
return {
|
||||
kind: "file",
|
||||
|
|
|
|||
7
apps/web/public/mcp-supported-tools/antigravity.svg
Normal file
7
apps/web/public/mcp-supported-tools/antigravity.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="64" height="64" rx="16" fill="#0B0E13"/>
|
||||
<path d="M14 40C23 25 42 17 52 26" stroke="#4BA0FA" stroke-width="4" stroke-linecap="round"/>
|
||||
<path d="M12 30C23 44 43 48 53 36" stroke="#55D6BE" stroke-width="4" stroke-linecap="round"/>
|
||||
<circle cx="48" cy="23" r="4" fill="#FAFAFA"/>
|
||||
<text x="32" y="38" fill="#FAFAFA" font-family="Arial, sans-serif" font-size="17" font-weight="700" text-anchor="middle">AG</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 533 B |
Loading…
Add table
Reference in a new issue