Skip to main content

Overview

The grab 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:
  1. Replace — Remove the existing agent and install the new one
  2. Add alongside — Keep both agents installed
  3. Cancel — Abort the operation

Example

Output:

Output Example

Troubleshooting

React Grab Not Installed

Solution: Run grab init first.

Agent Already Installed

Solution: Choose to replace or add alongside the existing agent.

Invalid Agent Name

Solution: Use one of the supported agent names.

Supported Agents