# Connect Antigravity CLI to iReading Room over MCP

Antigravity CLI gets your project's new arXiv papers. It calls one read-only tool with your token. Everything you need is on the sheet. The steps below explain it.

Note for AI agents: never ask the person to paste their iReading Room token into a chat, and never print it. They enter it themselves.

Last checked: 2026-11-21

## The sheet

- Token: Make one in the app: [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
- Keep it: `export RR_TOKEN=<paste the token>`
- File: `~/.gemini/config/mcp_config.json`. It holds the token itself, in your home folder.
- Add it:

  ```bash
  agy mcp add --header "Authorization: Bearer ${RR_TOKEN}" \
    reading-room https://app.ireadingroom.com/api/mcp
  ```
- Check: In Antigravity CLI, type `/mcp`. reading-room should be active.
- Server: `https://app.ireadingroom.com/api/mcp`
- Tool: `get_matches`, read-only
- Time: About 5 minutes
- Checked: 2026-11-21

## Set it up

1. **Make a token.** In the app, open [Settings, then MCP](https://app.ireadingroom.com/settings/mcp).
   1. Name it. For example: *Antigravity CLI on my laptop*.
   2. Pick when it expires: 30, 90 or 365 days.
   3. Pick the project. Your agent sees only that one.
   4. Press **Create token**. Copy it now. It shows only once.
2. **Add the server.** Run the Keep it line, then the Add it command, once, in one terminal. These commands are for macOS and Linux. The flag comes before the name. Antigravity CLI saves the server in the file on the sheet, for all your projects. It can't read RR_TOKEN later, so the file holds the token itself. Never put the token in a project's `.agents/mcp_config.json`, where it can be committed.

```bash
export RR_TOKEN=<paste the token>
agy mcp add --header "Authorization: Bearer ${RR_TOKEN}" \
  reading-room https://app.ireadingroom.com/api/mcp
```

3. **Start Antigravity CLI.** Run `agy` in your project's folder and sign in. It connects to reading-room when it starts.
4. **Check it.** Type `/mcp`. reading-room should be active. Antigravity CLI asks before it calls the tool.

[Antigravity CLI's MCP guide](https://antigravity.google/docs/mcp) has more options.

No account yet? [Try it free](https://app.ireadingroom.com/signup?src=site&cta=docs).

## Your first prompt

Ask in plain words. If Antigravity CLI skips the tool, name `get_matches`.

> Ask reading-room for today's papers. Which one should this project try first, and why?

## If it fails

- Not active: reading-room isn't active in `/mcp`. The token may be missing, wrong, expired or revoked. Make a new one. Do step 2 again: the Add it command replaces the old entry. Then restart `agy`.
- Not available: Your project isn't ready yet. Describe it in the app, then wait for its first day's papers.
- `not_ready`: Not ready yet. Try again later, or ask for an earlier day.
- `out_of_window`: Ask for today or the 6 days before.

## What your agent sees

Your agent gets your recommended papers. It also gets your interest names. It sends them to the AI model it uses. You can revoke a token at any time. [Privacy details](https://ireadingroom.com/privacy#app-agent-access)

Next: [The get_matches tool: every field and status](https://ireadingroom.com/docs/mcp/reference.md)
