Fullbleed PDF Engine

v0.1.1
io.github.fullbleed-engine/fullbleed-mcp Checked 8 hours ago Published 2 months ago

Create, preview, inspect, verify, and compile deterministic PDF documents with Fullbleed.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fullbleed_capabilities Fullbleed capabilities

Read the installed runtime's compact feature map and PDF profile requirements before choosing features. Use fullbleed_agent_contract for command schemas, workflow examples, and detailed limitations.

fullbleed_agent_contract Fullbleed agent contract

Read the canonical installed contract: version, commands, schemas, capabilities, profiles, examples, limitations, and recommendation boundary.

fullbleed_create_project Create a Fullbleed project

Create an agent-ready project or document scaffold in an absent or empty workspace directory; returns generated artifacts and next actions. Use this when starting a project, then render its source with fullbleed_render or fullbleed_render_preview.

ParameterTypeDescription
target_pathstringDestination directory under the MCP workspace root. Defaults to that root and must be absent or empty; use a new subdirectory in an existing project.
templateScaffold to create: init supplies the general agent-ready project; invoice, statement, accessible, and reference select the corresponding document starter.

fullbleed_render Render a print document

Render static HTML/CSS to a PDF and return output paths and render diagnostics. Supply exactly one of html or html_path. Use fullbleed_render_preview for visual iteration, fullbleed_verify for delivery checks, or fullbleed_compile_vdp for variable records. Does not capture live websites.

ParameterTypeDescription
output_path *stringDestination PDF under the MCP workspace root, relative to the server's --root. Parent directories are created; an existing file is replaced.
allow_fallbacksbooleanAllow missing-glyph and font-substitution signals without failing those selected fail_on checks. Does not enable a browser fallback or fetch fonts.
cssstringOptional inline CSS, applied before css_paths. Use @page for print page size and margins.
css_pathsarrayExisting UTF-8 CSS files under the MCP workspace root, read in array order after inline css. Relative paths are resolved from the server's --root.
document_langstringDocument language for PDF metadata, as a BCP-47 tag such as 'en-US'.
document_timestampstringPDF write date: UTC YYYY-MM-DDTHH:MM:SSZ, 'current', or 'source-date-epoch' (reads SOURCE_DATE_EPOCH). Required for pdfx4 and pdfvt1. Resolved once per engine; use an explicit value for repeatable out…
document_titlestringHuman-readable title stored in PDF metadata. Required for pdfx4 and pdfvt1 output.
emit_image_dirstringOptional directory under the MCP workspace root for per-page PNG previews. Omit for PDF-only output; fullbleed_render_preview chooses the PDF and PNG paths together.
font_pathsarrayExisting embeddable font files under the MCP workspace root. Register these fonts before rendering; do not rely on system fonts. Relative paths are resolved from the server's --root.
htmlstringInline static HTML or SVG markup. Supply exactly one of html and html_path; JavaScript is not executed.
html_pathstringExisting UTF-8 HTML or SVG file under the MCP workspace root. Relative to the server's --root. Supply exactly one of html and html_path.
image_dpiintegerPNG preview resolution in dots per inch; defaults to 150. Used only when emit_image_dir is supplied; does not change PDF page geometry.
output_intent_componentsICC color-component count: 1 for gray, 3 for RGB, 4 for CMYK. Defaults to 3 and must match the profile supplied by output_intent_icc_path.
output_intent_icc_pathstringExisting ICC profile file under the MCP workspace root, used as the PDF output intent. Required by PDF/A, PDF/X, and PDF/VT profiles.
output_intent_identifierstringNonblank output-condition identifier for the ICC output intent; defaults to 'Custom'. Requires output_intent_icc_path.
output_intent_infostringOptional human-readable description of the output condition. Requires output_intent_icc_path.
pdf_profilestringPDF export profile; omitted means ordinary PDF. Read fullbleed_capabilities.pdf_profile_catalog for names and font, ICC, title, and timestamp requirements. This is separate from the render tool's dev/…
pdf_vt_jobobjectOptional Job/Record/Document hierarchy and private Fullbleed DPM for pdf_profile='pdfvt1'. Omit records to generate one record and document per input, compiled copy, or binding row.
profileOptional render preset: dev enables JIT planning without XObject reuse; preflight enables planning and reuse; prod enables reuse with JIT off. Omit to use engine defaults. Select PDF standards separat…

fullbleed_render_preview Render a PDF and page previews

Render a PDF plus PNG page previews for visual inspection after document changes; returns their artifact paths. Supply exactly one of html or html_path. Use fullbleed_render for PDF-only output and fullbleed_verify for explicit failure checks.

