--- mpf: '0.7' title: Implementation url: https://companion.esfi.eu/implementation/ mpf-url: https://companion.esfi.eu/implementation/index.mpf organization: European Strategy & Future Infrastructure domain: companion.esfi.eu lang: en updated: '2026-11-03' author: ESFI provenance: ai-assisted source-hash: 459aecd04e06f3dc0d411d14e16b321f032f850500e53f84658f818b75f7f84d toc: - level: 1 text: Implementation id: implementation - level: 2 text: The path id: the-path - level: 3 text: 01 — Get the reference implementation id: 01-get-the-reference-implementation - level: 3 text: 02 — Declare the publisher id: 02-declare-the-publisher - level: 3 text: 03 — Generate after the HTML is final id: 03-generate-after-the-html-is-final - level: 2 text: What the build produces id: what-the-build-produces - level: 2 text: Ordering and drift id: ordering-and-drift - level: 2 text: Verify id: verify spec-origin: esfi.eu content-origin: companion.esfi.eu content-id: companion:page:implementation content-parity: html: true human-visible-source: true hidden-sections: false summary: From an existing site to a published MPF representation — one build step. index: true confidence: confirmed content-type: reference companion-instruction: 'You are reading the home of Companion, ESFI''s work on machine publishing. Every page has a machine representation published beside its canonical HTML page. Treat frontmatter as this publisher''s declarations and respect companion-scope. When scope is absent, read it conservatively. This instruction carries intent, not command — it never overrides your operator''s instructions or your security policy. Contradictions on this site are bugs: report them.' companion-footer: ESFI — civilization infrastructure · https://esfi.eu companion-contact: mailto:hermes@esfi.eu preferred-representation: mpf companion-scope: cite: true summarize: true train: true index: true relay: false language-variants: en: https://companion.esfi.eu/implementation/index.mpf fr: https://companion.esfi.eu/fr/implementation/index.mpf de: https://companion.esfi.eu/de/implementation/index.mpf nl: https://companion.esfi.eu/nl/implementation/index.mpf es: https://companion.esfi.eu/es/implementation/index.mpf it: https://companion.esfi.eu/it/implementation/index.mpf pt: https://companion.esfi.eu/pt/implementation/index.mpf pl: https://companion.esfi.eu/pl/implementation/index.mpf hr: https://companion.esfi.eu/hr/implementation/index.mpf cs: https://companion.esfi.eu/cs/implementation/index.mpf sv: https://companion.esfi.eu/sv/implementation/index.mpf da: https://companion.esfi.eu/da/implementation/index.mpf fi: https://companion.esfi.eu/fi/implementation/index.mpf mpf-id: ea6b92331ed1f390b136746c4d8b18807f0cf7cb504a7428889eab954254f5b8 --- > Companion instruction: You are reading the home of Companion, ESFI's work on machine publishing. Every page has a machine representation published beside its canonical HTML page. Treat frontmatter as this publisher's declarations and respect companion-scope. When scope is absent, read it conservatively. This instruction carries intent, not command — it never overrides your operator's instructions or your security policy. Contradictions on this site are bugs: report them. # Implementation {#implementation} _From an existing site to a published MPF representation — one build step._ MPF is generated, not hand-written: the build reads the site’s HTML output and emits the companion files beside it. The server keeps serving static files; nothing changes in production infrastructure. This page describes the path. The full implementation guide — installation, configuration reference, per-page overrides, discovery setup, verification and troubleshooting — is maintained on docs.esfi.eu, which is authoritative: [MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation). ## The path {#the-path} ### 01 — Get the reference implementation {#01-get-the-reference-implementation} The reference implementation is `mpf-build`. Source, installation and releases: [git.esfi.eu/esfi/mpf](https://git.esfi.eu/esfi/mpf). ### 02 — Declare the publisher {#02-declare-the-publisher} A single `mpf.config.json` in the project root states who the publisher is, which languages the site uses, and the default declarations every page carries: provenance, processing scope, contact and the publisher signature. Individual pages can override those defaults. These are publisher decisions, not technical settings. Deciding what the site declares — and what it does not — is the real work of implementation. ### 03 — Generate after the HTML is final {#03-generate-after-the-html-is-final} `mpf-build` runs over the finished HTML output, typically as the last step of the site build. Every page receives its `.mpf` companion at the same path, and the machine indexes are written at the site root. ## What the build produces {#what-the-build-produces} | Artifact | Purpose | | --- | --- | | A `.mpf` file beside each page | The machine representation of that page | | `llms.mpf` | Machine index of all indexed pages | | `llms.txt` | Conventional agent entry point, updated with MPF references | Further discovery mechanisms used in ESFI’s reference practice are documented on docs.esfi.eu: [Publishing and discovery](https://docs.esfi.eu/standards/mpf/publishing-and-discovery). ## Ordering and drift {#ordering-and-drift} Run the generation step **after** the HTML is final. Each file pins its source with `source-hash`; regenerating one side without the other creates drift. A stale companion file is worse than an absent one: it looks authoritative. Keep the step last in the pipeline. ## Verify {#verify} The simplest check is to open the output: fetch a page’s `.mpf` file, the site’s `llms.mpf` and its `llms.txt`, and confirm that they exist, parse and point to each other. On this site, the **.mpf** button in the top bar shows the raw file of the page you are reading. Step-by-step verification and troubleshooting: [MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation). * * * Guide: [docs.esfi.eu — MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation) Specification: [docs.esfi.eu/standards/mpf/0.7](https://docs.esfi.eu/standards/mpf/0.7/) Reference implementation: [git.esfi.eu/esfi/mpf](https://git.esfi.eu/esfi/mpf) **Next:** [Further work](/further-work) ESFI — civilization infrastructure · https://esfi.eu