Skip to content

MCP setup

feather-cli mcp is a Model Context Protocol server that runs over standard input and output. It exposes every command in the catalog as an MCP tool, with the same JSON schemas and descriptions, so any MCP-capable AI client can author, play-test and inspect a Feather 2 project.

You can connect it in two ways:

Mode Agent works on Can see the viewport Needs the editor running
Live The project open in the editor, alongside you Yes Yes
Headless A project folder, in memory No No
  1. In Feather, open Settings → Tools → Automation & MCP and turn on Let AI tools connect. It stays on, across launches, until you turn it off.
  2. Under Connect your AI app, press your app once: Claude Code, Claude Desktop, Cursor, VS Code or Codex. Then restart or reload the app, as the message says. For any other MCP app, press Copy configuration and paste it into its MCP settings.

That is all: the connection keeps working when you restart Feather or open another project. The same set-up from a terminal:

Terminal window
feather-cli setup claude-code # or claude-desktop, cursor, vscode, codex
feather-cli setup # lists the apps and prints the configuration

Every app gets the same entry: this computer’s feather-cli with mcp, and nothing else.

{
"mcpServers": {
"feather": {
"command": "/Applications/Feather v2.app/Contents/MacOS/feather-cli",
"args": ["mcp"]
}
}
}

With no workspace, feather-cli mcp connects to the open editor and finds it again on every call. If Feather is not open, the app still lists every tool, and calls answer that Feather needs to be open with AI tools on.

App What the button does
Claude Code Runs claude mcp add --scope user feather -- <feather-cli> mcp, for all your projects. If Claude Code cannot be found, it shows that command to run in a terminal
Claude Desktop Adds Feather to claude_desktop_config.json (macOS and Windows)
Cursor Adds Feather to ~/.cursor/mcp.json
VS Code Adds Feather to your user mcp.json
Codex Adds [mcp_servers.feather] to ~/.codex/config.toml

Your other servers and settings stay as they are. A file that is not plain JSON (for example, one with comments) is left alone, and Feather shows the entry to add by hand. The previous file is kept once as <file>.feather-backup. Add feather-cli to the terminal links ~/.local/bin/feather-cli on macOS and Linux.

AI tools work in the folder of the project open in the editor; file operations such as open, save, import and export stay inside it. Open another project and they follow it. With an untitled project they use Documents/Feather Projects.

In the editor’s own Assistant tab, Claude asks before downloading Store packs (store.place, store.install), opening a checkout (store.buy) or opening another project (library.open_project).

The editor listens only on the loopback interface, with a random 256-bit token for each session. The connection details live in your Feather data folder (automation/editor-session.json): only your user can read them (owner-only on macOS and Linux; inside your user profile on Windows). Requests without the token are refused. The file goes away when you turn AI tools off or quit the editor. One editor window at a time can let AI tools connect.

A script can still launch the editor with an explicit session file and connect to it:

Terminal window
feather-editor --workspace /path/to/my-game --automation .feather-session.json --panel automation
feather-cli --connect /path/to/my-game/.feather-session.json command engine.status

The session file is created inside the workspace. Add --project FILE to open a specific project.

For a headless session, point the server at a workspace and, optionally, a project:

{
"mcpServers": {
"feather": {
"command": "/absolute/path/to/feather-cli",
"args": ["--workspace", "/absolute/path/to/my-game", "--project", "project.feather.json", "mcp"]
}
}
}

The document stays in memory for the whole MCP session. Call project.save to write it to disk. Commands that need a window, such as runtime.play and viewport.capture, return requires_live_editor.

Every tool accepts an optional expected_revision argument. Read the current revision first, for example with engine.status or project.inspect, then pass it with your edit. A stale revision returns revision_conflict and changes nothing. See Agents overview.

An agent can capture the real editor image and receive it as MCP image content:

  1. Call viewport.capture with a PNG path inside the workspace. It returns a job_id.
  2. Poll job.inspect with that job_id until status is completed (or failed).
  3. Call viewport.image with the same job_id. MCP returns the PNG as image content; the CLI returns it as base64.
Terminal window
feather-cli command viewport.capture --json '{"path":"captures/view.png"}'
feather-cli command job.inspect --json '{"job_id":1}'
feather-cli command viewport.image --json '{"job_id":1}'

To frame the shot first, use viewport.focus, viewport.frame_scene or viewport.view.set, and poll viewport.view.get with the returned request_id until it reports applied.

  • Images returned by viewport.image are at most 16 MiB.
  • Live jobs (capture, export and simulation) report running, completed or failed through job.inspect.
  • The server negotiates MCP protocol versions 2025-11-25, 2025-06-18 and 2025-03-26.

A typical agent loop against a live editor:

  1. engine.status — check for pending editor edits and Play state.
  2. Author with scene.*, prefab.* and the domain commands, passing expected_revision.
  3. game.simulate — check gameplay without a renderer; see Simulation.
  4. viewport.capture → job.inspect → viewport.image — look at the result.
  5. project.save — write the project.