jekyll-component-mcp
v1.7.0AI-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.
| Parameter | Type | Description |
|---|---|---|
force | boolean | If 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name (e.g. 'Pricing Card' or 'pricing-card') |
category | string | Optional category label |
documentation | boolean | Create docs file (default true) |
dry_run | boolean | If true, only report planned operations without writing files |
example | boolean | Create example file (default true) |
javascript | boolean | Also create a JS module (default false) |
variants | array | Variant 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Existing component name |
documentation | string | Replacement Markdown documentation |
dry_run | boolean | Preview exact file updates without writing |
example | string | Replacement example source |
javascript | string | Replacement JavaScript source |
liquid | string | Replacement Liquid include source |
scss | string | Replacement 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Current component name |
new_name * | string | New component name |
confirm | boolean | Must be true to apply the destructive file move |
dry_run | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Existing source component name |
new_name * | string | Name for the copied component |
dry_run | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name to test |
run_build | boolean | Run 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name |
params | object | Sample parameters such as label, content, class, id |
variant | string | Variant 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name, normalized to kebab-case |
category | string | Optional category label |
documentation | boolean | Create docs (default true) |
dry_run | boolean | Preview operations without writing files |
example | boolean | Create an example (default true) |
javascript | boolean | Also create a JS module |
variants | array | Variant names |
validate_component
Check component Liquid syntax, include parameter fallbacks/guards, and BEM/SCSS naming. Read-only alias for jekyll_component_validate.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name |
preview_component
Generate a lightweight HTML preview for a component using sample params and variant names. Alias for jekyll_component_preview.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name |
params | object | Preview arguments like label, content, class, id |
variant | string | Variant 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
confirm | boolean | Must be true to apply deletion |
dry_run | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Relative 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Partial name without leading underscore or extension |
category | string | Target folder category (default component) |
content | string | Optional SCSS body; a stub is generated if omitted |
dry_run | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
content * | string | Complete replacement file contents |
path * | string | Existing stylesheet path from jekyll_scss_list |
dry_run | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Stylesheet path from jekyll_scss_list |
confirm | boolean | Must be true to delete |
dry_run | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative path to the tokens SCSS/CSS file |
name * | string | Token name (with or without -- or $ prefix) |
value * | string | New value, e.g. '#0ea5e9' or '1rem' |
dry_run | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Include 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Layout name or relative path |
jekyll_docs_create
Create component documentation (Overview, Usage, Parameters, Variants, Example, Accessibility, Notes). Modifies project files. Supports dry_run.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name |
dry_run | boolean | |
overview | string | |
parameters | array | |
variants | array |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name; normalized to kebab-case to locate its documentation file. |
accessibility | string | Accessibility guidance to include in the generated documentation. |
category | string | Documentation category written to the generated front matter. Defaults to general. |
dry_run | boolean | When true, report the target path without writing or modifying the documentation file. |
notes | string | Additional notes to include in the generated documentation. |
overview | string | Markdown overview text for the component. |
parameters | array | Parameters to document. If omitted, detected Liquid parameters are used when available. |
variants | array | Component 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.
| Parameter | Type | Description |
|---|---|---|
run_build | boolean | If 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).
| Parameter | Type | Description |
|---|---|---|
clean | boolean | Run jekyll clean before build |
jekyll_doctor
Run jekyll doctor to check for common configuration and environment issues. Read-only regarding project source files.