ParameterTypeDescription
output_dir *stringDestination directory under the MCP workspace root. Writes pdf_name here and per-page PNGs in its pages subdirectory; directories are created as needed and matching files replaced.
allow_fallbacksbooleanAllow missing-glyph and font-substitution signals without failing those selected fail_on checks. Does not enable a browser fallback or fetch fonts.
cssstringOptional inline CSS, applied before css_paths. Use @page for print page size and margins.
css_pathsarrayExisting UTF-8 CSS files under the MCP workspace root, read in array order after inline css. Relative paths are resolved from the server's --root.
document_langstringDocument language for PDF metadata, as a BCP-47 tag such as 'en-US'.
document_timestampstringPDF write date: UTC YYYY-MM-DDTHH:MM:SSZ, 'current', or 'source-date-epoch' (reads SOURCE_DATE_EPOCH). Required for pdfx4 and pdfvt1. Resolved once per engine; use an explicit value for repeatable out…
document_titlestringHuman-readable title stored in PDF metadata. Required for pdfx4 and pdfvt1 output.
font_pathsarrayExisting embeddable font files under the MCP workspace root. Register these fonts before rendering; do not rely on system fonts. Relative paths are resolved from the server's --root.
htmlstringInline static HTML or SVG markup. Supply exactly one of html and html_path; JavaScript is not executed.
html_pathstringExisting UTF-8 HTML or SVG file under the MCP workspace root. Relative to the server's --root. Supply exactly one of html and html_path.
image_dpiintegerPNG preview resolution in dots per inch; defaults to 144. Higher values increase image dimensions and rendering cost without changing PDF page geometry.
output_intent_componentsICC color-component count: 1 for gray, 3 for RGB, 4 for CMYK. Defaults to 3 and must match the profile supplied by output_intent_icc_path.
output_intent_icc_pathstringExisting ICC profile file under the MCP workspace root, used as the PDF output intent. Required by PDF/A, PDF/X, and PDF/VT profiles.
output_intent_identifierstringNonblank output-condition identifier for the ICC output intent; defaults to 'Custom'. Requires output_intent_icc_path.
output_intent_infostringOptional human-readable description of the output condition. Requires output_intent_icc_path.
pdf_namestringSingle PDF filename within output_dir, without directory components; defaults to preview.pdf.
pdf_profilestringPDF export profile; omitted means ordinary PDF. Read fullbleed_capabilities.pdf_profile_catalog for names and font, ICC, title, and timestamp requirements. This is separate from the render tool's dev/…
pdf_vt_jobobjectOptional Job/Record/Document hierarchy and private Fullbleed DPM for pdf_profile='pdfvt1'. Omit records to generate one record and document per input, compiled copy, or binding row.

fullbleed_verify Verify a print document

Render HTML/CSS through Fullbleed's validation path and return structured diagnostics and failures before delivery. Supply exactly one of html or html_path and select fail_on checks explicitly. Use fullbleed_inspect for an existing PDF. Internal checks do not establish independent standards conformance.

ParameterTypeDescription
allow_fallbacksbooleanAllow missing-glyph and font-substitution signals without failing those selected fail_on checks. Does not enable a browser fallback or fetch fonts.
cssstringOptional inline CSS, applied before css_paths. Use @page for print page size and margins.
css_pathsarrayExisting UTF-8 CSS files under the MCP workspace root, read in array order after inline css. Relative paths are resolved from the server's --root.
document_langstringDocument language for PDF metadata, as a BCP-47 tag such as 'en-US'.
document_timestampstringPDF write date: UTC YYYY-MM-DDTHH:MM:SSZ, 'current', or 'source-date-epoch' (reads SOURCE_DATE_EPOCH). Required for pdfx4 and pdfvt1. Resolved once per engine; use an explicit value for repeatable out…
document_titlestringHuman-readable title stored in PDF metadata. Required for pdfx4 and pdfvt1 output.
emit_pdf_pathstringOptional destination PDF under the MCP workspace root; creates parent directories and replaces an existing file. Omit to return diagnostics without saving the PDF.
fail_onarrayFailure checks to run: overflow, missing-glyphs, or font-subst. Defaults to none. The budget value requires budget limits available through the CLI, which this tool does not expose.
font_pathsarrayExisting embeddable font files under the MCP workspace root. Register these fonts before rendering; do not rely on system fonts. Relative paths are resolved from the server's --root.
htmlstringInline static HTML or SVG markup. Supply exactly one of html and html_path; JavaScript is not executed.
html_pathstringExisting UTF-8 HTML or SVG file under the MCP workspace root. Relative to the server's --root. Supply exactly one of html and html_path.
output_intent_componentsICC color-component count: 1 for gray, 3 for RGB, 4 for CMYK. Defaults to 3 and must match the profile supplied by output_intent_icc_path.
output_intent_icc_pathstringExisting ICC profile file under the MCP workspace root, used as the PDF output intent. Required by PDF/A, PDF/X, and PDF/VT profiles.
output_intent_identifierstringNonblank output-condition identifier for the ICC output intent; defaults to 'Custom'. Requires output_intent_icc_path.
output_intent_infostringOptional human-readable description of the output condition. Requires output_intent_icc_path.
pdf_profilestringPDF export profile; omitted means ordinary PDF. Read fullbleed_capabilities.pdf_profile_catalog for names and font, ICC, title, and timestamp requirements. This is separate from the render tool's dev/…
pdf_vt_jobobjectOptional Job/Record/Document hierarchy and private Fullbleed DPM for pdf_profile='pdfvt1'. Omit records to generate one record and document per input, compiled copy, or binding row.

