Connector
The Récit connector is the small public part of Récit: it validates a story written as JSON (its twin) against the published schema, and sends it to the Récit service, which renders it as a deck, a webtoon, a book in PDF or a film. The engine stays on the service; the connector carries only the schema and a client of the service's API.
Getting the alpha
The alpha will ship as one archive, such as recit- (the number is not
final), the way the other private packages of Récit ship. Nobody will download it from a registry:
the Récit team will hand it to the people it is meant for. Once you have it, install it from the
file, in a project or globally:
Bash
The archive holds the connector alone. Its only dependencies are zod and the MCP SDK; no package
of the engine comes with it.
What the alpha does not do yet:
- Render on the service.
send,renderand the MCP toolrender_storyspeak the contract of the service's render routes, which are not online yet; until they are, the alpha validates stories and renders none. - Update itself. A new alpha is a new archive, installed the same way over the old one.
- Keep its interface. Until its first release, a command, an option or an export may change from one alpha to the next; the stability promise of 1.0 does not cover it.
What you need
- A story twin, a
.jsonfile withkind:(or a sidecar with"story" kind:). The schema is published at"sidecar" https://; an editor that readsrecit. dev/ schema/ v1/ story.json $schemacompletes and checks it as you type. - To render: the address of the service (
RECIT_) and a personal token of your account with theAPI_ URL render:writescope (RECIT_), created on your account page. Validation needs neither.API_ TOKEN
From a terminal
Bash
validate reads the file, checks it against the schema the connector carries, and prints each
problem with its path in the document. It never reaches the network.
Bash
send and render validate the story first and send nothing when it is invalid. --to is the file
to render, one of pdf, pptx or mp4; the format comes from the story itself, and each format
renders to its own files only:
| Story format | --to |
|---|---|
deck | pdf, pptx |
book, webtoon | pdf |
motion (a film) | mp4 |
| Exit status | Meaning |
|---|---|
0 | valid, or the render was accepted (send) or succeeded (render) |
1 | invalid story, refusal of the service, or a failed render |
2 | usage error: unknown command, missing --to, no service set |
From an agent
recit- is an MCP server over stdio. Add it to your MCP host (Claude Code, Claude
Desktop or any other) with the two variables above; without them, only validation works.
JSON
| Tool | What it does |
|---|---|
validate_ | checks a twin or a sidecar against the schema, offline |
render_story | validates a twin, then asks the service to render it to one output |
get_render | reads the status of a render, and the link to its file once succeeded |
An agent writes the story as JSON, calls validate_ until it is valid, then render_story,
and follows the render with get_render until it has succeeded.
From TypeScript
TypeScript
validateStory(document, "sidecar") checks a sidecar instead. A refusal of the service throws
RecitApiError, with its HTTP status and the service's error code.
The service's contract
The connector speaks two routes of the service, with the token in Authorization::
| Route | Body or answer |
|---|---|
POST / | sends { output, story }; answers 202 { job } |
GET / | answers { job } |
| a job | { id, format, output, status, error, bytes, downloadUrl } |
| a refusal | { error, issues?: a code, and for a refused story the problems of its schema |
status is one of queued, running, succeeded or failed. Once a job has succeeded,
downloadUrl is a link to its file valid one hour (read the job again for a fresh one); the
connector shows it as url. A failed job names its error (invalid_, render_,
timeout, output_ or storage_). Renders count against the quota of your account:
past it, the service answers 429 render_.