jekyll-component-mcp

v1.7.0
jekyll-component-mcp Checked 1 day ago Published 7 days ago

AI-native development MCP server for Jekyll projects and reusable Liquid/SCSS/JavaScript components.

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

jekyll_project_info

Return a high-level summary of the Jekyll project: whether it is a Jekyll site, counts of layouts/includes/components, presence of SCSS/JS/docs, and current write mode. Use this first to orient yourself. Does not modify any files. Never exposes secrets.

jekyll_project_scan

Scan the project and return a structured architecture map: config files, key directories, layouts, includes, components (with liquid/scss/js/docs paths), sections, SCSS and JS files. Use when you need a detailed map before creating or modifying components. Read-only.

ParameterTypeDescription
forcebooleanIf true, bypass cache and rescan the filesystem

jekyll_config_get

Read Jekyll configuration (_config.yml etc.) with sensitive keys redacted. Use to understand site settings. Never returns API keys, tokens, or credentials. Read-only.

jekyll_component_list

List all detected reusable components with paths to Liquid, SCSS, JavaScript, documentation, and examples. Use to discover existing components before creating new ones. Read-only.

jekyll_component_get

Get full details for one component by name: Liquid/SCSS/JS/docs source, detected parameters (include.*), variants, accessibility notes, and class names. Use before editing or reviewing a component. Read-only.

ParameterTypeDescription
name *stringComponent name (any case/spacing; normalized to kebab-case)

jekyll_component_catalog

Return a catalog view of all discovered components with status, tags, summary, path coverage, variants, and parameter counts. Ideal for quick project/component library reviews.

jekyll_component_create

Create a reusable Jekyll Liquid component and its associated SCSS, documentation, and example files. Use when the user asks to create a new reusable UI component. Do not use for one-off page markup. This operation modifies project files. Supports dry_run. Names are normalized to kebab-case.

ParameterTypeDescription
name *stringComponent name (e.g. 'Pricing Card' or 'pricing-card')
categorystringOptional category label
documentationbooleanCreate docs file (default true)
dry_runbooleanIf true, only report planned operations without writing files
examplebooleanCreate example file (default true)
javascriptbooleanAlso create a JS module (default false)
variantsarrayVariant names, e.g. ['default','popular']

jekyll_component_update

Replace source for one or more files already associated with a component (Liquid, SCSS, JavaScript, docs, example). This does not create missing files or rewrite unspecified files. Use jekyll_component_get first; dry_run returns full diffs.

ParameterTypeDescription
name *stringExisting component name
documentationstringReplacement Markdown documentation
dry_runbooleanPreview exact file updates without writing
examplestringReplacement example source
javascriptstringReplacement JavaScript source
liquidstringReplacement Liquid include source
scssstringReplacement SCSS source

jekyll_component_rename

Rename an existing component, its associated files, and matching references in project layouts/includes/pages/SCSS/JS/docs/examples. Always review dry_run diffs. Applying the rename deletes old paths and requires full-write mode plus confirm: true.

ParameterTypeDescription
name *stringCurrent component name
new_name *stringNew component name
confirmbooleanMust be true to apply the destructive file move
dry_runbooleanPreview all added, removed, and updated files

jekyll_component_duplicate

Copy all associated source files for a component under a new component name and rewrite component-specific references. It does not modify the source component. Supports dry_run.

ParameterTypeDescription
name *stringExisting source component name
new_name *stringName for the copied component
dry_runbooleanPreview files and diffs without writing

jekyll_component_test

Run focused static component validation and, by default, a Jekyll site build as an integration check. Set run_build false to run only the component checks. Does not modify source files.

ParameterTypeDescription
name *stringComponent name to test
run_buildbooleanRun a full Jekyll build (default true)

jekyll_component_dependencies

Read component-to-component include, Sass-module, and JavaScript-import references. Returns both outgoing dependencies and components that depend on the requested component. Read-only and limited to configured project source roots.

ParameterTypeDescription
name *stringComponent name

jekyll_component_export

Return a portable JSON bundle containing all existing files associated with one component and their project-relative paths. Read-only; does not write an archive. Bundle size is limited by the configured maximum file size.

ParameterTypeDescription
name *stringComponent name to export

jekyll_component_preview

Generate a lightweight HTML preview for a component using a sample payload and selected variant. Useful for reviewing a component before committing it to a page.

ParameterTypeDescription
name *stringComponent name
paramsobjectSample parameters such as label, content, class, id
variantstringVariant to preview, e.g. default or success

jekyll_component_validate

Validate a component: file existence, Liquid syntax patterns, SCSS presence, documentation, accessibility hints, and parameter consistency. Returns structured errors and warnings. Read-only.

ParameterTypeDescription
name *stringComponent name

list_components

List reusable Jekyll components and their Liquid, SCSS, JavaScript, documentation, and example paths. Read-only alias for jekyll_component_list.

inspect_component

Inspect a component's Liquid/SCSS sources, include parameters and fallbacks, variants, and dependencies. Read-only alias for jekyll_component_get.

ParameterTypeDescription
name *stringComponent name

component_catalog

Return a catalog overview of all components with status, tags, summary, path coverage, parameter counts, and variants. Read-only alias for jekyll_component_catalog.

create_component

Generate a Liquid component, BEM SCSS, and optional docs/example/JavaScript files. Supports dry_run. Alias for jekyll_component_create.

ParameterTypeDescription
name *stringComponent name, normalized to kebab-case
categorystringOptional category label
documentationbooleanCreate docs (default true)
dry_runbooleanPreview operations without writing files
examplebooleanCreate an example (default true)
javascriptbooleanAlso create a JS module
variantsarrayVariant names

