Overview
Thegrab add command connects React Grab to your coding agent, enabling seamless context sharing. It supports legacy agent integrations and MCP server installation.
Usage
Arguments
| Argument | Description |
|---|---|
[agent] | Optional agent name: cursor, claude, copilot, windsurf, or mcp |
Options
| Option | Alias | Description | Default |
|---|---|---|---|
--yes | -y | Skip confirmation prompts | false |
--cwd <cwd> | -c | Working directory | Current directory |
Examples
Interactive Mode
Run without arguments to choose from available options:Add Specific Agent
Specify the agent directly:Non-Interactive Mode
Install an agent without prompts:MCP Server Installation
When selecting MCP, the CLI will:Agent Replacement
If you already have an agent installed, you can:- Replace — Remove the existing agent and install the new one
- Add alongside — Keep both agents installed
- Cancel — Abort the operation
Example
Output Example
Troubleshooting
React Grab Not Installed
grab init first.
Agent Already Installed
Invalid Agent Name
Supported Agents
| Agent | Name | Description |
|---|---|---|
| Cursor | cursor | Cursor IDE integration |
| Claude Desktop | claude | Claude Desktop app integration |
| GitHub Copilot | copilot | GitHub Copilot integration |
| Windsurf | windsurf | Windsurf IDE integration |
| MCP Server | mcp | Model Context Protocol server (recommended) |
Related Commands
grab init— Initialize React Grab in your projectgrab remove— Disconnect agent integrationsgrab configure— Configure React Grab options
