Skip to main content
Glama
README.md
# UnityPilot

[![npm version](https://img.shields.io/npm/v/unitypilot?color=cb3837&logo=npm&label=unitypilot)](https://www.npmjs.com/package/unitypilot)

> An MCP server that lets an AI agent drive the full Unity lifecycle on macOS, without
> the developer ever opening the Unity Editor by hand.

**๐Ÿ“ฆ npm package:** [npmjs.com/package/unitypilot](https://www.npmjs.com/package/unitypilot) ยท install with `npx -y unitypilot`

One `npm install`, and an AI agent can install Unity, scaffold a project, launch it (visible
or headless), import assets, build scenes, write & compile scripts, screenshot the view,
read the console, and run tests.

**โ†’ User docs, install, and the tool catalog: [`packages/orchestrator/README.md`](packages/orchestrator/README.md).**

This repo root is for working on UnityPilot itself. See `SPEC.md` for the full spec and
`CLAUDE.md` for the working agreement.

## โš ๏ธ v1 is macOS only

Apple Silicon (`arm64`) and Intel (`x64`) are supported. Windows and Linux exist only as
`NotImplemented` resolver stubs for contributors to fill in.

## Status

Phases 0โ€“6 complete (full lifecycle + the autonomous feedback loop). Phase 7 (packaging +
public release) in progress. Built strictly phase by phase โ€” see `SPEC.md ยง9`.

## Packages

- `packages/orchestrator` โ€” the Node/TypeScript MCP server (our code), published to npm as
  **`unitypilot`**. Bundles the bridge at pack time.
- `packages/bridge` โ€” the forked C# Unity (UPM) bridge, injected into projects via a `file:`
  reference. Fork of [CoderGamester/mcp-unity](https://github.com/CoderGamester/mcp-unity)
  (MIT); fork changes in `packages/bridge/FORK.md`.

## Develop (macOS)

```bash
corepack enable pnpm   # pnpm 9 ships with Node 22 via corepack
pnpm install
pnpm build
pnpm test
```

To produce a publishable tarball (copies the bridge into the package, then builds):

```bash
cd packages/orchestrator
npm pack            # runs prepack: bundle-bridge + tsc
```

## Out of scope for v1

Asset *generation*, Windows/Linux, Unity Asset Store distribution, and fully autonomous
visual correctness. See `SPEC.md ยง8`.