# Cursor, VS Code and Antigravity

MainPath extension and the editor configuration from local-configuration work the same way in VS Code, Cursor and Antigravity, and Cursor adds the agent plugin.

> Source: https://www.mainpath.ai/en/docs/vscode-cursor-antigravity/

VS Code, Cursor and Antigravity share the same base, so MainPath integration works the same everywhere; Cursor and Antigravity bring the AI agent along, in VS Code you work with Claude Code or Codex in the terminal.

## Opening a project

From the [MainPath Toolbox]({{< relref "local-app" >}}) you open a project with one click in the default tool set there, or by hand via `~/Documents/MainPath/<organization-slug>/<project-slug>`; open the project folder, not a single repository, so all repositories are visible and the shared editor configuration applies.

## MainPath extension

The MainPath Toolbox installs the extension `doppelt-digital.application-platform` in VS Code, Cursor and Antigravity; the workspace configuration recommends it if missing. Its welcome page shows all repositories with description, tech stack, recommended files and links to GitLab, Sentry and this documentation; a button per repository starts `mp run-local`, plus quick links to the web interface and AI tools and a decrypted view of deployment configuration.

## Configuration from local-configuration

The files from `local-configuration` are symlinked into the project folder; if you change them there and push, they apply to the whole team. Only editor settings live there now:

| Folder or file | Effect |
|---|---|
| `.vscode/` | Extension recommendations and editor settings |
| `.idea/` | shared JetBrains project files |

MainPath rules for the agent no longer come from `AGENTS.md` in this repository; they come from the agent plugin. You add your own project rules under [Your own rules for AI agents]({{< relref "ai-instructions" >}}).

## Agent plugin in Cursor

For the agent to create or import projects, install the plugin with the mp CLI and reload the window (**Developer: Reload Window**):

```bash
mp agent install
mp login
```

Installation routes, tools and failure cases are in [CLI and agent plugin]({{< relref "cli-and-agent-plugin" >}}).