validate_component

Check component Liquid syntax, include parameter fallbacks/guards, and BEM/SCSS naming. Read-only alias for jekyll_component_validate.

ParameterTypeDescription
name *stringComponent name

preview_component

Generate a lightweight HTML preview for a component using sample params and variant names. Alias for jekyll_component_preview.

ParameterTypeDescription
name *stringComponent name
paramsobjectPreview arguments like label, content, class, id
variantstringVariant to preview

jekyll_component_delete

Delete a component and its associated files (Liquid, SCSS, JS, docs, example). DESTRUCTIVE: review dry_run: true diffs first; applying requires confirm: true and full-write mode.

ParameterTypeDescription
name *string
confirmbooleanMust be true to apply deletion
dry_runbooleanPreview associated files without deleting

jekyll_scss_list

List SCSS/CSS files under the project SCSS root and detect architecture layers (tokens, mixins, base, utilities, components, sections). Use to understand stylesheet structure before editing. Read-only.

jekyll_scss_get

Read an SCSS file and return its source plus analysis (imports, variables, CSS custom properties, mixins, selectors). Provide a path relative to the project root (from jekyll_scss_list). Read-only.

ParameterTypeDescription
path *stringRelative path to the SCSS file

jekyll_scss_create

Create a new SCSS partial (e.g. component or utility). Writes under the configured SCSS tree. Modifies project files. Supports dry_run.

ParameterTypeDescription
name *stringPartial name without leading underscore or extension
categorystringTarget folder category (default component)
contentstringOptional SCSS body; a stub is generated if omitted
dry_runboolean

jekyll_scss_update

Replace the full contents of an existing SCSS/Sass/CSS file under the configured SCSS root. Does not create files. Use jekyll_scss_get first; dry_run returns the exact diff.

ParameterTypeDescription
content *stringComplete replacement file contents
path *stringExisting stylesheet path from jekyll_scss_list
dry_runbooleanPreview the change without writing

jekyll_scss_delete

Delete one SCSS/Sass/CSS file under the configured SCSS root and remove direct Sass imports that target it. DESTRUCTIVE: review dry_run, then pass confirm true; actual deletion requires full-write mode.

ParameterTypeDescription
path *stringStylesheet path from jekyll_scss_list
confirmbooleanMust be true to delete
dry_runbooleanPreview the deletion and import updates

jekyll_token_list

List design tokens discovered in SCSS (CSS custom properties and Sass variables), categorized by color, spacing, radius, shadow, typography, breakpoints, motion, etc. Read-only.

jekyll_token_get

Get tokens matching a name or category (e.g. 'color', 'spacing', '--color-primary'). Read-only.

ParameterTypeDescription
name *stringToken name fragment or category

jekyll_token_update

Update or append a design token declaration in an SCSS/CSS file. Prefer CSS custom properties. Modifies project files. Supports dry_run.

ParameterTypeDescription
file *stringRelative path to the tokens SCSS/CSS file
name *stringToken name (with or without -- or $ prefix)
value *stringNew value, e.g. '#0ea5e9' or '1rem'
dry_runboolean

jekyll_include_list

List Liquid includes under _includes (excluding the components/ and sections/ subtrees, which have dedicated tools). Read-only. Never executes Liquid.

jekyll_include_get

Read a Liquid include by name or relative path. Returns source, front matter, parameter analysis, and basic syntax checks. Read-only. Never executes Liquid.

ParameterTypeDescription
name *stringInclude name or relative path

jekyll_layout_list

List Liquid layouts under _layouts. Read-only. Never executes Liquid.

jekyll_layout_get

Read a Liquid layout by name or relative path. Returns source, front matter, and analysis. Read-only. Never executes Liquid.

ParameterTypeDescription
name *stringLayout name or relative path

jekyll_docs_create

Create component documentation (Overview, Usage, Parameters, Variants, Example, Accessibility, Notes). Modifies project files. Supports dry_run.

ParameterTypeDescription
name *stringComponent name
dry_runboolean
overviewstring
parametersarray
variantsarray

jekyll_docs_update

Regenerate a component's Markdown documentation at the configured component-docs path. Omitted variants and parameters are inferred from the component when possible; other omitted content uses generated defaults. This rewrites the target documentation file. Set dry_run to preview the target path without writing.

ParameterTypeDescription
name *stringComponent name; normalized to kebab-case to locate its documentation file.
accessibilitystringAccessibility guidance to include in the generated documentation.
categorystringDocumentation category written to the generated front matter. Defaults to general.
dry_runbooleanWhen true, report the target path without writing or modifying the documentation file.
notesstringAdditional notes to include in the generated documentation.
overviewstringMarkdown overview text for the component.
parametersarrayParameters to document. If omitted, detected Liquid parameters are used when available.
variantsarrayComponent variants to list. If omitted, detected variants are used when available.

jekyll_validate

Run safe project-level validation: component structure, Liquid patterns, front matter, optional Jekyll build. Returns structured errors and warnings. Does not execute arbitrary shell.

ParameterTypeDescription
run_buildbooleanIf true, also run jekyll build (slower)

jekyll_build

Run a Jekyll build (bundle exec jekyll build when Gemfile present). Captures exit code, stdout, stderr, duration, and _site path. Does not accept arbitrary shell commands. Use after creating or modifying components to verify the site builds. May take up to the configured timeout (default 120s).

ParameterTypeDescription
cleanbooleanRun jekyll clean before build

jekyll_doctor

Run jekyll doctor to check for common configuration and environment issues. Read-only regarding project source files.