Ligamen

Extensions

AI Assistant and MCP

Ligamen Studio can work together with an AI agent. Inside the editor, the AI Assistant panel is a chat in which Claude or Codex reads your rig, edits it, renders frames to check the result and shows them to you. From the outside, the same abilities are available to any program that speaks MCP (Model Context Protocol), such as Claude Code, Codex or Claude Desktop. This article shows how to connect an agent, how to talk to the assistant, how the Permissions settings limit what it may do, and how to connect an external agent over MCP. The article is about the editor's side only. What an agent can build depends on the model and on your instructions.

Connecting an agent#

Open Settings and the AI tab, which is titled AI agents. It is one compact list of every configured agent, with the program or endpoint, the model and the status. Press Add to set up Claude, Codex or Gemini, or to create an OpenAI-compatible connection, for example a local server such as Ollama or LM Studio. Select a row to open the parameters of that agent below the list.

Claude and Codex run through the command-line programs installed on your computer, under your own account, so you do not paste an API key. The Sign in... button opens a terminal with the program's own login, and Check again tests the connection. Leave the program path empty and Ligamen finds it itself. The API provider option uses a key instead. Type it into the key field and press Check key. Keys go to the system credential store, the macOS Keychain or the Windows Credential Manager, and are never written into a project file. If that store is unavailable, a note under the list says that the keys stay in the settings file. For an OpenAI-compatible endpoint, give the address, the model name and, if the server needs one, a key. The Tool calling switch lets that model edit the project.

Talking to the assistant#

Open the panel with Panels, AI Assistant, or press Ctrl+Shift+A. Choose Claude or Codex in the header and write what you want in the field at the bottom: rig this character, add a walk cycle, check why a mesh deforms badly. The assistant reads the project, calls the editor's tools and answers in the chat. When it renders a frame to look at its work, the picture appears in the conversation.

The toolbar under the field has Attach file, Attach viewport screenshot, a chip with the current edit mode, Stop and Send. A screenshot is the quickest way to show the assistant what you see. Stop interrupts the current request. The panel's header has a New chat button, which starts a fresh conversation, so the agent forgets the previous one, and a shortcut to AI settings. Before each message Ligamen gives the agent its built-in skills, short guides to the editor's concepts, bone roles, cutting a character into parts and a walk cycle, so you do not have to explain them.

Every change that the assistant makes is one undo step, labelled AI: ... in the history, so Ctrl+Z takes back an assistant's edit exactly like your own. A batch of edits that fails midway is rolled back as a whole, and the assistant never opens a dialog in your editor.

Permissions#

The Permissions card of the AI settings limits the assistant. The Edits switch has three modes, and the same choice is available from the chip in the panel:

Below it the Tools row has a switch for each category of tools: inspect, project, import, rig, skin, animate, export, edit and plugin. A category that is switched off is refused. The plugin category, for tools that plugins add, is off by default. The option Allow reading and writing outside the project folder is off by default too. While it is off, a file path outside the project folder makes the assistant ask you first.

MCP for external agents#

Ligamen starts a local control endpoint with the editor. It listens on 127.0.0.1 only, on port 8765 unless you change it, and it requires a secret token that the editor generates at each start. Requests that come from a web page are refused, so a site open in your browser cannot drive the editor. The MCP bridge card of the AI settings has the Let Claude Code / Codex / Claude Desktop drive the editor (MCP) switch, the Address with the port, and the Connect selector with Claude Code, Codex and Other MCP. Below it is the exact command to run for the chosen agent, for example claude mcp add ligamen -- python -m ligamen.mcp_server for Claude Code, which you copy and run once in a terminal. A change of the switch or the port takes effect after you restart the application.

When the agent starts, it connects to the running editor and sees the tools of the editor, about forty of them: inspecting the skeleton, animations and images, rendering a frame, project commands, import of PSD files and image folders, rigging of bones, slots, constraints and skins, meshes and weights, animation with many keys in one step, and export. The card shows the number of tools it found. The editor must be running for the agent to use them. The same permissions as in the panel apply to an external agent. Plugins can add their own tools with register_ai_tool, as described in Plugins.

An external agent can also fetch the built-in skills ligamen-basics, bone-roles, character-cutout and walk-cycle through the tools ligamen_list_skills and ligamen_get_skill.