Skip to main content
Glama
antigravity-context-mcp

antigravity-context-mcp

README.md
# antigravity-context-mcp

You've been coding with your AI agent for two hours. The feature is almost done. You're in the flow.

Then the context window overflows. The session crashes.

You open a new chat. The agent looks at you like you've never met. *"Hi! How can I help you today?"*

Everything you built together β€” the decisions, the architecture, the twenty files you touched β€” gone. You start explaining from scratch. Again.

**This MCP server gives Antigravity its memory back.**

πŸ‡·πŸ‡Ί [Π§ΠΈΡ‚Π°Ρ‚ΡŒ Π½Π° русском](README.ru.md)

---

## How it works

Session crashed. New chat. You type:

> *"continue"*

The agent calls `recall` and gets the task checklist from the last session β€” what was done, what's in progress, where things stopped.

Need more detail?

> *"show me the details of that session"*

The agent fetches the full context β€” walkthrough, plan, decisions made.

Want to look back at the week?

> *"show recent sessions"*

You get a list with dates and titles. Pick one β€” the agent loads details **only for that session**.

Context loads **progressively** β€” the agent decides how much it needs. Not everything at once, but on demand, like a normal conversation.

## Install

Paste the link to this repo into an Antigravity chat:

> *"install this MCP server: https://github.com/eglebov133-sudo/antigravity-context-mcp"*

The agent will clone it, install dependencies, and configure everything. Restart Antigravity β€” done.

<details>
<summary>Manual installation</summary>

```bash
git clone https://github.com/eglebov133-sudo/antigravity-context-mcp.git
cd antigravity-context-mcp
npm install
```

Add to `~/.gemini/antigravity/mcp_config.json`:

```json
{
  "mcpServers": {
    "context": {
      "command": "node",
      "args": ["/path/to/antigravity-context-mcp/server.js"]
    }
  }
}
```

Restart Antigravity.

</details>

## What it reads

The server taps into what Antigravity already stores but doesn't use between sessions:

- Task checklists β€” what's done, what's in progress
- Walkthroughs β€” summaries of completed work
- Implementation plans β€” architectural decisions made

All local. No network. Just files on your disk that were always there.

## Beyond context

**Passwords between sessions.** You know the drill β€” you give the agent your hosting password, the session dies, the next agent asks for it again. The server stores credentials encrypted with AES-256-GCM (key derived from your machine), auto-excluded from Git.

**Persistent notes.** Save code words, instructions, decisions with `save_note` β€” search them later with `recall_notes`.

**Context snapshots.** The agent can save an `AGENT_CONTEXT.md` into your project β€” persistent memory that survives any number of crashes.

**Project list.** Shows what Antigravity knows about, so you can switch projects without orientation time.

**Diagnostics.** `context_status` shows server health β€” sessions, notes, disk usage, encryption status.

## What's new in v5.0

- **πŸ“¦ Export/import memory** β€” `context_export` dumps all notes to an encrypted file, `context_import` restores on another machine
- **πŸ’Ύ Auto-backups** β€” notes are automatically backed up before every modification (`.backups/`, 30-version retention with auto-pruning)
- **πŸ” Encrypted credentials** β€” AES-256-GCM, machine-bound key, auto-migration from plaintext
- **πŸ›‘οΈ Error handling** β€” try/catch on every tool with clear error messages
- **πŸ“ Response limits** β€” 50,000 char cap with `[TRUNCATED]` warning
- **🩺 Diagnostics** β€” `context_status` for server health monitoring

Full changelog in [CHANGELOG.md](CHANGELOG.md).

## Security

- Runs locally via stdio β€” no open ports, no network
- Read-only by default β€” writes only when you explicitly ask
- Credentials encrypted with AES-256-GCM, key bound to machine
- Auto-migration from plaintext to encrypted
- Zero telemetry, zero external requests

## Requirements

- Node.js 18+
- Antigravity

## License

MIT

---

*Built because we got tired of introducing ourselves to our own AI agent.*

TDQS

B3.4/5.0

Scored across 12 tools

Disambiguation3/5

The four recall-family tools (recall, recall_session, recall_sessions, recall_notes) are differentiated only by singular/plural and a short description, making them easy to misselect in practice. Credentials read/write and the export/import pair are clear, but the session-retrieval cluster is the weak spot.

Naming Consistency3/5

Most tools follow verb_noun (recall_session, save_note, get_credentials), but context_status/context_export/context_import invert to noun_verb, and the recall/recall_session/recall_sessions trio relies on subtle singular/plural distinctions. Readable overall but not a single predictable convention.

Tool Count4/5

Twelve tools is within a reasonable range for a memory/context server covering sessions, notes, credentials, projects, backup, and diagnostics. Slight over-fragmentation in the recall tools, but each otherwise maps to a real operation.

Completeness4/5

Read and write paths are covered for notes, credentials, and context files, plus export/import and health diagnostics. Gaps exist around deletion/pruning of notes or sessions and no explicit session-creation tool (implicitly automatic), but core workflows are supported.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues