# Hera Agent Unity [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/NotNull92/hera-agent-unity  
**GitHub Stars:** 30  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hera-agent-unity

## Description
Control and verify a live Unity Editor through a local, low-token MCP server.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/NotNull92/hera-agent-unity), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install --global hera-agent-unity
```

2. Install:

```sh
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/NotNull92/hera-agent-unity/main/install.ps1 | iex"
```

3. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/NotNull92/hera-agent-unity/main/install.sh | bash
```

4. Install:

```sh
hera-agent-unity install
```

## Documentation

## What Hera Agent Unity does

Hera Agent Unity gives an AI coding agent a working interface to the Unity Editor behind a local command-line workflow. It is aimed at the feedback loop that source editing alone cannot cover: compiling scripts, inspecting the active project and Scene, running the game, exercising UI, capturing rendered output, and checking whether the result actually works.

The agent can query Editor health, Unity version, project identity, compilation state, and Console errors. It can also inspect Scenes, search GameObjects, read Components and Inspector values, and modify the project by creating or editing Scenes, GameObjects, serialized Component fields, assets, animations, Animator state machines, and Timeline content.

## How it works

The workflow is built around observe, change, run, verify, and repair. Hera waits for meaningful Unity state changes such as compilation, domain reloads, Play Mode transitions, test completion, and project heartbeat publication. This helps an agent distinguish a completed operation from a request that was merely accepted.

A local CLI can launch or restart the selected project when its Editor is unavailable. Hera reads the Unity version from `ProjectSettings/ProjectVersion.txt`, finds the matching Hub installation through `UNITY_HUB_EDITOR` or the platform default, and waits for the exact project to publish its heartbeat. A custom Hub directory can be supplied with `--hub-root`.

The server is designed for compact agent context. Common reads can return focused results, such as GameObject IDs without unnecessary state, while more detailed information can be requested when needed. Multiple open Editors can be targeted by project identity, including when ports change during reloads or restarts.

## Setup and configuration

Hera runs on Linux, macOS, and Windows. The repository targets Go 1.25 or newer and Unity 6000.6 or newer. Its normal production path is a CLI, so an agent needs to be able to execute shell commands; a separate Python server and host-protocol configuration are not required.

Typical commands include:

- `hera-agent-unity status` to inspect Editor health
- `hera-agent-unity console --type error` to read errors
- `hera-agent-unity scene info` to inspect the active Scene
- `hera-agent-unity editor play --wait` to enter Play Mode and wait for the state change
- `hera-agent-unity test --mode PlayMode` to run PlayMode tests
- `hera-agent-unity --project C:/Projects/Game editor launch` to start a project
- `hera-agent-unity --project C:/Projects/Game editor restart` to restart it

On Windows, the launcher can restore the standard common-profile environment for the Unity child when an agent shell lacks it, helping Package Manager path resolution match a normal desktop launch.

## Tools and capabilities

Hera covers both project editing and verification:

- Inspect Editor status, project identity, compilation, Console errors, Scenes, GameObjects, Components, and Inspector values.
- Create, save, duplicate, rename, parent, transform, tag, layer, and delete GameObjects and Scenes.
- Find, create, copy, move, and delete assets under `Assets/`.
- Execute project-specific C# with access to Unity APIs and project assemblies.
- Run EditMode and PlayMode tests, retaining results across domain reloads.
- Enter and stop Play Mode, inspect the resulting state, and capture Scene, Game, or isolated-object views.
- Author uGUI layouts, inspect UI raycasts, synthesize and replay Input System keyboard or mouse sequences, and compare captured UI against a reference.
- Create project-specific actions marked with `[HeraTool]`; these appear automatically as custom studio commands.
- Preflight destructive operations and require a matching approval token before continuing.

## Limitations and notes

Hera connects an agent to the live Unity Editor; it does not replace Unity or the coding agent. Visual and input checks are bounded: supported evidence includes uGUI identity and coordinates, `Camera.main` 3D physics evidence, rendered captures, and recorded Input System sequences. The launcher depends on the project’s recorded Unity version and an available matching Hub installation. The supported workflow is intended for shell-capable agents and local project automation.

_Full upstream README: https://allmcps.com/mcp/hera-agent-unity/readme_

