1. Conduid
  2. Maps
  3. HwpForge
MCP server · Maps

HwpForge

Rust library for programmatic control of Korean HWPX documents — Markdown→HWPX conversion, JSON round-trip editing, MCP server for AI agents 🔥

53Fair

Scored 4 hours ago · breakdown

About HwpForge

HwpForge is an MCP server published by ai-screams in the Maps category: rust library for programmatic control of Korean HWPX documents — Markdown→HWPX conversion, JSON round-trip editing, MCP server for AI agents 🔥. Conduid read 19 tools from its source: hwpforge_convert, hwpforge_delete_para, hwpforge_diff, hwpforge_fields, hwpforge_fill, hwpforge_from_json and 13 more. No package is published for it, so it installs from a source checkout.

The repository has 20 stars and 5 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include cli, document, hancom, hwp, hwpx and korean.

Install

From source
git clone https://github.com/ai-screams/HwpForge

Tools (19)

hwpforge_convertConvert Markdown to a Korean HWPX document (KS X 6101 standard). Supports GFM tables, images, headings, and Korean typography. Returns the output file path and document summary. The original package's signature or encryption state is not inherited when rebuilding from Markdown.
hwpforge_delete_paraDelete top-level body paragraphs by index, all-or-nothing, keeping unrelated content. Admission-approved deletion updates affected layout caches. Fail-closed: refuses a paragraph carrying a reference (bookmark/cross-ref/footnote/…), a hard page/column break, the section properties (the first paragraph), or that would empty the section. Delete can also remove verified plain or empty top-level body paragraphs from Hancom-saved HWPX. Indexes refer to positions in the input. The source-preserving path accepts one paragraph per request and removes only that paragraph, preserving surviving line caches, table heights, IDs and unrelated part payloads. It removes Preview and its connections with PREVIEW_REMOVED. Documents whose line widths may depend on position retain their original admission error. A header that differs only by older Hancom direct paragraph-measure or tab definitions does not block this path; the header stays byte-for-byte, and decoding may still report PARAGRAPH_MEASURE_NORMALIZED. Saving again in Hancom rebuilds the preview. Unverifiable inputs retain their original admission error and produce no output. CONTENT_LOST reports information not represented by the input decode. Source-preserving delete succeeds only after separately proving that information survives in the output and does not affect the deletion decision; the original decode warnings remain. This applies only to some losses whose information remains in the source XML (such as per-language character values); all other CONTENT_LOST inputs retain their original refusal. Input-loss refusals for whole-document re-encoding edits remain in force. Verify the result with hwpforge_diff.
hwpforge_diffCompare two HWPX files. semantic channel = decoded Core structure classified into field values, table-cell text {table,row,col}, paragraph text {section,para}, structure counts, and a capped unclassified remainder; package channel = ZIP entries compared by bytes. Run after hwpforge_fill / hwpforge_set_cell / hwpforge_stamp / hwpforge_patch to confirm only the intended delta landed. Wire content inside a changed entry (e.g. layout caches) is not itemized — the report states its comparison levels explicitly.
hwpforge_fieldsList named click-here fields (누름틀) in an HWPX document: name, hint, current value, and whether each is fillable. Use before hwpforge_fill to discover field names.
hwpforge_fill
hwpforge_from_jsonCreate an HWPX document directly from a JSON structure (ExportedDocument schema). The original package's signature or encryption state is not inherited. Use when building documents programmatically without Markdown. Get the schema from hwpforge_to_json output. For large documents, prefer hwpforge_to_json + hwpforge_patch workflow with file paths instead of inline JSON.
hwpforge_insert_paraInsert new top-level paragraphs before or after an anchor paragraph, keeping unrelated content and updating affected layout caches: text for one paragraph, or texts for a contiguous block inserted in order in one verified edit. Each new paragraph inherits the anchor's paragraph and character shape (no style is invented); every entry is a single line of plain text. Insert-before the section's first paragraph is refused. Only round-trip-safe inputs are editable: a document whose ZIP entries the encoder cannot all carry — a document saved by Hancom, which adds Preview/* and META-INF/container.rdf — is refused here, while hwpforge_to_json + hwpforge_patch (text) and hwpforge_fill (click-here fields) still accept it. Verify with hwpforge_diff.
hwpforge_inspectInspect an HWPX document structure. Returns section count, paragraph counts, tables, images, charts, headers, footers, page numbers per section, and any decode warnings. A count's prefix names its scope: unprefixed keys are top-level only, `all_*` counts objects anywhere in the section including captions but not master pages, and `deep_*` counts paragraphs recursing into table cells, text boxes, notes and memos. The scopes can disagree on documents with nested content.
hwpforge_outlineShow the document navigation map for an HWPX file: headings (level + text), tables (ordinal + logical grid dims + addressable), named click-here fields, and bookmarks. Name anchors are the primary keys; {section, para} locators are secondary and go stale after structural edits. Fetch this once before targeted reads or edits.
hwpforge_patchReplace a section in an existing HWPX file with edited JSON data. Preserves images and styles from the base file. Use after hwpforge_to_json for surgical edits. Text-only: the edited JSON must keep the section's paragraph structure — a replacement whose semantic text slots differ in count or path is refused. Add or remove paragraphs with hwpforge_insert_para / hwpforge_delete_para, change table cells with hwpforge_set_cell, and rebuild a restructured document with hwpforge_from_json.
hwpforge_readRead a targeted text projection without exporting the whole document. Exactly one target: section (paragraph range via optional paras "A..B") for text with outline/list kinds; table (ordinal) for the logical grid text matrix (merged regions appear once at their anchor with spans); field (name) for a named click-here field. Non-text content surfaces as explicit markers. Read-only: to change what you read, use hwpforge_fill / hwpforge_set_cell / hwpforge_patch.
hwpforge_restyleApply a different style template (preset) to an existing HWPX document. Replaces fonts and paragraph styles while preserving document content and structure. Use hwpforge_templates to discover available presets.
hwpforge_set_cellEdit table cells by logical grid address in an HWPX file. Address a cell with a table ordinal (to-json export order) plus at {row,col} (covered positions resolve to their merge anchor), right_of LABEL, or below LABEL (normalized exact match). Empty text clears the cell. All-or-nothing. If every requested cell is in a direct body table with one paragraph and one Text run (including an empty run), and its source location and header can be preserved, only its text slot is changed; paragraph/table properties and source outside the slot are preserved. Changed values remove existing Preview and its connections with PREVIEW_REMOVED; unchanged values return the original bytes. If any cell is outside this subset or its text cannot be spliced, the whole batch uses re-encoding with the existing round-trip and package-preservation admission checks, which can refuse Hancom-saved documents carrying Preview/* or META-INF/container.rdf. Cells containing tables/images/controls are rejected. Address errors and verification failures return errors. For other text edits, use hwpforge_to_json + hwpforge_patch; for click-here fields, use hwpforge_fill.
hwpforge_stampPromote prose placeholders to named click-here fields (누름틀) using the approved spec list from hwpforge_stamp_plan. Fail-closed admission gate (lossless round-trip + ZIP closed-world) + all-or-nothing preflight; writes the stamped HWPX and a manifest. The gate refuses a document whose ZIP entries the encoder cannot all carry — a document saved by Hancom, which adds Preview/* and META-INF/container.rdf — while hwpforge_to_json + hwpforge_patch (text) and hwpforge_fill (click-here fields) still accept it. The output is immediately usable with hwpforge_fields/hwpforge_fill.
hwpforge_stamp_planDiscover class-A placeholder candidates (checkbox/paren-blank/date-blank/standalone-@/seal tokens) in an HWPX for template stamping. Author one spec per candidate (field name or ignore) and pass them to hwpforge_stamp. Guarded candidates (instruction context) are never auto-applied.
hwpforge_templatesList available style presets (templates) for HWPX document generation. Returns preset names, descriptions, fonts, and page sizes. Call before hwpforge_convert to choose a preset.
hwpforge_to_jsonExport HWPX to JSON for editing. Use section parameter (0-based) to extract a single section for token efficiency. Returns JSON inline while the serialized response stays under 1 MB — the document JSON is escaped into a string field, so the effective document-JSON limit is content-dependent and below 1 MB (typically ~750-800 KB); larger exports are rejected with OUTPUT_TOO_LARGE — or writes to file with output_path.
hwpforge_to_mdConvert an HWPX document to Markdown. Extracts text, headings, tables, and images from the HWPX file. Returns the path to the generated Markdown file and any extracted image files.
hwpforge_validateValidate an HWPX file structure and integrity. Returns validation status, section/paragraph counts, any issues found, and any decode warnings (present whether or not the document validated). A file that cannot even be decoded (wrong format, corrupt package — for example a .hwp file) is reported as a DECODE_FAILED error, not as an invalid document. Use to verify files before editing or after generation.

Security checks

  • ✓README presentThe repository's README runs to about 2.4K words.

5 checks have not been run yet.

README

The repository's README runs to about 2.4K words. The original in the repository is authoritative.

Read full README
Questions

About HwpForge

How do I install HwpForge?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is HwpForge safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is HwpForge still maintained?

Yes — the last commit was 19 hours ago. The repository has 20 stars and 5 forks.

What tools does HwpForge provide?

Conduid read 19 tools from the source: hwpforge_convert, hwpforge_delete_para, hwpforge_diff, hwpforge_fields, hwpforge_fill, hwpforge_from_json, hwpforge_insert_para, hwpforge_inspect and 11 more.