v8unpack-cf — read and write 1C binary artifacts
Two workflows live here, and they are not variants of one thing:
| You have | Route | Section |
|---|---|---|
One ordinary form — .../Forms/<Форма>/Ext/Form.bin | MCP tools unpack_ordinary_form / build_ordinary_form | Ordinary forms — Form.bin |
| A whole CF / CFE / EPF binary | v8unpack CLI (-E / -B) | Whole binaries — CF / CFE / EPF |
Use either when the 1C:Enterprise platform is not at hand. When the configuration
lives in an infobase, extract it through the platform instead — see the
getconfigfiles rule.
Dependency
v8unpackPython package —pip install "v8unpack>=1.2.6,<2". Verify withpython -m v8unpack --help.- Both MCP servers declare it in their own requirements, so the tools work in a
built image. When it is missing they answer
status="error",error_code="dependency_missing"with the install line inhint— that is the answer, not a crash.
Ordinary forms — Form.bin
Before any ordinary-form tool call or payload edit, read ordinary-forms.md: exact MCP contract, workspace, workflow and warnings. Never edit Form.bin directly or deflate its entries. Edit payload/, preserve the manifest, and require logical payload verification before delivery.
Whole binaries — CF / CFE / EPF
Before whole-binary extraction, build, indexing or Python API use, read whole-binaries.md. On Windows use --processes 1 unless parallel processing is validated for the artifact. A rebuilt current-configuration .cf is not a loadable substitute for a platform-written file; the limitations below apply.
Limitations
Of the CLI route:
- Object properties and form layout are stored in
header/rawas raw arrays. - Files larger than 1 MB (layouts, HTML) are stored as
.binwithout decoding. - Encrypted modules are kept in binary form.
- With
--auto_include, nested objects are sorted alphabetically.
Of ordinary forms specifically — measured on a real extraction (1C-Gitter
1.1.0.8, 170 form artifacts, v8unpack 1.2.6), not assumed:
*.elem.jsonis populated for managed forms and empty for ordinary ones. 23 of 23 managed forms (Тип формы=1) came back with a namedtree; 147 of 147 ordinary forms (Тип формы=0, element version''or0-5-1) came back empty, because neither version is in v8unpack'sFormCore.supported_form_versions(0-26,0-27,1). So for the ordinary forms of a modern configuration the CLI route yields no named elements, and the layout has to be read fromForm.bin— positionally.v8unpack1.2.6 cannot write a container with compressed entries throughContainer.build(nested=False)— it raisesstruct.error, becauseDocument.compressreturns no table-of-contents offset. Irrelevant for aForm.bin: its entries must be plain anyway (see ordinary-form warnings), and the MCP codec writes them plain with verbatim (nested=True) container records. Relevant only if you drive the library directly for a whole CF / CFE / EPF.- A
.cfrebuilt with-Bfrom a current configuration is not the configuration — see whole-binary build. Observed metadata degradation on 8.3.27; the platform is the only writer of a loadable configuration file. - A rebuilt binary's SHA-256 always differs from its source (write timestamps). Compare logical payload, not the container hash (see ordinary-form warnings).
Relationship to other rules
getconfigfiles— extracts configuration objects from a running infobase through the platform. Prefer it when an infobase is available; usev8unpack-cfwhen you only have a binary artifact and no platform.1c-metadata-manage— MCP-based skill for operating on the metadata structure once the sources are unpacked. It owns managed forms (Ext/Form.xml); ordinary forms are this skill's, because there is no XML for it to edit.forms.md— the router for managed-form work. It sends ordinary forms here.mcp-1c-tools— the MCP catalog.unpack_ordinary_form/build_ordinary_formare listed there under both1c-code-metadata-mcpand1c-graph-metadata-mcp; ordinary-forms.md is the contract they share.


