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 |
Connect your AI app to the editor
Section titled “Connect your AI app to the editor”- In Feather, open Settings → Tools → Automation & MCP and turn on Let AI tools connect. It stays on, across launches, until you turn it off.
- 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:
feather-cli setup claude-code # or claude-desktop, cursor, vscode, codexfeather-cli setup # lists the apps and prints the configurationEvery 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.
Where the agent can work
Section titled “Where the agent can work”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).
How the live connection is secured
Section titled “How the live connection is secured”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.
Scripts that start their own editor
Section titled “Scripts that start their own editor”A script can still launch the editor with an explicit session file and connect to it:
feather-editor --workspace /path/to/my-game --automation .feather-session.json --panel automationfeather-cli --connect /path/to/my-game/.feather-session.json command engine.statusThe session file is created inside the workspace. Add --project FILE to open a specific project.
Connect headlessly
Section titled “Connect headlessly”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.
Revisions in MCP
Section titled “Revisions in MCP”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.
Let the agent see the viewport
Section titled “Let the agent see the viewport”An agent can capture the real editor image and receive it as MCP image content:
- Call
viewport.capturewith a PNG path inside the workspace. It returns ajob_id. - Poll
job.inspectwith thatjob_iduntilstatusiscompleted(orfailed). - Call
viewport.imagewith the samejob_id. MCP returns the PNG as image content; the CLI returns it as base64.
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.
Limits
Section titled “Limits”- Images returned by
viewport.imageare at most 16 MiB. - Live jobs (capture, export and simulation) report
running,completedorfailedthroughjob.inspect. - The server negotiates MCP protocol versions 2025-11-25, 2025-06-18 and 2025-03-26.
Automate it
Section titled “Automate it”A typical agent loop against a live editor:
engine.status— check for pending editor edits and Play state.- Author with
scene.*,prefab.*and the domain commands, passingexpected_revision. game.simulate— check gameplay without a renderer; see Simulation.viewport.capture→job.inspect→viewport.image— look at the result.project.save— write the project.