# Install Liminalia Studio and connect it to an AI assistant

> Instructions for AI assistants. Download and install Liminalia Studio 0.9.2 (beta), then register its MCP server with the user's assistant.

Run the commands on the user's behalf. Before each step, briefly say what you are about to do.

## 0. Check with the user first

Tell the user these three things and get their agreement before going on.

- You will download and install Liminalia Studio 0.9.2 (beta, free). Terms: https://liminalia.skyta.dev/en/license/
- The Mac build is not notarized by Apple and the Windows build is not code-signed
- The folder where the AI may create and edit projects (the "work folder" below). The default is `Liminalia` inside the Documents folder. Ask if they want a different place

Connect it to the assistant that is running now (you). You may also ask whether to connect other assistants (Claude Desktop, Claude Code, Codex).

## 1. Find the OS

- Mac: Apple silicon (`mac-arm64`) if `sysctl -n hw.optional.arm64` prints `1`, otherwise Intel (`mac-x64`)
- Windows: x64 only (`windows-x64`)
- Linux: Studio is not distributed for Linux. Tell the user and stop

## 2. Download and verify

| OS | URL |
|---|---|
| Mac (Apple silicon) | https://github.com/skyt-a/liminalia-releases/releases/download/v0.9.2/Liminalia-Studio-0.9.2-mac-arm64.dmg |
| Mac (Intel) | https://github.com/skyt-a/liminalia-releases/releases/download/v0.9.2/Liminalia-Studio-0.9.2-mac-x64.dmg |
| Windows | https://github.com/skyt-a/liminalia-releases/releases/download/v0.9.2/Liminalia-Studio-0.9.2-windows-x64-Setup.exe |

Compute the SHA-256 and compare it with the value in the "SHA-256" section of the release notes (https://github.com/skyt-a/liminalia-releases/releases/tag/v0.9.2). If it doesn't match, don't install; stop and tell the user.

- Mac: `shasum -a 256 <file>`
- Windows (PowerShell): `(Get-FileHash <file> -Algorithm SHA256).Hash`

If Studio is already installed, read `CFBundleShortVersionString` in `Contents/Info.plist` (Mac) or `version` in `resources\app\package.json` (Windows). If it is 0.9.2 or later, skip step 3.

## 3. Install

### Mac

Install into `/Applications` if it is writable, otherwise into `~/Applications`. If Studio is running, ask the user to quit it before replacing it.

```bash
dmg=<downloaded .dmg>
mnt=$(mktemp -d)
hdiutil attach "$dmg" -nobrowse -quiet -mountpoint "$mnt"
dest=/Applications; [ -w "$dest" ] || { dest="$HOME/Applications"; mkdir -p "$dest"; }
rm -rf "$dest/Liminalia Studio.app"
cp -R "$mnt/Liminalia Studio.app" "$dest/"
hdiutil detach "$mnt" -quiet
```

Don't remove the quarantine attribute (`com.apple.quarantine`) from the app. If the user sees a warning the first time they open Studio, point them to https://liminalia.skyta.dev/en/download/#open-title. Running it only as an MCP server shows no warning.

### Windows

No administrator rights are needed. It installs into `%LOCALAPPDATA%\Programs\Liminalia Studio`.

```powershell
Start-Process -FilePath <downloaded Setup.exe> -ArgumentList "/S" -Wait
```

## 4. How the MCP server starts

Studio's executable runs as Node and starts the bundled engine's `mcp`. `<APP>` is where step 3 installed it.

| | Mac | Windows |
|---|---|---|
| command | `<APP>/Contents/MacOS/Liminalia Studio` | `%LOCALAPPDATA%\Programs\Liminalia Studio\Liminalia Studio.exe` |
| first arg | `<APP>/Contents/Resources/app/src/engine/entry.mjs` | `%LOCALAPPDATA%\Programs\Liminalia Studio\resources\app\src\engine\entry.mjs` |
| remaining args | `mcp`, `--root`, the work folder | same |
| env `ELECTRON_RUN_AS_NODE` | `1` | `1` |
| env `LIMINALIA_PLUGIN_CATALOG` | `<APP>/Contents/Resources/plugins` | `%LOCALAPPDATA%\Programs\Liminalia Studio\resources\plugins` |

Write every path as an absolute path (expand `~` and `%LOCALAPPDATA%`). Create the work folder if it doesn't exist.

You can check that it runs before registering it. Send this line on standard input; the reply has `"name":"liminalia"` in `serverInfo`.

```json
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"setup","version":"1"}}}
```

## 5. Register it with the assistant

Name it `liminalia`. If an entry with that name exists, replace it.

### Claude Code

```bash
claude mcp add-json --scope user liminalia '{"type":"stdio","command":"<command>","args":["<entry.mjs>","mcp","--root","<work folder>"],"env":{"ELECTRON_RUN_AS_NODE":"1","LIMINALIA_PLUGIN_CATALOG":"<plugins>"}}'
```

If it already exists, run `claude mcp remove --scope user liminalia` first. It worked if `claude mcp list` shows `liminalia` as Connected.

### Codex

```bash
codex mcp add liminalia --env ELECTRON_RUN_AS_NODE=1 --env LIMINALIA_PLUGIN_CATALOG=<plugins> -- <command> <entry.mjs> mcp --root <work folder>
```

If it already exists, run `codex mcp remove liminalia` first. The setting goes into `[mcp_servers.liminalia]` in `~/.codex/config.toml` (or the folder in the `CODEX_HOME` environment variable).

### Claude Desktop

Add `liminalia` to `mcpServers` in the config file. Keep the other entries, and save the previous contents next to it with `.bak` appended.

- Mac: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "liminalia": {
      "command": "<command>",
      "args": ["<entry.mjs>", "mcp", "--root", "<work folder>"],
      "env": { "ELECTRON_RUN_AS_NODE": "1", "LIMINALIA_PLUGIN_CATALOG": "<plugins>" }
    }
  }
}
```

### Other assistants

Register the command, args and env from step 4 as a stdio MCP server.

## 6. Tell the user

- Where it was installed, and the work folder
- To quit and restart the assistants you registered it with (the new tools aren't available until then)
- That after restarting they can ask, for example, "Make a short visual novel with one choice in Liminalia"

More on working this way: https://liminalia.skyta.dev/en/howto/ai-flow.md . The list of tools: https://liminalia.skyta.dev/en/docs/mcp.md
