--- mpf: '0.7' title: Implementacja url: https://companion.esfi.eu/pl/implementation/ mpf-url: https://companion.esfi.eu/pl/implementation/index.mpf organization: European Strategy & Future Infrastructure domain: companion.esfi.eu lang: pl updated: '2026-11-03' author: ESFI provenance: ai-assisted source-hash: d2045146e4903f1ef259bb00b16afef42d9e4c3d4332c8c756eb2621c968d503 toc: - level: 1 text: Implementacja id: implementacja - level: 2 text: Ścieżka id: ścieżka - level: 3 text: 01 — Pobierz implementację referencyjną id: 01-pobierz-implementację-referencyjną - level: 3 text: 02 — Zadeklaruj wydawcę id: 02-zadeklaruj-wydawcę - level: 3 text: 03 — Generuj po finalizacji HTML id: 03-generuj-po-finalizacji-html - level: 2 text: Co produkuje build id: co-produkuje-build - level: 2 text: Kolejność i drift id: kolejność-i-drift - level: 2 text: Weryfikacja id: weryfikacja 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: Od istniejącej witryny do opublikowanej reprezentacji MPF — jeden krok build. 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: 7e718a2e3d64d23d19187c5b69919b388bb6e83669d71e8bf4e092399c868c54 --- > 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. # Implementacja {#implementacja} _Od istniejącej witryny do opublikowanej reprezentacji MPF — jeden krok build._ MPF jest generowany, a nie pisany ręcznie: build odczytuje wynik HTML witryny i emituje obok niego pliki companion. Serwer nadal udostępnia statyczne pliki; infrastruktura produkcyjna się nie zmienia. Ta strona opisuje ścieżkę. Pełny przewodnik implementacji — instalacja, referencja konfiguracji, override’y per strona, konfiguracja discovery, weryfikacja i troubleshooting — jest utrzymywany na docs.esfi.eu, które jest autorytatywne: [MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation). ## Ścieżka {#ścieżka} ### 01 — Pobierz implementację referencyjną {#01-pobierz-implementację-referencyjną} Implementacją referencyjną jest `mpf-build`. Kod źródłowy, instalacja i releases: [git.esfi.eu/esfi/mpf](https://git.esfi.eu/esfi/mpf). ### 02 — Zadeklaruj wydawcę {#02-zadeklaruj-wydawcę} Jeden `mpf.config.json` w root projektu określa, kim jest wydawca, jakich języków używa witryna oraz domyślne deklaracje przenoszone przez każdą stronę: provenance, processing scope, kontakt i podpis wydawcy. Poszczególne strony mogą nadpisywać te wartości. To decyzje wydawcy, nie ustawienia techniczne. Decyzja, co witryna deklaruje — a czego nie — jest właściwą pracą implementacyjną. ### 03 — Generuj po finalizacji HTML {#03-generuj-po-finalizacji-html} `mpf-build` działa na gotowym wyniku HTML, zwykle jako ostatni krok buildu witryny. Każda strona otrzymuje swój companion `.mpf` pod tą samą ścieżką, a indeksy maszynowe są zapisywane w root witryny. ## Co produkuje build {#co-produkuje-build} | Artefakt | Cel | | --- | --- | | Plik `.mpf` obok każdej strony | Reprezentacja maszynowa tej strony | | `llms.mpf` | Indeks maszynowy wszystkich indeksowanych stron | | `llms.txt` | Konwencjonalny entry point dla agentów, zaktualizowany o odniesienia MPF | Dalsze mechanizmy discovery używane w praktyce referencyjnej ESFI są udokumentowane na docs.esfi.eu: [Publishing and discovery](https://docs.esfi.eu/standards/mpf/publishing-and-discovery). ## Kolejność i drift {#kolejność-i-drift} Uruchom krok generowania **po** finalizacji HTML. Każdy plik wiąże źródło za pomocą `source-hash`; ponowne wygenerowanie jednej strony pary bez drugiej tworzy drift. Nieaktualny plik companion jest gorszy niż brak pliku: wygląda autorytatywnie. Utrzymuj ten krok na końcu pipeline. ## Weryfikacja {#weryfikacja} Najprostszy test to otwarcie wyniku: pobierz plik `.mpf` strony, `llms.mpf` witryny i jej `llms.txt`, i potwierdź, że istnieją, dają się sparsować i wskazują na siebie. Na tej witrynie przycisk **.mpf** w górnym pasku pokazuje surowy plik czytanej strony. Weryfikacja krok po kroku i troubleshooting: [MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation). * * * Przewodnik: [docs.esfi.eu — MPF Implementation](https://docs.esfi.eu/standards/mpf/implementation) Specyfikacja: [docs.esfi.eu/standards/mpf/0.7](https://docs.esfi.eu/standards/mpf/0.7/) Implementacja referencyjna: [git.esfi.eu/esfi/mpf](https://git.esfi.eu/esfi/mpf) **Dalej:** [Dalsze prace](/pl/further-work) ESFI — civilization infrastructure · https://esfi.eu