About Server
Server is an MCP server published by Wiseair-srl in the Blockchain category: generate professional .docx and .pptx files from JSON definitions. Conduid read 15 tools from its source: jto_critique, jto_describe_component, jto_discover, jto_docx_diff, jto_generate, jto_info and 9 more. No package is published for it, so it installs from a source checkout.
The repository has 29 stars and 1 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is @json-to-office/core-docx@7.7.3 (19 Oct 2026): Patch Changes ed26ae3: The words a document accepts through noProofWords, on the theme or on the document's props, are now marked w:noProof wherever they appear, not onl… It follows @json-to-office/core-docx@7.7.2 (19 Oct 2026), and the 5 most recent releases go back to @json-to-office/core-docx@7.7.1 (18 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include cli, document-generation, docx, json, office and open-source.
Install
git clone https://github.com/Wiseair-srl/json-to-officeTools (15)
jto_critiqueReview a workspace document the way a person would, and keep the score honestly. `action: "inspect"` renders the workspace at its current revision (or the `revision` you name), and returns: one contact sheet tiling every page, up to ${MAX_EVIDENCE_PAGES} full-resolution pages chosen where the rendered pass found something, that pass's findings as diagnostics with certainty "rendered", the rubric as data, and a run id. Look at the images — that is the point of the call — and judge the document against the rubric's five levels and its shipping question. `action: "record"` files that judgement: the `runId` you were given, `verdict` "ship" or "iterate", and a `rationale` naming the page and the element that decided it. A ship verdict answers for the inspection's integrity findings — text clipped, spilled, overlapping or missing on the rendered page: while one is neither repaired nor accepted in `accept`, with the reason the page shows it is wrong about this document, the record is refused (E_CRITIQUE_OPEN_FINDINGS) and no round is spent. Only recording counts as a round. Inspecting twice does not, and re-sending the same `runId` after a dropped response returns the round already filed rather than a second one. A verdict is about the revision it was formed against, so a record is refused once the workspace has moved past that revision — inspect again and judge what is there now. ${MAX_CRITIQUE_ROUNDS} recorded iterate rounds is the limit; the third answers with a stop recommendation, because past three rounds subjective polish stops converging. Nothing here blocks jto_generate. Needs LibreOffice and poppler on the host (see jto_info.previewDependencies). FIDELITY: ${PREVIEW_FIDELITY_NOTE}jto_describe_componentThe exact JSON Schema one component must satisfy under one renderer, plus the children it accepts, the containers that accept it, and which renderers support it. Nested components collapse to their names — describe those separately rather than reading one giant schema.jto_discoverFormats, component names per format, renderer profiles and their ids, built-in themes, and starter documents you can copy and edit. Deliberately compact: no schemas. Call jto_describe_component for one component’s exact schema.jto_docx_diffCompare two DOCX document definitions and produce a redline .docx that opens in Word with native tracked changes, plus a structured summary of what changed. DOCX only. Changes with no native Word revision (tables, images, charts) are reported under `summary.untracked` — read it, because they are invisible as revisions in the file itself. Pass `dryRun: true` for the summary without rendering.jto_generateRender a document to a real .docx or .pptx. The file is written under the server output root and returned as a path; pass `outputMode: "base64"` only for small artifacts. A document that fails the generation gate comes back with `ok: false` and the same path-addressed diagnostics jto_validate reports, never as an error — an image that cannot be read included, as `E_ASSET_UNREADABLE` at its path (a URL, or a path fed through a block slot, carries no pointer; `context.source` names what the render tried). An unfilled scaffold slot (`{{…}}`) is always refused here even though jto_validate lets a draft pass, so fill every slot before generating. Warnings the render emitted (unresolved fonts, a `theme` or `props.theme` naming nothing) arrive as warning-severity diagnostics alongside a successful artifact. The DOCX `highcharts` component draws through a Highcharts export server that must be running on the host (see jto_info.previewDependencies.highchartsExportServer); the `visual` component needs no such service.jto_infoVersions, supported formats with each renderer and whether its backend loads here, workspace availability and whether workspaces survive a lost connection, output-root and size limits, and whether the optional host dependencies (LibreOffice and poppler for jto_preview, a Highcharts export server for the DOCX `highcharts` component) are present on this host. Call this first.jto_previewRender a document to PNG pages and look at them. Use this whenever the question is visual — did the table overflow, did the title wrap, is the slide crowded — rather than reasoning about the JSON. Pages are selected with printer syntax, 1-based and inclusive: "all" (default), "3", "2-5", "4-" (to the end), "-3" (from the start), or a comma-separated mix like "1-3,7". At most ${MAX_PREVIEW_PAGES} pages per call. Set renderedFindings: true to also run the rendered-certainty pass over the PDF LibreOffice produced: text past the page edge or its frame, words drawn over each other, authored text that never rendered, substituted font families, empty pages, pages left more than half blank before a page break, headings stranded at a page foot and paragraphs split into a lone line. They come back as quality diagnostics with certainty "rendered", each with a mapping status (`context.mapping`) and page; `rendered` summarises the pass. The pass judges by the same `quality` profile and policy `jto_validate` takes — a profile can switch a rendered rule off or move its severity, a policy can suppress one at a pointer or gate it — and by the document’s declared profile or the format default otherwise. Generation never runs the pass, so nothing here blocks `jto_generate`; an unmapped finding is a mapping gap to look at, not noise. Set contactSheet: true to get one labelled image tiling every selected page instead of the pages themselves — the way to judge cross-page consistency (rhythm, alignment, chrome) in a single look. It renders at ${CONTACT_SHEET_DPI} DPI unless `dpi` says otherwise, inlines when the sheet fits one image block, and is written to the output root when it does not. Delivery: outputMode "auto" (default) inlines the pages as images when they fit the client-safe budget (at most ${MAX_INLINE_IMAGE_PAGES} pages, ${Math.round(MAX_INLINE_IMAGE_BYTES / 1024 / 1024)} MB per page, ${Math.round(MAX_TOTAL_INLINE_BYTES / 1024 / 1024)} MB total) and otherwise writes PNG files under the server output root and returns their paths. "images" refuses rather than falling back; "path" always writes files. Image blocks follow the text block in page order and correspond to the entries of `pages` whose delivery is "image". FIDELITY: ${PREVIEW_FIDELITY_NOTE} Needs LibreOffice and poppler on the host (see jto_info.previewDependencies); when either is absent the call returns a structured error naming what to install, never a crash.jto_scaffoldThe first move for a report: pick a blueprint from jto_discover (or jto://blueprints), name the theme and what you know of the brief, and get back a draft workspace — a handle at revision 1 — plus a fill map listing every `{{…}}` marker still owed: its JSON pointer, kind, budget and the guidance for filling it. The scaffold is schema- and semantic-valid, carries the block definitions it invokes, and names its quality profile, so jto_validate judges it against the archetype from the first call and reports the markers as advisory draft findings with `generationReady: false`; jto_generate refuses until every marker is replaced. Fill slots by pointer with jto_workspace_patch. A brief fact fills props.metadata.<key> and the <key> slot of the cover, running head and memo header (`title` is a memo’s subject); a markdown outline fills the body — `#` is the title, each `##` in order the next section opener (on a deck, the next content slide’s title), each `###` beneath it the next sub-heading, the paragraphs that section’s body text (on a deck, the slide’s text, support or takeaway). On a deck the outline also decides the slides: a section whose bullets are all `Label: figure` measurements becomes KPI rows of at most four in order; a section with more bullets than a slide’s list holds becomes as many slides as it needs, the later ones titled “(cont.)”; a markdown table fills the two-column slide’s evidence column, numeric columns right-aligned; and a `Source:` line fills the source of every slide the section became. Where the variant draws no slide of the shape a section asks for, the section is filled as the variant’s own slide and the answer says so. Whatever matches nothing is reported.jto_validateCheck a document against its format schema and report every defect as a path-addressed diagnostic. Paths are RFC 6901 JSON Pointers into the document you passed, so they can be used directly as patch targets; codes are the stable `E_`/`W_` vocabulary. `ok` mirrors generation: schema and semantic errors block; design-quality `W_QUALITY_*` findings advise by default and block only when `quality.policy.gate` requests it. What the document points at is checked too: a `props.theme` that names no theme (`W_UNKNOWN_THEME`) and an image file that cannot be read (`E_ASSET_UNREADABLE`), with relative paths resolved against `baseDir` as jto_generate resolves them. A broken document is a normal result with `ok: false`, never a protocol error. `includeCompiled` returns the compiled form — every block (`document-local JSON blocks`, …) lowered in place to the primitives the renderer draws — with a source map from compiled pointers back to the authored slots.jto_workspace_closeRelease a handle and everything behind it — the document, its pinned snapshots, and the durable copy when this connection keeps one. Idempotent: closing a handle that is already gone reports `closed: false` rather than failing. Snapshot anything you still want first — closing is not recoverable.jto_workspace_createHold a document on the server so later calls can name it by `handle` instead of resending the JSON. Returns the handle and revision 1. Omit `document` to start from an empty skeleton and patch content in. Nothing is validated here — call jto_validate when you want it.jto_workspace_inspectRead an open document, or — with `paths` — only the JSON Pointers you name, which is the point of a workspace on anything large. Pointers that resolve nowhere come back in `missingPaths` rather than as null, so "absent" stays distinguishable from "present and null".jto_workspace_listEvery document open on this connection, with its revision and size. Call this to recover handles you no longer have — it is the cheapest way back after losing track of what you opened, including after a reconnect when the server has a workspace directory. An empty list means nothing is open, not that anything failed.jto_workspace_patchApply an RFC 6902 patch atomically: the whole patch is checked, applied to a copy, and committed only if every operation lands — a failure leaves the document exactly as it was and does not burn a revision. Pass `baseRevision` to make the write conditional on the document not having moved. Invalid intermediate states are kept on purpose; validate when you are ready.jto_workspace_snapshotExport the authoritative JSON and pin the revision it was taken at, so jto_workspace_inspect can still read that exact tree after later patches. Take one before a restructuring you could not cleanly undo. With `filename` the JSON is written under the server output root and returned as a path instead of inline.Security checks
- ✓README presentThe repository's README runs to about 3.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 760 source files and found 14 calls to eval or shell execution, in packages/jto-ops/src/pdf-fonts.ts, packages/jto-ops/src/pdf-page-ink.ts and packages/jto-ops/src/pptx-rasterizer.ts among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 3.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README