Migrate from Cursor
Section titled “Migrate from Cursor”Import your Cursor MCP servers and .cursor/rules/*.mdc project rules directly inside the Antigravity App—no CLI commands required—or install the Antigravity extension inside Cursor to keep your current editor.
Import in the Antigravity App
Section titled “Import in the Antigravity App”-
Start the import
Open the Antigravity App (with your project workspace open if you also want to import
.cursor/mcp.jsonor.cursor/rules/*.mdc) and start the built-in migration in any of three ways:-
From the Home screen: If you chose Software Engineering during onboarding, click Bring over my setup from other Agentic Developer Tools above the composer.
-
Built-in skill: Type
/migrate-agent-settingsin any conversation to run the built-in migration skill. -
Natural language: Ask the agent directly:
Import my setup from Cursor into Antigravity.
-
-
Confirm what to import
The agent lists the MCP servers and
.mdcrules it discovered without printing secret values in chat. If workspace-level.cursor/mcp.jsonor.cursor/rules/files are found, the agent notes that placing them in your global plugin applies them across every workspace so you can choose to exclude them or keep them workspace-scoped in.agents/rules/.Confirm what you want to import and choose a plugin name (defaults to
migrated-settings). -
Finish and configure MCP variables
Antigravity creates
~/.gemini/config/plugins/<plugin-name>/, validatesplugin.jsonandmcp_config.json, and gives you a direct link to the plugin in Customizations.- Cursor
${env:VAR}placeholders inheaders,url,args, orenvare converted to${VAR}with a matchingvariablesentry (redundant pass-through entries like"TOKEN": "${env:TOKEN}"are dropped so stdio servers inherit from your environment). - If no server declares
variables, the plugin loads automatically and is ready on your next turn. Otherwise, it starts disabled until you fill in those values on the plugin page and toggle it on.
- Cursor
What migrates automatically
Section titled “What migrates automatically”The Antigravity App’s built-in migrate-agent-settings skill imports everything below into ~/.gemini/config/plugins/<name>/:
| Cursor source | Destination in plugin | Conversion details |
|---|---|---|
~/ | mcp_config.json | Converts stdio and remote url servers; rewrites ${env:VAR} placeholders into plugin variables |
<workspace>/ | mcp_config.json | Discovered when a workspace is open (agent warns that importing makes it global) |
<workspace>/ | rules/<rule>.md | Maps alwaysApply, globs, and description frontmatter to Antigravity rule triggers |
How Cursor .mdc rules map to Antigravity rules
Section titled “How Cursor .mdc rules map to Antigravity rules”Antigravity converts each .cursor/rules/<name>.mdc file into rules/<name>.md and maps its trigger frontmatter as follows:
Cursor .mdc frontmatter | Antigravity rule trigger | Notes |
|---|---|---|
always | trigger: always_on | Loaded in every conversation |
Non-empty globs | trigger: glob | YAML lists are flattened into a comma-separated string, brace globs (**/*.{ts,tsx}) are expanded, and relative paths are prefixed with **/ |
Non-empty description (no globs) | trigger: model_decision | Loaded automatically when relevant to the task |
Neither alwaysApply, globs, nor description | trigger: manual | Invoked only when explicitly referenced |
Before
---
description: TypeScript API route conventions
globs:
- src/api/**/*.{ts,tsx}
alwaysApply: false
---
Always validate request payloads with Zod before calling service handlers.
After
---
trigger: glob
globs: "**/src/api/**/*.ts, **/src/api/**/*.tsx"
description: TypeScript API route conventions
---
Always validate request payloads with Zod before calling service handlers.
What does not migrate automatically
Section titled “What does not migrate automatically”- Cursor user rules and settings in its app database: Global user rules configured only inside Cursor’s UI settings database are not stored in
.cursor/files and must be copied manually into Rules. - Legacy SSE MCP servers: Servers with
"type": "sse"or a/sseURL without Streamable HTTP are flagged during discovery. Switch to Streamable HTTP or use the stdio bridgenpx -y mcp-remote <url>. - Rule files larger than 24 KB: Each Antigravity rule file has a 24 KB cap; larger
.mdcfiles are flagged so you can split them.
Disable or revert a migration
Section titled “Disable or revert a migration”Because all migrated items live inside ~/.gemini/config/plugins/<plugin-name>/, reverting is a single action:
- Antigravity App: Open Customizations > Installed, select your migrated plugin (for example,
migrated-settings), and toggle it off or uninstall it. - Antigravity CLI: Run
agy plugin disable <plugin-name>to pause it, oragy plugin uninstall <plugin-name>to remove it completely.
Keep using Cursor with the Antigravity extension
Section titled “Keep using Cursor with the Antigravity extension”If you want to use Antigravity without leaving Cursor, you can install the Antigravity VS Code extension directly inside Cursor (which supports VS Code extensions). The extension shares your ~/.gemini/config/ plugins, rules, skills, and MCP servers with the Antigravity App and Antigravity CLI.
Related documentation
Section titled “Related documentation”- Migrate from Claude Code: Import Claude Code MCP servers, skills, commands, subagents,
CLAUDE.md, and plugins. - Migrate from Codex: Bring over Codex
config.tomlMCP servers, skills, prompts, andAGENTS.md. - Migrate from Gemini CLI: Import Gemini CLI extensions, skills, and MCP servers.
- Rules and MCP: Configure workspace and global rules and MCP servers in Antigravity.
- VS Code and Cursor extension: Run Antigravity directly inside VS Code-compatible editors.