SIAgentNews.com
← All news

A comic-making server gives AI coding agents a memory for characters and pages

A dev.to tutorial shows how a stateful MCP server keeps a comic character the same across pages and fixes one speech bubble without redrawing the page.

· First reported by DEV Community

18agent-callable MCP tools in the comic studio

The short version

  • Plain image APIs forget earlier pages, so a character drifts and fixing one typo can ruin the rest of a page.
  • The studio splits the work into four steps across 18 tools: character vault, chained pages, region patch, translation.
  • A bubble fix leaves a 2%–3% buffer around the edit area, and everything outside the box stays untouched.
  • A login bug on Cloudflare Workers caused HTTP 500 errors until the team checked tokens locally.
  • The authors admit crowded panels can still drift, so a human has to look before chaining the next page.

Why it matters

Anyone asking an AI agent to produce a series, not a single picture, runs into forgetfulness. This tutorial shows one way to fix it: keep memory on a server and let the agent call it. The same idea applies to any multi-step creative job, though the numbers and results here come from the builders themselves.

Why one-shot image calls fail

As dev.to reported, a team behind a product called StarVeil AI wrote up how they built a comic studio that AI coding agents can use. The starting point is a problem most people who have tried AI comics will recognize: a plain text-to-image service treats every request as brand new. It has no memory of page one when you ask for page two.

The post lists three failures. First, identity drift: describe the same character in four separate requests and you get four slightly different people. Second, what the authors call the 95%-finished trap: three panels look right, one speech bubble has a misspelled name, and redrawing the whole page wrecks the panels you liked.

Third is text growth in translation. The post cites W3C internationalization guidance saying that moving compact Chinese or Japanese dialogue into English or Spanish makes the text 30%–60% longer. Simple overlays that paste new text onto the old bubble then clip or cover the artwork.

Four steps, with memory in between

The studio runs over MCP, the Model Context Protocol, a shared standard that lets AI tools call outside services. It uses a web-based connection that supports streaming results. "Stateful" simply means the server remembers what happened in earlier calls. The post splits the job into four stages, spread over 18 tools.

  • Character vault. You save a character once, either from an uploaded photo (0 credits) or an AI-made reference sheet (20 credits). Later pages refer to it by an ID.
  • Chained pages. Each new page points to the previous page's task ID, so outfits and ink style carry over even when the layout changes. A 3:4 page costs 25 credits, and the first is free on the trial plan.
  • Region patch. One box on the page is rewritten while the rest is locked (details below).
  • Localization. A finished page can be turned into versions in six languages: English, Simplified and Traditional Chinese, Japanese, Korean and Spanish. This costs 10 credits per page.

Fixing one bubble without a reroll

The most practical idea is the three-zone edit. You give the server a box, written as fractions of the page from 0 to 1. Inside it is the zone to be rewritten. Just outside is a thin buffer of 2%–3%, there so old letters leave no ghost marks. Everything beyond that stays anchored.

In the post's example, the instruction asks for a text-only change inside one white speech bubble, with the exact new words spelled out, and tells the system to leave faces and lighting alone. The authors point to research on masked inpainting, which means redrawing only a masked part of an image, to argue that the shape of the mask matters as much as the written prompt.

An edit costs 25 credits, and the first one is free on the trial plan. That is the same price as a new page, so the saving is in keeping your good panels, not in cost.

The login bug that returned errors

The post also shares a bug story that will interest anyone running a service for AI agents. When the team submitted the server to Glama, a directory of MCP connectors, the browser login worked. Yet the directory's hourly checks that list the available tools kept returning HTTP 500, a generic server error.

The cause was how the login library verified tokens. It fetched its public signing keys from the team's own web address. On Cloudflare Workers, that request loops back to the same Worker and fails under the platform's proxy rules. The fix was to look the keys up directly in the team's Cloudflare D1 database and verify the token locally, still checking the issuer and audience. The authors say errors stopped and Glama now reports the connector as healthy.

The lesson is general: a service that calls itself over the public internet to check a login can break in ways that only show up under automated testing.

Connecting it, and the honest limits

For Claude Code, the post gives a single command that adds the server and then uses a one-click browser approval, so no secret gets pasted into a chat. For Cursor, Antigravity, Codex and command-line use, an install script sets up a plugin and a skill file. Automated jobs such as n8n or GitHub Actions can use a revocable personal API key instead.

The authors are candid about limits. You still need to look at each page before building the next one, because crowded four-character panels and tricky hand or prop overlaps can drift. It is not a substitute for print production that needs layered files. And speech bubbles should stay short, since tiny text or long paragraphs in narrow balloons hurt readability with any model.

Keep in mind this is a tutorial for the authors' own paid product. New verified accounts get one free page, one free edit and free photo uploads. Credit packs start at $6 for 1,000 credits, which the post says covers about 40 pages. We have not tested any of it, and the post does not say which image model runs underneath.

What to watch

  • Do the character and page chaining hold up on crowded panels, where the authors say drift can still happen?
  • Which image model sits underneath, and can the same pattern work with models you run yourself?
  • Will other tools adopt server-side memory through MCP so any compatible agent can reuse it?

Try it

Before connecting any MCP server to your editor, check what it can read and write, and where it stores your project. Try a throwaway project first.

Sources and links

Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

More AI news