fullbleed_inspect Inspect a PDF

Read an existing PDF's version, page count, profile claims, warnings, and template-composition compatibility without changing it. Use fullbleed_verify to render and check HTML/CSS source, or fullbleed_assets with action='verify' to check asset package integrity.

ParameterTypeDescription
path *stringExisting PDF file under the MCP workspace root, relative to the server's --root; this is a PDF path, not HTML source.

fullbleed_assets Manage Fullbleed assets

Manage font, CSS, and icon packages with list, info, install, verify, or lock. Returns package details or operation results. Install writes workspace assets and may download supported remote packages. Use fullbleed_inspect for PDFs and fullbleed_verify for document validation.

ParameterTypeDescription
action *list shows built-in and cached packages; info describes one package; install vendors it; verify checks package presence/hashes and optional lock constraints; lock creates or updates a lock file using…
addarrayFor lock only: built-in package references to add/update, for example ["@noto-sans", "@bootstrap"]. Omit to preserve existing entries or create an empty lock file; this does not scan arbitrary project…
availablebooleanFor list only: include the catalog of supported remote packages in addition to built-in and cached packages. Defaults to false.
lock_pathstringLock file under the MCP workspace root. For verify it must exist; omission skips lock comparison. For lock it is created or updated and defaults to 'assets.lock.json'.
packagestringPackage name/reference, such as 'noto-sans' or '@bootstrap'. Required for info, install, and verify; ignored for list and lock. Use list to discover supported names.
strictbooleanFor verify only: report a lock mismatch as a tool error. Defaults to false, which returns the verification result with ok=false and violations instead.
vendor_pathstringFor install only: destination directory under the MCP workspace root, default 'vendor'. Existing matching asset files may be replaced.

fullbleed_compile Compile a document family

Compile inline HTML/CSS and return compile_id plus template statistics for repeated calls to fullbleed_render_compiled. Handles belong to this server process; restart or eviction after 64 retained handles requires recompiling. Use fullbleed_compile_vdp for a single variable-data job without retaining a handle.

ParameterTypeDescription
html *stringNonempty inline static HTML. For variable records use {{slot_name}} placeholders and supply a bindings column for every slot. Compilation tools accept markup, not html_path.
cssstringOptional inline print CSS; defaults to an empty stylesheet. Use @page for page size and margins. Compilation tools do not accept css_paths.
document_langstringDocument language for PDF metadata, as a BCP-47 tag such as 'en-US'.
document_timestampstringPDF write date: UTC YYYY-MM-DDTHH:MM:SSZ, 'current', or 'source-date-epoch' (reads SOURCE_DATE_EPOCH). Required for pdfx4 and pdfvt1. Resolved once per engine; use an explicit value for repeatable out…
document_titlestringHuman-readable title stored in PDF metadata. Required for pdfx4 and pdfvt1 output.
font_pathsarrayExisting embeddable font files under the MCP workspace root. Register these fonts before rendering; do not rely on system fonts. Relative paths are resolved from the server's --root.
output_intent_componentsICC color-component count: 1 for gray, 3 for RGB, 4 for CMYK. Defaults to 3 and must match the profile supplied by output_intent_icc_path.
output_intent_icc_pathstringExisting ICC profile file under the MCP workspace root, used as the PDF output intent. Required by PDF/A, PDF/X, and PDF/VT profiles.
output_intent_identifierstringNonblank output-condition identifier for the ICC output intent; defaults to 'Custom'. Requires output_intent_icc_path.
output_intent_infostringOptional human-readable description of the output condition. Requires output_intent_icc_path.
pdf_profilestringPDF export profile; omitted means ordinary PDF. Read fullbleed_capabilities.pdf_profile_catalog for names and font, ICC, title, and timestamp requirements. This is separate from the render tool's dev/…
pdf_vt_jobobjectOptional Job/Record/Document hierarchy and private Fullbleed DPM for pdf_profile='pdfvt1'. Omit records to generate one record and document per input, compiled copy, or binding row.

