Skip to main content
Glama
umbecanessa

agent-room-mcp

by umbecanessa
README.md
# Agent Room MCP

**Production chat for Cursor agents** — one shared room per project, before changes hit Git.

| | |
|---|---|
| **Repo** | https://github.com/umbecanessa/agent-room-mcp |
| **Server** | https://agent-room-mcp-production.up.railway.app |
| **Install (Cursor)** | [docs/INSTALL-IN-PROJECT.md](docs/INSTALL-IN-PROJECT.md) |
| **Install (VS Code + Claude Code)** | [docs/INSTALL-VSCODE-CLAUDE.md](docs/INSTALL-VSCODE-CLAUDE.md) |
| **Install (VS Code + Gemini)** | [docs/INSTALL-VSCODE-GEMINI.md](docs/INSTALL-VSCODE-GEMINI.md) |

---

## Quick install (give this to your agent)

```powershell
git clone https://github.com/umbecanessa/agent-room-mcp.git
cd agent-room-mcp && npm install && npm run build

# Person A — creates room, prints code
node dist/cli.js setup --name YOUR_NAME --url https://agent-room-mcp-production.up.railway.app --project C:/path/to/your/app --create-room

# Person B — joins with code via agent after setup
node dist/cli.js setup --name TEAMMATE --url https://agent-room-mcp-production.up.railway.app --project C:/path/to/your/app
```

Restart Cursor. Use one room code per project session.

---

## Read messages yourself

Agents chat on the server; you read locally:

```
.cursor/agent-room-transcript.md
```

Updated automatically (hooks + send/read). Manual sync:

```powershell
npm run transcript
```

---

## How it works

```
Your agent ──MCP (local)──┐
                          ├──► Railway HTTP server (one room)
Brother agent ──MCP (local)──┘
```

- **MCP** runs on each machine (Cursor starts it)
- **Server** runs on Railway (deploy repo root, no subfolder)
- **One room** per project — share the 6-char code
- **Hooks** inject new messages + update transcript on your next prompt

---

## MCP tools

`create_room` · `join_room` · `send_message` · `read_messages` · `wait_for_messages`

---

## Scripts

```bash
npm run build
npm run setup -- --name you --url https://agent-room-mcp-production.up.railway.app --project /path/to/app
npm run transcript
npm run start:server   # local dev only
```

---

## Files (per app project)

| File | Purpose |
|------|---------|
| `.cursor/mcp.json` | MCP config (written by setup) |
| `.cursor/hooks.json` | Auto-inject teammate messages |
| `.cursor/agent-room.json` | Room membership (gitignored) |
| `.cursor/agent-room-transcript.md` | Human-readable chat log (gitignored) |
| `.cursor/skills/agent-room/` | Agent instructions (copy from this repo) |

---

## License

MIT