> ## Documentation Index
> Fetch the complete documentation index at: https://amd-gaia.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Git

> Let GAIA agents inspect and commit to a local Git repository.

> [!NOTE]
>
> **Connector ID:** `mcp-git` · **Type:** `mcp_server` · **Catalog entry:** [`src/gaia/connectors/catalog/mcp_servers.py`](https://github.com/amd/gaia/blob/main/src/gaia/connectors/catalog/mcp_servers.py)

## What you'll need

The connector is the reference [`mcp-server-git`](https://pypi.org/project/mcp-server-git/)
MCP server (pinned to `2026.8.18`). GAIA starts it on demand through `uvx` and routes
tool calls (`git_status`, `git_diff`, `git_log`, `git_show`, `git_create_branch`,
`git_checkout`, `git_add`, `git_commit`, and similar) through it. It works on repositories
on your own machine, so it needs **no account and no API key**.

The only requirement is [uv](https://docs.astral.sh/uv/) with `uvx` on your `PATH`:

```bash theme={null}
uvx --version
```

## Step 1 — Enable it

There is nothing to paste. Enabling the connector writes its launch entry to
`~/.gaia/mcp_servers.json`.

**From the CLI:**

```bash theme={null}
gaia connectors configure mcp-git
```

**From the Agent UI:**

1. Launch the Agent UI: `gaia chat --ui`.
2. **Settings** (gear) → **Connectors** → click the **Git** tile.
3. Enable it.

## Step 2 — Grant and activate it for an agent

An agent only sees the Git tools after you both **grant** it and **activate** the
connector for it (activation defaults to OFF):

```bash theme={null}
gaia connectors grants grant mcp-git installed:gaia --scopes "*"
gaia connectors activations activate mcp-git installed:gaia
```

(In the UI: the tile's **GAIA can use Git in chat** switch does both at once.) See the
[connections security model](https://amd-gaia.ai/docs/security/connections.md) for why visibility and
credential access are gated separately.

Then ask the agent, for example: *"What changed in `~/work/myrepo` since the last tag?"*

> [!WARNING]
>
> `git_commit` and `git_add` change your repository. Grant only the agents you trust
> to do that, and review what an agent commits before you push.

## Common issues

### `uvx: command not found`

Install [uv](https://docs.astral.sh/uv/) and open a new terminal so `uvx` is on your
`PATH`, then run `gaia connectors test mcp-git`.

### The agent can't find my repository

The server operates on the repository path the agent passes it. Give the agent the full
path to the repository root (the folder that contains `.git`).

## Revoking access

* **Per agent:** `gaia connectors grants revoke mcp-git installed:gaia`.
* **Entirely:** Settings → Connectors → Git → **Disconnect**, or
  `gaia connectors disconnect mcp-git`. The entry is dropped from `mcp_servers.json`.

## See also

* [Connectors overview](https://amd-gaia.ai/docs/connectors.md)
* [`mcp-server-git` on PyPI](https://pypi.org/project/mcp-server-git/)
* [Connectors security model](https://amd-gaia.ai/docs/security/connections.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.