# Gemini CLI

{% embed url="<https://www.youtube.com/watch?v=IXWHD-5m1KM>" %}

## Install Metabob

To get started, you need to install the Metabob CLI tool. If you don't have access to it yet, please request it by contacting <axel@metabob.com>.

#### Step 1: Download the latest version of metabob-cli

Download the current Metabob CLI release for your operating system.

####

#### Step 2: Move metabob-cli into your system PATH

Place the file in a directory included in your PATH, or another convenient execution location.

Make sure that the file is executable.

####

#### Step 3: Make the CLI executable

On Mac/Linux:

```
chmod +x metabob-cli

## change metabob-cli to whatever name it is stored with in your computer

```

#### &#x20;Step 4: Create the Metabob configuration directory

In your project root:

```
/.metabob
```

#### Step 5: Create config.json inside .metabob/

The config name should be: .metabob/config.json

Add the following configuration:<br>

```
{
 "base_url": "https://ide.metabob.com",
 "state_directory": ".metabob",
 "session_path": null,
 "output_path": null,
 "include_paths": ["add/paths/to/include.py"],
 "exclude_paths": [
   "add/paths/to/exclude/here",
   "**/node_modules/**",
   "**/__pycache__/**",
   "**/venv/**",
   "**/dist/**",
   "**/build/**",
   "**/target/**",
   "**/bin/**",
   "**/obj/**",
   "*.pyc"
 ]
}

```

Fields to update in the .metabob/config.json

* include\_paths — directories Metabob should analyze
* exclude\_paths — directories Metabob should ignore
  * Other fields should not require modifications

####

#### Step 6: Add Metabob to the Gemini CLI MCP settings

Edit .gemini/settings.json and include the following code:

```
{
  "mcpServers": {
    "metabob": {
      "command": "/usr/local/bin/metabob-cli",
      "args": ["mcp", "--transport", "stdio"],
      "env": {
        "METABOB_CONFIG": ".metabob/config.json"
      }
    }
  }
}
```

Fields to update:

* "command" — full path to the metabob-cli executable
* "METABOB\_CONFIG" — full path to .metabob/config.json

#### Step 7: Start the Gemini CLI

Grant OS security permissions if needed.

Gemini should automatically load the Metabob MCP.<br>

#### &#x20;Step 8: Verify MCP connection

With Gemini, run:

```
/mcp list
```

If successful, metabob will be listed, and its available tools will be displayed<br>

#### Step 9: Confirm Metabob state tracking

Metabob maintains a live state file inside your .metabob/ directory. This file will update along with your code changes

If you cannot get the Metabob MCP to work on Gemini CLI, please contact <axel@metabob.com>.
