Connect an AI agent

Let an AI agent you run on your Mac read your pages, or build them with you, in the documents you have open.

How it works

MangaLoft for Mac can accept a connection from an AI agent on the same Mac, through the Model Context Protocol (MCP). The agent is a program you install and run yourself, for example Codex from OpenAI. Once connected, it can read and edit the documents you have open, unless you keep one out.

With access, an agent can read your pages and your notes, look at a page or one panel as a picture, and build pages with you: frames and panels, placed images, drawings with your brush presets, balloons and their tails, lettering, tones and Script Tones, layers and their order. MangaLoft has a guide built in that tells the agent how. You keep export, permanent deletion and collaboration to yourself: an agent never does those.

Before you start

1. Turn it on

First, close any manuscript you don't want an agent to see: while the switch is on, any program on this Mac can read and edit every open document, including ones you open later.

Choose MangaLoft ▸ Settings, then in AI Agents turn on Allow AI agents to connect. The first time, MangaLoft explains what an agent can see; choose Allow Connections.

The switch is off each time MangaLoft starts, and it turns itself off 32 hours after you turn it on. Turn it on again when you want an agent to connect.

2. Give the agent the connection settings

In the same place, choose Copy Connection Settings. It copies a short block of settings with the address:

{
  "mcpServers" : {
    "mangaloft" : {
      "type" : "http",
      "url" : "http://127.0.0.1:47615/mcp"
    }
  }
}

Give it to your agent where it keeps its MCP servers; each agent's own documentation says where. For Codex, see Make a manga with Codex.

The address stays the same each time you turn the switch on, so you paste the settings once. Only if another program is already using it does MangaLoft choose another address; then copy the settings again. While the switch is on, any program on your Mac can connect, not only your agent, and it can read and edit every open document (see the next step). Turn the switch off when you're done.

3. Keep a document out

While the switch is on, an agent can read and edit every open document. To change that for one document, open it and choose File ▸ AI Agent Access:

The document stays that way until the switch goes off. The document window shows what the agent may do, with a Stop Agent Access button, which works like No Access. A shared collaboration document is never open to agents.

4. Ask

Tell the agent what you want, in your own words. For example:

Before the agent's first change to a document, MangaLoft keeps a safety copy of it.

For a whole short manga made with an agent, from the story to translated pages, follow Make a manga with Codex.

Undo, and taking access back