# Hera Agent Unity MCP server

> Enables AI coding agents to inspect, control, and verify live Unity Editor sessions through a low-token command-line interface.

- Repository: https://github.com/NotNull92/hera-agent-unity
- Page: https://hostedmcp.org/servers/notnull92/hera-agent-unity
- Transport: stdio
- Stars: 30
- License: Apache-2.0
- Latest version: 0.2.17

## Install

### Claude Code

```sh
claude mcp add hera-agent-unity -- npx -y hera-agent-unity
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "hera-agent-unity": {
      "command": "npx",
      "args": [
        "-y",
        "hera-agent-unity"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "hera-agent-unity": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hera-agent-unity"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"hera-agent-unity","type":"stdio","command":"npx","args":["-y","hera-agent-unity"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "hera-agent-unity": {
      "command": "npx",
      "args": [
        "-y",
        "hera-agent-unity"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add hera-agent-unity -- npx -y hera-agent-unity
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.hera-agent-unity]
command = "npx"
args = ["-y", "hera-agent-unity"]
```

### Gemini CLI

```sh
gemini mcp add -s user hera-agent-unity npx -- -y hera-agent-unity
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "hera-agent-unity": {
      "command": "npx",
      "args": [
        "-y",
        "hera-agent-unity"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HERA_MCP_ENABLED` | no | no |  |

## Tools (5)

- `build_test_battle`
- `validate_item_database`
- `spawn_quest_fixture`
- `bake_localization_table`
- `check_prefab_rules`

## FAQ

### What can Hera do within Unity?

Hera allows agents to check editor health, manage scenes, edit components, work with assets, run C# code, create animations, and perform PlayMode testing.

### Does Hera replace the Unity Editor?

No, Hera acts as a bridge that connects an AI coding agent to your existing Unity Editor so the agent can work with real project facts.

### How does Hera handle Unity project startup?

If the Editor is not running, Hera can bootstrap the specific project using its recorded Unity version and wait for the project's heartbeat.

### Which AI agents are compatible with Hera?

Any shell-capable agent like Claude Code, Cursor, GitHub Copilot, or Codex can use Hera via its CLI.
