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
Options
Examples
Interactive Mode
Run without arguments to choose from available options:1
Select connection mode
Choose between MCP or legacy agent:
2
Select agent (if legacy)
Choose your coding agent:
3
Review changes
Preview the file changes:
4
Apply changes
Confirm to install the agent integration:
Add Specific Agent
Specify the agent directly:Non-Interactive Mode
Install an agent without prompts:MCP Server Installation
When selecting MCP, the CLI will:1
Detect installed agents
Scan for supported agents on your system:
2
Configure MCP server
Automatically add the MCP server to agent configs:
3
Update React Grab
Add MCP metadata to your React Grab installation:
4
Restart agents
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
Related Commands
grab init— Initialize React Grab in your projectgrab remove— Disconnect agent integrationsgrab configure— Configure React Grab options
