---
title: IDE & agent setup
description: Connect Chomp's local MCP server to Cursor, Claude Code, Kiro, or Antigravity, use Git-clean stealth mode, and switch active repos.
url: https://getchomp.dev/docs/ide-setup
---

# IDE & agent setup

Run `npx @getchomp/cli init` once and Chomp detects the coding agents installed in your workspace, registers its local MCP server, and installs map-first instructions.

## Per-agent configuration

Choose your editor or coding agent below to see the exact files `chomp init` writes.

### Cursor

- **Files written:** .cursor/mcp.json, .cursorrules
- Registers `chomp-server` in `.cursor/mcp.json` and adds map-first workflow guidance to `.cursorrules` so Composer checks blast radius before edits.

```bash
npx @getchomp/cli init
```

```text
Use Chomp to trace how checkout webhooks reach our database and spotlight the path.
```

### Claude Code

- **Files written:** .mcp.json, CLAUDE.md
- Adds `chomp-server` to `.mcp.json` and appends concise map-first rules to `CLAUDE.md` so Claude queries the graph instead of grepping blindly.

```bash
npx @getchomp/cli init
```

```text
Run chomp_get_blast_radius on createSession before refactoring its return type.
```

### Kiro

- **Files written:** .kiro/settings/mcp.json, steering file, sync hook, power
- Configures Kiro's MCP server, steering instructions, and a save hook so your local map refreshes as files change.

```bash
npx @getchomp/cli init
```

```text
Check chomp_audit_health and list any ? unresolved hotspots in our API package.
```

### Antigravity

- **Files written:** AGENTS.md, mcp_config.json
- Wires `chomp-server` into Antigravity's MCP configuration and aligns agent rules in `AGENTS.md`.

```bash
npx @getchomp/cli init
```

```text
Use Chomp to check package boundaries and verify my pending changes with chomp_get_diff.
```

## Git-clean mode (--stealth)

Try Chomp on a shared or enterprise repo without touching tracked files or dirtying `git status`.

**Initialize in Git-clean mode**

```bash
npx @getchomp/cli init --stealth
```

- Adds `.chomp/` to `.git/info/exclude` instead of editing `.gitignore`.
- Skips modifying tracked repo files so your pull requests stay completely clean.
- Points Chomp's global MCP server at the repo without committing team-wide editor configs.

## Switching between repositories

Chomp's global MCP server tracks one active repository at a time so every agent session queries the right map.

Running `chomp connect` updates your active repo pointer (`~/.chomp/context.json`) and supports `--stealth` as well. If the repo has not been analyzed yet, run `chomp analyze` right after.

**Point Chomp at another local repo**

```bash
cd ../another-repo
npx @getchomp/cli connect
```
