palette-docs
v0.1.0
Published
Palette Docs: lets Palette Code read HWP/HWPX/DOCX/XLSX/PPTX/PDF/ZIP and images, and create DOCX/HWPX/XLSX/PPTX (PDF and legacy formats via LibreOffice). MCP server + CLI.
Readme
Palette Docs
Documents and images for Palette Code: an MCP server (palette-docs mcp) and a CLI, no native toolchain needed.
Read (markdown out, tables kept): hwp hwpx docx doc rtf odt xlsx xlsm xls ods csv tsv pptx
ppt odp pdf html txt md json xml yaml, and zip (expands up to 20 files). Up to 20 files per call.
Images as references: png jpg webp gif bmp tiff heic svg avif → EXIF-rotated, resized to 1568 px,
returned as an image block the vision seats (palette-llm-max, palette-llm-fast) can see. Images embedded in
hwp/hwpx/docx/pptx/xlsx/zip can be pulled out as files.
Create from markdown (headings, paragraphs, bullets, numbered lists, tables, code): docx hwpx xlsx pptx
md txt csv html natively; pdf doc xls ppt odt ods odp rtf through LibreOffice when it is
installed. hwp (binary 5.0) cannot be written: create hwpx, which 한글 opens as a native document (the file starts
from Hancom's own blank template, with real tables, shaded header rows and repeated headers).
Fonts: font picks the family for docx/xlsx/pptx/html (default 맑은 고딕 / Malgun Gothic; Noto Sans KR, Apple SD
Gothic Neo, 나눔고딕 work the same way). HWPX keeps Hancom's default faces.
npm i -g palette-docs
palette-docs read 제안서.hwp # markdown on stdout
palette-docs create 보고서.hwpx 보고서.md --title "3분기 보고서"
palette-docs create 보고서.pdf 보고서.md # needs LibreOffice
palette-docs convert 제안서.hwpx docx
palette-docs image IMG_0042.heic # IMG_0042.normalized.jpg
palette-docs formatsPalette Code pre-configures the server as docs in palette-code.json:
"docs": { "type": "local", "command": ["palette-docs", "mcp"], "enabled": true, "codemode": false }Tools: read_document, read_documents, read_image, extract_images, create_document, convert_document,
list_formats. Tests: node test/run.mjs (real HWP/HWPX samples, every writer read back, images, zip, LibreOffice,
MCP round trip).
MIT. See NOTICE.md.
