MCP server
@recit/mcp is a Model Context Protocol server. Any MCP host
(Claude Code, opencode, Codex, another one) connects to it over stdio, reads its guides and calls
its tools. Récit never calls a model: the host thinks and writes, the tools are deterministic,
and they answer with precise errors, one per node, with its line.
From Claude Code
Bash
recit mcp serve needs @recit/mcp, an optional package. --root <dir> bounds what the tools may
read and write. See the CLI reference.
From opencode
Declare the server in opencode.json at the root of the project:
JSON
opencode names the tools recit_<tool> (recit_, recit_), and
opencode mcp list shows whether the server is connected (recit connected).
Every host runs the same loop:
- Call
describe_withformat {"format":to read the format's guide and JSON schema."deck"} - Write the story in Markdown.
- Call
validate_withstory {"markdown":and fix any reported line."…"} - Write
lorem.mditself:story_can write an empty skeleton withfrom_ beats out, never the scenes' text, so the host still writes the story (only the film toolsbuild_film,apply_opsandextractwrite a film, under--root). - Call
validate_withstory {"file":, which answers a line starting with"lorem.md"} ✓ valid deck.
To export the guides and characters as opencode roles in .opencode/, run
recit skills export --.
Guides (resources)
A guide is a Markdown resource the host reads before it writes. Each one has a single source, in
@recit/mcp.
| Resource | What it holds |
|---|---|
recit:// | the motion loop: draft, validate, apply, render, and the rules |
recit:// | how to write a story in Markdown: separators, front matter, layouts, notes, MDX |
recit:// | how to draw a sprite in a ```pixel fence |
recit:// | the scenario method: brief, bible, beats, story, prompts, assets |
recit:// | how to build one coherent character in a bible |
recit:// | the guided writing workshop: nine steps, a gate per creative step, atelier.md |
recit:// | steps 1 and 2 of the workshop: spark, theme, logline, stakes, tone |
recit:// | step 4: the character interview, from the wound to the want |
recit:// | step 3: medium, palette, light, framing, three boards to choose from |
recit:// | steps 5 and 6: rules and their cost, places, the series and its debts |
recit:// | step 7: the episode sheet, synopsis, panel breakdown and tension curve, lines |
recit:// | step 9: a review that asks questions of intent and never rewrites |
recit:// | steps 5 to 8: the continuity rules of recit validate, each code and how to fix it |
recit:// | images, edits, video, voice and keys: without AI first, adapters |
Each format with a guide adds its own recit://; describe_ prints it.
The bible of the project is a resource too, read only: recit:// (or
recit://) serves the file under the server root as the author wrote it. A
file that is not a valid bible is refused with its diagnostics.
Prompts
A prompt is a user message assembled directly from the workshop guides (recit:// and
recit://). The MCP host shows them as commands; each prompt reads atelier.md
first, asks at most four questions at a time (one at a time in an interview), stops at every
creative gate, and the author always decides. At step 7, the beat_sheet prompt and the
story_ tool go together: the prompt guides the beat sheet, and the tool writes the empty
story skeleton from it.
| Prompt | Arguments (all strings) | What it starts |
|---|---|---|
story_intake | entry (optional: from scratch by default, resume an existing project, adapt, add an episode), project (optional project folder) | step 1 of the guided writing workshop (spark and theme, with recit://) from the chosen entry |
character_ | character (required: character id in the bible), bible (optional path, default cast.md) | step 4: the character interview, one question at a time from the wound to the want (recit://, recit://) |
beat_sheet | format (required: webtoon, motion, webstory, deck or book), beats (optional beats id, default bible.beats), scenes (optional count) | step 7: the episode beat sheet for the format (with recit:// when format is webtoon) |
Tools
| Tool | What it does |
|---|---|
validate_ | checks a film (Markdown or JSON), errors with their line |
validate_ | checks any other story (deck, docs, roadmap…), by line |
list_blocks, describe_ | the motion blocks and the props of one |
describe_ | the guide and the JSON schema of a format |
describe_ | read-only: the columns, their types, the row count and three rows of a data source of a report or a deck |
book_outline | the outline of a book: chapters and their sections, figures, notes, index terms, and its errors with their line |
expand_ | the occurrences of a calendar between two days in a time zone, recurrences and exceptions applied |
describe_, list_icons | the node vocabulary of a ui-scene, and the icon names an icon node may use |
list_ | the first-party templates |
list_themes, theme_import | the named themes, and a full theme derived from a brand |
propose_, build_film | a film from a handover the host wrote |
apply_ops | small edits of a film, scene by scene |
extract, render | read a handover or a rollup; render a film to MP4 |
lookup_term, search_ | the entries of a glossary or a directory |
describe_ | the entry types, trait keys and JSON schema of a bible |
validate_ | checks a bible with the rules of recit validate |
build_bible | a bible from a handover: ids from the names, every trait the author did not give marked {inferred} |
build_prompt, list_prompts | the text of an image prompt; each prompt and its image |
register_ | writes the provenance of an image generated elsewhere |
story_ | the skeleton of a story from a beat template: one empty scene per beat, the beat as notes |
check_ | the continuity of an episode or a bible: debts, dead characters, webtoon pacing, stage, and atelier.md beside a bible |
render_ | renders a pose or animation frame of a character as SVG |
expand_ | expands an animation into frame-by-frame postures |
build_ | the frame prompts of an animated prompt in a bible |
Character drawing (render_, expand_) uses @recit/, installed with
@recit/mcp. Reading a bible and building prompts come from @recit/, installed next to
@recit/mcp; it is not on npm yet, so they are available from a clone of Récit.
The rules every tool follows
- Nothing invented. No metric, no trait, no fact the author did not give. What an agent proposes
is marked as such (
{inferred}in a bible) until a human validates it. - Same schemas as the engine. Tool inputs are the zod definitions the parser uses; an object sent as a JSON string is accepted.
- Local only. The server runs on your machine, over stdio, and sends nothing anywhere.
When a tool misses a field the user must choose (story_: its format and its bible;
build_bible: the title of the bible and the name of an entry), it asks for it through MCP
elicitation when the client supports it. Otherwise, it answers with the list of the missing fields.
Récit never guesses them.
The guides as skills
A host without MCP reads the same guides as Agent Skills:
recit skills export writes one skill per guide, from the same source.