fullbleed_render_compiled Render a compiled document

Write a PDF from compile_id returned by fullbleed_compile in this server session. Choose static copies, fixed geometry, or content reflow; returns the output path, page/record counts, and SHA-256. Use fullbleed_compile_vdp to compile and render a variable-data job in one call.

ParameterTypeDescription
compile_id *stringOpaque handle returned by fullbleed_compile in this same server process. Recompile if the process restarted or the handle was evicted; it is not a filename or serialized artifact.
mode *static repeats the compiled document using copies; fixed_bindings substitutes columnar text without changing geometry; reflow_bindings lays out variable-length records and repaginates. The binding mod…
output_path *stringDestination PDF under the MCP workspace root, relative to the server's --root. Parent directories are created; an existing file is replaced.
bindingsobjectColumnar records, for example {"name": ["Ada", "Lin"]}. Keys must match the compiled {{slot_name}} set exactly. Every column must be a nonempty string array of equal length; values at the same index f…
compressionCompression strategy for reflow_bindings only; defaults to throughput. Use compact for smaller output at additional compression cost. Ignored in static and fixed_bindings modes.
copiesintegerNumber of identical document copies in static mode; defaults to 1. Ignored for binding modes, whose record count is the binding-column length.

fullbleed_compile_vdp Compile and render a VDP job

Compile inline HTML/CSS and render columnar variable records into one PDF, returning its path, counts, SHA-256, and compile/render metrics. Releases the temporary handle after rendering. Use fullbleed_compile plus fullbleed_render_compiled when reusing a template across calls.

ParameterTypeDescription
bindings *objectColumnar records, for example {"name": ["Ada", "Lin"]}. Keys must match the compiled {{slot_name}} set exactly. Every column must be a nonempty string array of equal length; values at the same index f…
html *stringNonempty inline static HTML. For variable records use {{slot_name}} placeholders and supply a bindings column for every slot. Compilation tools accept markup, not html_path.
mode *fixed_bindings substitutes text while preserving compiled geometry; reflow_bindings recalculates layout and page count for variable-length content. Check pdf_profile_catalog.fixed_bindings_supported b…
output_path *stringDestination PDF under the MCP workspace root, relative to the server's --root. Parent directories are created; an existing file is replaced.
compressionCompression strategy for reflow_bindings only; defaults to throughput. Use compact for smaller output at additional compression cost. Ignored in static and fixed_bindings modes.
cssstringOptional inline print CSS; defaults to an empty stylesheet. Use @page for page size and margins. Compilation tools do not accept css_paths.
document_langstringDocument language for PDF metadata, as a BCP-47 tag such as 'en-US'.
document_timestampstringPDF write date: UTC YYYY-MM-DDTHH:MM:SSZ, 'current', or 'source-date-epoch' (reads SOURCE_DATE_EPOCH). Required for pdfx4 and pdfvt1. Resolved once per engine; use an explicit value for repeatable out…
document_titlestringHuman-readable title stored in PDF metadata. Required for pdfx4 and pdfvt1 output.
font_pathsarrayExisting embeddable font files under the MCP workspace root. Register these fonts before rendering; do not rely on system fonts. Relative paths are resolved from the server's --root.
output_intent_componentsICC color-component count: 1 for gray, 3 for RGB, 4 for CMYK. Defaults to 3 and must match the profile supplied by output_intent_icc_path.
output_intent_icc_pathstringExisting ICC profile file under the MCP workspace root, used as the PDF output intent. Required by PDF/A, PDF/X, and PDF/VT profiles.
output_intent_identifierstringNonblank output-condition identifier for the ICC output intent; defaults to 'Custom'. Requires output_intent_icc_path.
output_intent_infostringOptional human-readable description of the output condition. Requires output_intent_icc_path.
pdf_profilestringPDF export profile; omitted means ordinary PDF. Read fullbleed_capabilities.pdf_profile_catalog for names and font, ICC, title, and timestamp requirements. This is separate from the render tool's dev/…
pdf_vt_jobobjectOptional Job/Record/Document hierarchy and private Fullbleed DPM for pdf_profile='pdfvt1'. Omit records to generate one record and document per input, compiled copy, or binding row.