Add Antigravity MCP setup (#1119)

This commit is contained in:
Ishaan Gupta 2026-06-16 12:10:36 +05:30 committed by GitHub
parent 5eed4bcbf3
commit 925be7c6c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 1 deletions

View file

@ -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",
@ -399,7 +400,9 @@ export function ConnectAIModal({
src={
key === "mcp-url"
? "/mcp-icon.svg"
: `/mcp-supported-tools/${key === "claude-code" ? "claude" : key}.png`
: key === "antigravity"
? "/mcp-supported-tools/antigravity.png"
: `/mcp-supported-tools/${key === "claude-code" ? "claude" : key}.png`
}
width={20}
/>

View file

@ -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: "MCP config for Antigravity",
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.png"
const file = key === "claude-code" ? "claude" : key
return `/mcp-supported-tools/${file}.png`
}

View file

@ -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.png"
const file = key === "claude-code" ? "claude" : key
return `/mcp-supported-tools/${file}.png`
}

View file

@ -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: true },
chatgpt: { manual: true, oneClick: false },
cline: { manual: false, oneClick: true },
}

View file

@ -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: ~/.gemini/config/mcp_config.json. Merge the block into your existing [mcp_servers] section.",
snippet: ANTIGRAVITY_MCP_SNIPPET,
format: "json",
}
case "codex":
return {
kind: "file",

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB