Skip to main content
Glama

HELiXiR

Give AI agents full situational awareness of any web component library.

Stop AI hallucinations. Ground every component suggestion in your actual Custom Elements Manifest.

npm version npm downloads License: MIT Node 22+ Build Tests MCP Protocol TypeScript Tools

Quick Start · Why HELiXiR · Tools Reference · Configuration · AI Tool Configs


Why HELiXiR

  • No more hallucinations — AI reads your real component API from the Custom Elements Manifest, not from training data. Every attribute, event, slot, and CSS part is sourced directly from your library.

  • 87+ MCP tools out of the box — Component discovery, health scoring, design token lookup, TypeScript diagnostics, breaking-change detection, Storybook story generation, Shadow DOM styling validators, theme scaffolding, and scaffold/extend tools — all callable by any MCP-compatible AI agent.

  • Works with any web component framework — Shoelace, Lit, Stencil, FAST, Spectrum, Vaadin, and any library that produces a custom-elements.json CEM file.

  • Any AI editor, zero lock-in — Claude Code, Claude Desktop, Cursor, VS Code (Cline/Continue), Zed — one config, any tool.


Related MCP server: ds-pilot

Quick Start

Under 60 seconds from zero to a component-aware AI agent.

npm install helixir

Then generate a starter config in your component library:

npx helixir init
# → writes mcpwc.config.json to the current directory

Edit mcpwc.config.json to point at your library:

{
  "cemPath": "custom-elements.json",
  "projectRoot": "/absolute/path/to/your/component-library",
  "componentPrefix": "sl-",
  "tokensPath": "dist/tokens/tokens.json"
}

Add HELiXiR to your Claude Desktop config (see AI Tool Configs for other editors):

{
  "mcpServers": {
    "helixir": {
      "command": "npx",
      "args": ["helixir"],
      "env": {
        "MCP_WC_PROJECT_ROOT": "/absolute/path/to/your/component-library"
      }
    }
  }
}

Restart Claude Desktop. Done — your AI agent now knows every property, event, slot, CSS part, and design token in your library.


What You Get

Without HELiXiR

You: How do I use sl-button?

Claude: You can use <sl-button> like this:

<sl-button type="primary" color="blue" rounded>Click me</sl-button>

It supports type, color, rounded, icon, and label attributes.

All of that is hallucinated. type, color, rounded, icon, and label are not real attributes on sl-button. The correct attribute for the visual style is variant, and rounded doesn't exist at all.


With HELiXiR

You: How do I use sl-button?

Claude: (calls get_component → sl-button) Here's the accurate API for <sl-button>:

Attributes:

  • variant — 'default' | 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text' (default: 'default')

  • size — 'small' | 'medium' | 'large' (default: 'medium')

  • disabled — boolean (default: false)

  • loading — boolean — Draws the button in a loading state

  • outline — boolean — Draws an outlined button

  • pill — boolean — Draws a pill-style button with rounded edges

  • href — string | undefined — Renders as <a> when set

Slots: default (button label), prefix (before label), suffix (after label)

Events: sl-blur, sl-focus, sl-invalid

Example:

<sl-button variant="primary" size="medium">Save changes</sl-button>

Every property, event, slot, CSS part, and design token — sourced directly from your Custom Elements Manifest. No hallucinations.


Framework Setup

HELiXiR works with any toolchain that produces a custom-elements.json (CEM). Below are quick-start setups for the most common frameworks.

Shoelace

Shoelace ships custom-elements.json inside its npm package. No build step needed.

npm install @shoelace-style/shoelace
{
  "cemPath": "node_modules/@shoelace-style/shoelace/dist/custom-elements.json",
  "componentPrefix": "sl-"
}

Lit

Use the official CEM analyzer with the Lit plugin:

npm install -D @custom-elements-manifest/analyzer
// package.json scripts
"analyze": "cem analyze --litelement --globs 'src/**/*.ts'"
{
  "cemPath": "custom-elements.json",
  "componentPrefix": "my-"
}

Run npm run analyze after each build to keep the CEM current.

Stencil

Enable CEM output in stencil.config.ts:

// stencil.config.ts
import { Config } from '@stencil/core';

export const config: Config = {
  outputTargets: [{ type: 'docs-custom' }, { type: 'dist-custom-elements' }],
};

Stencil emits custom-elements.json to your dist/ folder:

{
  "cemPath": "dist/custom-elements/custom-elements.json",
  "componentPrefix": "my-"
}

FAST

FAST components ship with CEM support via the @custom-elements-manifest/analyzer:

npm install -D @custom-elements-manifest/analyzer
// package.json scripts
"analyze": "cem analyze --globs 'src/**/*.ts'"
{
  "cemPath": "custom-elements.json",
  "componentPrefix": "fluent-"
}

Adobe Spectrum Web Components

Spectrum Web Components use Stencil under the hood and ship their CEM in the package:

npm install @spectrum-web-components/bundle
{
  "cemPath": "node_modules/@spectrum-web-components/bundle/custom-elements.json",
  "componentPrefix": "sp-"
}

Polymer / Generic Web Components

Any project can add CEM generation with the analyzer:

npm install -D @custom-elements-manifest/analyzer
// package.json scripts
"analyze": "cem analyze --globs 'src/**/*.js'"
{
  "cemPath": "custom-elements.json"
}

Tools Reference

All tools are exposed over the Model Context Protocol. Your AI agent can call any of these tools by name.

Discovery

Tool

Description

Required Args

list_components

List all custom elements registered in the CEM

—

find_component

Semantic search for components by name, description, or member names (top 3 matches)

query

get_library_summary

Overview of the library: component count, average health score, grade distribution

—

list_events

List all events across the library, optionally filtered by component

tagName (optional)

list_slots

List all slots across the library, optionally filtered by component

tagName (optional)

list_css_parts

List all CSS ::part() targets across the library, optionally filtered by component

tagName (optional)

list_components_by_category

Group components by functional category (form, navigation, feedback, layout, etc.)

—

Component

Tool

Description

Required Args

get_component

Full metadata for a component: members, events, slots, CSS parts, CSS properties

tagName

validate_cem

Validate CEM documentation completeness; returns score (0–100) and issues list

tagName

suggest_usage

Generate an HTML snippet showing key attributes with their defaults and variant options

tagName

generate_import

Generate side-effect and named import statements from CEM exports

tagName

get_component_narrative

3–5 paragraph markdown prose description of a component optimized for LLM comprehension

tagName

get_prop_constraints

Structured constraint table for an attribute: union values with descriptions, or simple type info

tagName, attributeName

find_components_by_token

Find all components that expose a given CSS custom property token

tokenName

find_components_using_token

Find all components referencing a token in their cssProperties (works without tokensPath)

tokenName

get_component_dependencies

Dependency graph for a component: direct and transitive dependencies from CEM reference data

tagName

validate_usage

Validate a proposed HTML snippet against the CEM spec: unknown attrs, bad slot names, enum mismatches

tagName, html

Composition

Tool

Description

Required Args

get_composition_example

Realistic HTML snippet showing how to compose 1–4 components together using their slot structure

tagNames

Health

Tool

Description

Required Args

score_component

Latest health score for a component: grade (A–F), dimension scores, and issues

tagName

score_all_components

Health scores for every component in the library

—

get_health_trend

Health trend for a component over the last N days with trend direction

tagName

get_health_diff

Before/after health comparison between current branch and a base branch

tagName

get_health_summary

Aggregate health stats for all components: average score, grade distribution

—

analyze_accessibility

Accessibility profile: ARIA roles, keyboard events, focus management, label support

tagName (optional)

audit_library

Generates a JSONL audit report scoring every component across 11 dimensions; returns file path (if outputPath given) and summary stats

—

Library

Tool

Description

Required Args

load_library

Load an additional web component library by npm package name or CEM path

libraryId

list_libraries

List all currently loaded web component libraries

—

unload_library

Remove a loaded library from memory

libraryId

Safety

Tool

Description

Required Args

diff_cem

Per-component CEM diff between branches; highlights breaking changes and additions

tagName, baseBranch

check_breaking_changes

Breaking-change scan across all components vs. a base branch with summary report

baseBranch

Framework

Tool

Description

Required Args

detect_framework

Identifies the web component framework in use from package.json, CEM metadata, and config

—

TypeScript

Tool

Description

Required Args

get_file_diagnostics

TypeScript diagnostics for a single file

filePath

get_project_diagnostics

Full TypeScript diagnostic pass across the entire project

—

Story

Tool

Description

Required Args

generate_story

Generates a Storybook CSF3 story file for a component based on its CEM declaration

tagName

Bundle

Tool

Description

Required Args

estimate_bundle_size

Estimates minified + gzipped bundle size for a component's npm package via bundlephobia/npm

tagName

package parameter derivation:

The estimate_bundle_size tool accepts an optional package argument — the npm package name to look up (e.g. "@shoelace-style/shoelace"). When omitted, the tool derives the package name from your componentPrefix config value using a built-in prefix-to-package map:

Prefix

npm Package

sl

@shoelace-style/shoelace

fluent-

@fluentui/web-components

mwc-

@material/web

ion-

@ionic/core

vaadin-

@vaadin/components

lion-

@lion/ui

pf-

@patternfly/elements

carbon-

@carbon/web-components

If your prefix is not in the list above and you omit package, the tool returns a VALIDATION error. In that case, pass the package argument explicitly.

Benchmark

Tool

Description

Required Args

benchmark_libraries

Compare 2–10 web component libraries by health score, documentation quality, and API surface; returns a weighted score table

libraries

CDN

Tool

Description

Required Args

resolve_cdn_cem

Fetch and cache a library's CEM from jsDelivr or UNPKG by npm package name (for CDN-loaded libraries)

package

Tokens

(Requires tokensPath to be configured)

Tool

Description

Required Args

get_design_tokens

List all design tokens, optionally filtered by category (e.g. "color", "spacing")

—

find_token

Search for a design token by name or value (case-insensitive substring match)

query

TypeGenerate

Tool

Description

Required Args

generate_types

Generates TypeScript type definitions (.d.ts content) for all custom elements in the CEM

—

Theme

Tool

Description

Required Args

create_theme

Scaffold a complete enterprise CSS theme from the component library's design tokens with light/dark mode variables and color-scheme support

—

apply_theme_tokens

Map a theme token definition to specific components, generating per-component CSS blocks and a global :root block

themeTokens

Scaffold

Tool

Description

Required Args

scaffold_component

Scaffold a new web component with boilerplate code based on an existing component's CEM structure

tagName

Extend

Tool

Description

Required Args

extend_component

Generate extension boilerplate for a web component, providing a subclass with overridable methods and properties

tagName

Styling

29 anti-hallucination validators that ground every component styling decision in real CEM data. Run validate_component_code as the all-in-one final check, or use individual tools for targeted validation.

Tool

Description

Required Args

diagnose_styling

Generates a Shadow DOM styling guide for a component — token prefix, theming approach, dark mode support, anti-pattern warnings, and correct CSS usage snippets

tagName

get_component_quick_ref

Complete quick reference for a component — attributes, methods, events, slots, CSS custom properties, CSS parts, Shadow DOM warnings, and anti-patterns. Use as the FIRST call when working with any component

tagName

validate_component_code

ALL-IN-ONE validator — runs 19 anti-hallucination sub-validators (HTML, CSS, JS, a11y, events, methods, composition) in a single call. Use as the FINAL check before submitting any code

html, tagName

styling_preflight

Single-call styling validation combining API discovery, CSS reference resolution, and anti-pattern detection with inline fix suggestions. Call ONCE before finalizing component CSS

cssText, tagName

validate_css_file

Validates an entire CSS file targeting multiple components — auto-detects component tags, runs per-component and global validation with inline fixes

cssText

check_shadow_dom_usage

Scans CSS for Shadow DOM anti-patterns: descendant selectors piercing shadow boundaries, ::slotted() misuse, invalid ::part() chaining, !important on tokens, unknown part names

cssText

check_html_usage

Validates consumer HTML against a component CEM — catches invalid slot names, wrong enum values, boolean attribute misuse, and unknown attributes with typo suggestions

htmlText, tagName

check_event_usage

Validates event listener patterns against a component CEM — catches React onXxx props for custom events, unknown event names, and framework-specific binding mistakes

codeText, tagName

check_component_imports

Scans HTML/JSX/template code for all custom element tags and verifies they exist in the loaded CEM; catches non-existent components with fuzzy suggestions

codeText

check_slot_children

Validates that children placed inside slots match expected element types from the CEM — catches wrong child elements in constrained slots (e.g. <div> inside <sl-select>)

htmlText, tagName

check_attribute_conflicts

Detects conditional attributes used without their guard conditions — catches target without href, min/max on non-number inputs, and other attribute interaction mistakes

htmlText, tagName

check_a11y_usage

Validates consumer HTML for accessibility mistakes — catches missing accessible labels on icon buttons/dialogs/selects, and manual role overrides on components that self-assign ARIA roles

htmlText, tagName

check_css_vars

Validates CSS for custom property usage against a component CEM — catches unknown CSS custom properties with typo suggestions and !important on design tokens

cssText, tagName

check_token_fallbacks

Validates CSS for proper var() fallback chains and detects hardcoded colors that break theme switching

cssText, tagName

check_composition

Validates cross-component composition patterns — catches tab/panel count mismatches, unlinked cross-references, and empty containers

htmlText

check_method_calls

Validates JS/TS code for correct method and property usage — catches hallucinated API calls, properties called as methods, and methods assigned as properties

codeText, tagName

check_theme_compatibility

Validates CSS for dark mode and theme compatibility — catches hardcoded colors on background/color/border properties and potential contrast issues

cssText

check_css_specificity

Detects CSS specificity anti-patterns — catches !important usage, ID selectors, deeply nested selectors (4+ levels), and inline style attributes

code

check_layout_patterns

Detects layout anti-patterns when styling web component host elements — catches display overrides, fixed dimensions, absolute/fixed positioning, and overflow: hidden

cssText

check_css_scope

Detects component-scoped CSS custom properties set at the wrong scope (e.g. on :root instead of the component host)

cssText, tagName

check_css_shorthand

Detects risky CSS shorthand + var() combinations that can fail silently when any token is undefined

cssText

check_color_contrast

Detects color contrast issues: low-contrast hardcoded color pairs, mixed color sources (token + hardcoded), and low opacity on text

cssText

check_transition_animation

Detects CSS transitions and animations on component hosts targeting properties that cannot cross Shadow DOM boundaries

cssText, tagName

check_shadow_dom_js

Detects JavaScript anti-patterns that violate Shadow DOM encapsulation — catches .shadowRoot.querySelector(), attachShadow() on existing components, and innerHTML overwriting slot content

codeText

check_dark_mode_patterns

Detects dark mode styling anti-patterns — catches theme-scoped selectors setting standard CSS properties that won't reach shadow DOM internals

cssText

resolve_css_api

Resolves every ::part(), CSS custom property, and slot reference in agent-generated code against actual CEM data — reports valid/hallucinated references with closest valid alternatives

cssText, tagName

detect_theme_support

Analyzes a component library for theming capabilities — token categories, semantic naming patterns, dark mode readiness, and coverage score

—

recommend_checks

Analyzes code to determine which validation tools are most relevant — returns a prioritized list of tool names without running them all

codeText

suggest_fix

Generates concrete, copy-pasteable code fixes for validation issues by type (shadow-dom, token-fallback, theme-compat, method-call, event-usage, specificity, layout)

type, issue, original


Configuration

Configuration is resolved in priority order: environment variables > mcpwc.config.json > defaults.

mcpwc.config.json

Place this file at the root of your component library project (or wherever MCP_WC_PROJECT_ROOT points).

Key

Type

Default

Description

cemPath

string

"custom-elements.json"

Path to the Custom Elements Manifest, relative to projectRoot. Auto-discovered if omitted.

projectRoot

string

process.cwd()

Absolute path to the component library project root.

componentPrefix

string

""

Optional tag-name prefix (e.g. "sl-") to scope component discovery.

healthHistoryDir

string

".mcp-wc/health"

Directory where health snapshots are stored, relative to projectRoot.

tsconfigPath

string

"tsconfig.json"

Path to the project's tsconfig.json, relative to projectRoot.

tokensPath

string | null

null

Path to a design tokens JSON file. Set to null to disable token tools.

cdnBase

string | null

null

Base URL prepended to component paths when generating CDN <script> and <link> tags in suggest_usage output (e.g. "https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2/cdn"). Does not affect resolve_cdn_cem. Set to null to disable CDN suggestions.

watch

boolean

false

When true, HELiXiR automatically reloads the CEM on file changes.

scoring

object

undefined

Optional scoring configuration for customizing health dimension weights. See Configurable Health Scoring Weights.

Full example:

{
  "cemPath": "dist/custom-elements.json",
  "projectRoot": "/home/user/my-design-system",
  "componentPrefix": "ds-",
  "healthHistoryDir": ".mcp-wc/health",
  "tsconfigPath": "tsconfig.build.json",
  "tokensPath": "dist/tokens/tokens.json",
  "cdnBase": "https://cdn.jsdelivr.net/npm"
}

Configurable Health Scoring Weights

Enterprise teams have different priorities. A design system team may weight accessibility at 3× while a rapid-prototyping team may treat it as lower priority. The scoring.weights config section lets you adjust per-dimension weight multipliers:

{
  "scoring": {
    "weights": {
      "documentation": 1.0,
      "accessibility": 1.5,
      "naming": 1.0,
      "apiConsistency": 1.0,
      "cssArchitecture": 1.0,
      "cemSourceFidelity": 0.5
    }
  }
}

Each value is a positive multiplier applied to that dimension's base weight (e.g. 1.5 = 50% more influence; 0.5 = half influence). Omitted keys default to 1.0 (unchanged). Setting a key to 0 or a negative number is rejected with a warning.

Supported keys and their dimensions:

Config Key

Health Dimension

Default Weight

documentation

CEM Completeness

15

accessibility

Accessibility

10

typeCoverage

Type Coverage

10

apiConsistency

API Surface Quality

10

cemSourceFidelity

CEM-Source Fidelity

10

testCoverage

Test Coverage

10

cssArchitecture

CSS Architecture

5

eventArchitecture

Event Architecture

5

slotArchitecture

Slot Architecture

5

bundleSize

Bundle Size

5

storyCoverage

Story Coverage

5

naming

Naming Consistency

5

performance

Performance

5

drupalReadiness

Drupal Readiness

5

Accessibility-first team example:

{
  "scoring": {
    "weights": {
      "accessibility": 3.0,
      "testCoverage": 2.0,
      "cemSourceFidelity": 0.5
    }
  }
}

Rapid-prototyping team example:

{
  "scoring": {
    "weights": {
      "documentation": 0.5,
      "testCoverage": 0.5,
      "accessibility": 0.5
    }
  }
}

Environment Variables

Environment variables override all config file values. Useful for CI or when pointing the same server at different libraries.

Variable

Overrides

MCP_WC_PROJECT_ROOT

projectRoot

MCP_WC_CEM_PATH

cemPath

MCP_WC_COMPONENT_PREFIX

componentPrefix

MCP_WC_HEALTH_HISTORY_DIR

healthHistoryDir

MCP_WC_TSCONFIG_PATH

tsconfigPath

MCP_WC_TOKENS_PATH

tokensPath

MCP_WC_CDN_BASE

cdnBase

Set MCP_WC_TOKENS_PATH=null (the string "null") to explicitly disable token tools via env var.

See mcpwc.config.json.example for a ready-to-copy template.


AI Tool Configs

Claude Code (CLI)

Add to .mcp.json in your project root (project-scoped) or ~/.claude.json (global):

Option 1 — Install from npm (recommended)

npx helixir init  # generates mcpwc.config.json in your project root

Then add to .mcp.json:

{
  "mcpServers": {
    "helixir": {
      "command": "npx",
      "args": ["helixir"],
      "env": {
        "MCP_WC_PROJECT_ROOT": "/absolute/path/to/your/component-library"
      }
    }
  }
}

Option 2 — Install from local clone (development)

git clone https://github.com/bookedsolidtech/helixir.git
cd helixir
pnpm install
pnpm build

Then add to .mcp.json:

{
  "mcpServers": {
    "helixir": {
      "command": "node",
      "args": ["/absolute/path/to/helixir/build/index.js"],
      "env": {
        "MCP_WC_PROJECT_ROOT": "/absolute/path/to/your/component-library"
      }
    }
  }
}

Reload Claude Code after saving (:mcp to verify the server appears).

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "helixir": {
      "command": "npx",
      "args": ["helixir"],
      "env": {
        "MCP_WC_PROJECT_ROOT": "/absolute/path/to/your/component-library"
      }
    }
  }
}

Restart Claude Desktop after saving.

Cursor

Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):

{
  "mcpServers": {
    "helixir": {
      "command": "npx",
      "args": ["helixir"],
      "env": {
        "MCP_WC_PROJECT_ROOT": "${workspaceFolder}"
      }
    }
  }
}

VS Code (Cline / Continue)

Cline — add to .vscode/cline_mcp_settings.json:

{
  "mcpServers": {
    "helixir": {
      "command": "npx",
      "args": ["helixir"],
      "env": {
        "MCP_WC_PROJECT_ROOT": "${workspaceFolder}"
      }
    }
  }
}

Continue — add to ~/.continue/config.json under mcpServers:

{
  "mcpServers": [
    {
      "name": "helixir",
      "command": "npx helixir",
      "env": {
        "MCP_WC_PROJECT_ROOT": "/absolute/path/to/your/component-library"
      }
    }
  ]
}

Zed

Add to your Zed settings (~/.config/zed/settings.json):

{
  "context_servers": {
    "helixir": {
      "command": {
        "path": "npx",
        "args": ["helixir"],
        "env": {
          "MCP_WC_PROJECT_ROOT": "/absolute/path/to/your/component-library"
        }
      }
    }
  }
}

Security

HELiXiR applies defense-in-depth on all inputs that touch the file system or network:

  • Path containment — all file paths are resolved and verified to stay within projectRoot; .. traversals and absolute paths outside the root are rejected.

  • Input validation — every tool argument is validated with Zod schemas before reaching handler code; unknown properties are rejected via additionalProperties: false.

  • CDN safety — resolve_cdn_cem only fetches from allowlisted CDN origins (jsDelivr, UNPKG); arbitrary URLs are not accepted.

  • No shell execution — the server never spawns subprocesses based on user input; TypeScript diagnostics use the TS compiler API in-process.

See SECURITY.md for the vulnerability disclosure policy.


Quality Gates

Every pull request must pass all five CI checks before merge:

Workflow

What it checks

build

TypeScript type-check + tsc compile on Node 22/24

test

Full vitest suite with coverage on Node 22/24

lint

ESLint (TypeScript + Prettier compatibility rules)

format

Prettier formatting check

security

pnpm audit --audit-level=high

Pre-commit hooks (via husky + lint-staged):

  • TypeScript/JavaScript files: ESLint auto-fix → Prettier format

  • JSON/CSS/Markdown/YAML files: Prettier format

  • Commit messages: validated by commitlint against conventional-commits format

Allowed commit types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, audit

See CONTRIBUTING.md and LOCAL.md for full setup details.


Compliance

HELiXiR generates a CycloneDX Software Bill of Materials (SBOM) as part of every release. The sbom.json artifact is attached to each GitHub Release and lists all runtime and development dependencies with their versions, licenses, and package identifiers — suitable for enterprise security audits and supply-chain compliance reviews.


Contributing

See CONTRIBUTING.md for guidelines.

Quick steps:

  1. Fork the repo and create a feature branch.

  2. Run pnpm install to install dependencies.

  3. Make your changes in src/.

  4. Run pnpm test to ensure all tests pass.

  5. Run pnpm run lint && pnpm run format:check before submitting.

  6. Open a pull request with a clear description of the change.

Issues and feature requests are welcome on GitHub.


License

MIT © 2025-2026 Clarity House LLC d/b/a Booked Solid Technology

Available Tools

79 tools
analyze_accessibilityB

Analyzes the accessibility profile of one or all web components from CEM data. Checks for ARIA roles, aria-* attributes, form association, keyboard events, focus management, disabled state, label support, and accessibility documentation. When libraryRoot is provided alongside tagName, the report is enriched with helix-native AAA evidence (helixMeta, AAA verdict snapshot, source-level signals).

Inputs: tagName, libraryRoot.

analyze_token_canonicalityB

Look up a single token (or every alias in the loaded map) against the helix R-round deprecation history. Returns whether the name is canonical, the canonical replacement, and provenance metadata (R-round, commit, removal version). Backbone of M4 finding generation; expose for ad-hoc consumer queries.

Inputs: tokenName, libraryId.

apply_theme_tokensA

Map a theme token definition to specific components, showing how to apply it with correct CSS custom property overrides. Accepts a map of CSS variable names to values, then generates per-component CSS blocks and a global :root block. Use this after create_theme to wire your theme tokens to individual component CSS properties.

Inputs: themeTokens (required), tagNames, libraryId.

audit_component_with_codexA

Run a structured codex adversarial audit against one component. Caches results by contract-surface hash so unchanged surfaces hit cache instantly; surface changes force a fresh review. Findings reference the helix defect-class corpus (01–14). Use this BEFORE shipping an extending component or migrating between helix versions.

Inputs: tagName (required), force, auditsRoot, libraryId.

audit_libraryA

Generates a JSONL audit report scoring every component across all dimensions of the registered scoring system. Returns file path (if outputPath given) and summary stats. Each line is valid JSON for one component.

Inputs: outputPath, libraryId, libraryRoot.

benchmark_librariesA

Compares 2-10 web component libraries by normalizing metrics (properties, events, CSS properties, documentation quality, slots) and producing a weighted score and markdown comparison table.

Inputs: libraries (required).

check_a11y_usageA

Validates consumer HTML for accessibility mistakes when using web components — catches missing accessible labels on icon buttons/dialogs/selects, and manual role overrides on components that self-assign ARIA roles. Run this on any HTML using web components to catch a11y issues.

Inputs: htmlText (required), tagName (required), libraryId.

check_attribute_conflictsA

Detects conditional attributes used without their guard conditions — catches "target" without "href", "min"/"max" on non-number inputs, "checked" without type="checkbox", and other attribute interaction mistakes. Parses CEM member descriptions for "Only used when" and "Only applies to" patterns.

Inputs: htmlText (required), tagName (required), libraryId.

check_breaking_changesA

Run a breaking-change scan across ALL components in the CEM, comparing the current branch against a base branch. Returns a per-component summary with emoji status indicators.

Inputs: baseBranch (required), libraryId.

check_color_contrastA

Detects color contrast issues in CSS: low-contrast hardcoded color pairs (light-on-light, dark-on-dark), mixed color sources (one design token + one hardcoded), and low opacity on text. Catches patterns that break readability across theme changes.

Inputs: cssText (required).

check_component_importsA

Scans HTML/JSX/template code for all custom element tags and verifies they exist in the loaded CEM. Catches non-existent components and misspelled tag names with fuzzy suggestions. Use this to verify that generated code only references real components.

Inputs: codeText (required), libraryId.

check_compositionA

Validates cross-component composition patterns — catches tab/panel count mismatches, unlinked cross-references (tab panel="x" without matching panel name="x"), and empty containers (select with no options). Detects component pairs automatically from CEM slot descriptions. Run this on any HTML using compound components like tab-groups, selects, accordions, etc.

Inputs: htmlText (required), libraryId.

check_css_scopeA

Detects when component-scoped CSS custom properties are set at the wrong scope. Catches component tokens placed on :root, html, body, or * selectors instead of on the component host element. Component tokens only take effect when set on the host — setting them on :root has no effect through shadow DOM.

Inputs: cssText (required), tagName (required).

check_css_shorthandA

Detects risky CSS shorthand + var() combinations that can fail silently. When var() is mixed with literal values in shorthand properties (border, background, font, margin, etc.), if any var() is undefined the ENTIRE declaration fails — not just the dynamic part. Suggests decomposing into longhand properties.

Inputs: cssText (required).

check_css_specificityA

Detects CSS specificity anti-patterns that cause styling issues with web components — catches !important usage, ID selectors targeting components, deeply nested selectors (4+ levels), and inline style attributes. Supports both CSS and HTML mode. Run this on any CSS or HTML to prevent specificity wars.

Inputs: code (required), mode.

check_css_varsA

Validates consumer CSS for custom property usage against a component CEM — catches unknown CSS custom properties with typo suggestions, and !important on design tokens (anti-pattern). Run this on any CSS that sets component-scoped custom properties.

Inputs: cssText (required), tagName (required), libraryId.

check_dark_mode_patternsA

Detects dark mode styling anti-patterns specific to web components with Shadow DOM. Catches: (1) theme-scoped selectors (.dark, [data-theme], @media prefers-color-scheme) setting standard CSS properties on web component hosts — these won't reach shadow DOM internals, (2) descendant selectors inside theme scopes trying to pierce shadow boundaries. Suggests using CSS custom properties to communicate theme changes through shadow DOM. Run this on any CSS that implements dark mode or theming for web components.

Inputs: cssText (required).

check_event_usageA

Validates event listener patterns against a component CEM — catches React onXxx props for custom events (won't work), unknown event names, misspelled events, and framework-specific binding mistakes. Supports React, Vue, and Angular patterns.

Inputs: codeText (required), tagName (required), libraryId, framework.

check_html_usageB

Validates consumer HTML against a component CEM — catches invalid slot names, wrong enum attribute values, boolean attribute misuse, and unknown attributes with typo suggestions. Run this on any HTML using web components to catch markup mistakes.

Inputs: htmlText (required), tagName (required), libraryId.

check_layout_patternsA

Detects layout anti-patterns when styling web component host elements — catches display overrides (components manage their own display), fixed pixel dimensions (breaks responsive), position absolute/fixed (conflicts with component positioning), and overflow: hidden (clips shadow DOM popups/tooltips). Run this on any CSS that sets layout properties on web components.

Inputs: cssText (required).

check_method_callsA

Validates JavaScript/TypeScript code for correct method and property usage on web components — catches hallucinated API calls (methods that do not exist), properties called as methods (e.g. dialog.open() when open is a boolean), methods assigned as properties (e.g. dialog.show = true), and typos with suggestions. Run this on any JS code that interacts with web component APIs.

Inputs: codeText (required), tagName (required), libraryId.

check_shadow_dom_jsA

Detects JavaScript anti-patterns that violate Shadow DOM encapsulation from consumer code. Catches: accessing .shadowRoot.querySelector() to bypass encapsulation, calling attachShadow() on existing components, setting innerHTML on web components (overwriting slot content), and using style.cssText instead of CSS custom properties.

Inputs: codeText (required), tagName.

check_shadow_dom_usageA

Scans consumer CSS code for Shadow DOM anti-patterns — descendant selectors piercing shadow boundaries, ::slotted() misuse, invalid ::part() chaining, !important on tokens, unknown part names, and typo detection. Run this on any CSS targeting web components to catch mistakes before they reach production.

Inputs: cssText (required), libraryId, tagName.

check_slot_childrenB

Validates that children placed inside a web component's slots match the expected element types from the CEM — catches wrong child elements in constrained slots (e.g. putting a inside which requires ). Parses slot descriptions for "Must be", "Works best with", and "Accepts" patterns.

Inputs: htmlText (required), tagName (required), libraryId.

check_theme_compatibilityA

Validates consumer CSS for dark mode and theme compatibility — catches hardcoded colors on background/color/border properties, hardcoded shadow colors, and potential contrast issues (light-on-light or dark-on-dark pairings). Does NOT require a CEM — works on any CSS. Run this on styling code to ensure it adapts to theme changes.

Inputs: cssText (required), libraryId.

check_token_fallbacksB

Validates consumer CSS for proper var() fallback chains and detects hardcoded colors that break theme switching. Catches var() calls without fallback values (fragile if token undefined), hardcoded hex/rgb/hsl/named colors on color properties (breaks dark mode), and named CSS colors used directly instead of tokens. Run this on any CSS that references design tokens.

Inputs: cssText (required), tagName (required), libraryId.

check_transition_animationA

Detects CSS transitions and animations on web component hosts that target standard properties which cannot cross Shadow DOM boundaries. Transitions on standard properties (color, background, opacity) only affect the host element box, not the component internals. Use CSS custom properties for animations that the component consumes.

Inputs: cssText (required), tagName (required).

create_themeA

Scaffold a complete enterprise CSS theme from the component library's design tokens. Analyzes the CEM to detect the token prefix and categories, then generates a ready-to-customize CSS file with light mode variables, dark mode overrides (via prefers-color-scheme and explicit class), and color-scheme declarations. Returns the full CSS content and per-category token counts.

Inputs: themeName, prefix, libraryId.

detect_frameworkA

Identifies which web component framework the project uses by inspecting package.json dependencies, CEM metadata, and config files. Returns the framework name, version, CEM generator, and regeneration notes.

Inputs: no named parameters.

detect_helix_evidenceA

Detect helix-native AAA evidence (helixMeta in CEM, aaa-verdicts.json snapshot, AAA-AUDIT.md sidecar, source-level signals) for a single tagName. Returns the raw HelixAaaEvidence object — useful for surfacing the same evidence helixir scores against (Storybook a11y card, readiness pipeline).

Inputs: tagName (required), libraryRoot, libraryId.

detect_theme_supportA

Analyzes a component library for theming capabilities — token categories (color, spacing, typography, etc.), semantic naming patterns, dark mode readiness, and coverage score. Library-wide analysis, not per-component.

Inputs: libraryId.

diagnose_stylingA

Generates a Shadow DOM styling guide for a web component — token prefix, theming approach, dark mode support, anti-pattern warnings, and correct CSS usage snippets. Use this before writing any component CSS to prevent Shadow DOM mistakes.

Inputs: tagName (required), libraryId.

diff_cemA

Compare a component's CEM metadata between the current branch and a base branch, reporting breaking changes (removals, type changes) and non-breaking additions.

Inputs: tagName (required), baseBranch (required), libraryId.

estimate_bundle_sizeA

Estimate the bundle size (minified + gzipped) for a web component or its parent npm package. Queries bundlephobia and the npm registry. Results are cached in memory for 24 hours.

Inputs: tagName (required), package, version, include_full_package.

extend_componentA

Generates a properly subclassed TypeScript component extending an existing web component. Produces the correct inheritance chain (class NewClass extends ParentClass), CEM @customElement annotation, CSS part forwarding guidance (exportparts), inherited slot documentation, TypeScript HTMLElementTagNameMap declaration, and Shadow DOM style encapsulation warnings. Prevents common extension anti-patterns such as broken inheritance chains, missing exportparts declarations, and style isolation surprises.

Inputs: parentTagName (required), newTagName (required), libraryId, newClassName.

find_componentA

Semantically search for components by name, description, or member names using token-overlap scoring. Returns the top 3 matches with scores above zero.

Inputs: query (required), libraryId.

find_components_by_tokenA

Find all components that expose or use a given CSS custom property token. Returns tagName, token description, and default value for each match.

Inputs: tokenName (required), libraryId, partialMatch.

find_components_using_tokenA

Find all components that reference a given CSS custom property token in their cssProperties array. Useful for impact analysis before renaming or removing a design token. Works without tokensPath configured.

Inputs: tokenName (required), libraryId, fuzzy.

find_tokenA

Find design tokens by name pattern or value using a case-insensitive substring match. Requires tokensPath to be set in mcpwc.config.json or MCP_WC_TOKENS_PATH.

Inputs: query (required).

generate_importA

Generates import statements for a component based on the CEM exports and package.json. Returns both a side-effect import and a named import.

Inputs: tagName (required), libraryId.

generate_storyA

Generates a Storybook CSF3 story file for a web component based on its CEM declaration. Returns TypeScript source ready to paste into a .stories.ts file, with argTypes, default args, a render function, and named story exports for each variant value.

Inputs: tagName (required), libraryId.

generate_typesA

Generates TypeScript type definitions (.d.ts content) for all custom elements in the CEM. Attribute interface property names are sourced from the CEM attribute field (the HTML attribute name), not the JavaScript property name, ensuring the output accurately reflects the component API. Returns a string ready to save as helix.d.ts or similar.

Inputs: libraryId.

get_componentA

Get full metadata for a web component by tag name, including members, events, slots, CSS parts, and CSS properties.

Inputs: tagName (required), libraryId.

get_component_dependenciesA

Returns the dependency graph for a component — direct dependencies (components it renders) and transitive dependencies (full tree). Requires a CEM built with dependency reference data.

Inputs: tagName (required), libraryId, includeTransitive.

get_component_narrativeA

Returns a 3-5 paragraph markdown prose description of a component — what it is, when to use it, how to customize it, its slots, and its events. Optimized for LLM comprehension.

Inputs: tagName (required), libraryId.

get_component_quick_refA

Returns a complete quick reference for a web component — all attributes with types and valid enum values, methods, events, slots, CSS custom properties with examples, CSS parts with ::part() selectors, a ready-to-use CSS snippet, Shadow DOM warnings, and antiPatterns (component-specific "don't do this" negative examples using real tag/part/token names). Use this as the FIRST call when working with any web component to get the complete API surface and avoid common mistakes.

Inputs: tagName (required), libraryId.

get_composition_exampleA

Generates a realistic HTML snippet showing how to compose two or more web components together. Slot assignments are drawn from CEM slot definitions. Provide 1–4 component tag names; a single tag name returns a standalone usage example.

Inputs: tagNames (required), libraryId.

get_design_tokensA

List all design tokens from the configured tokens file, optionally filtered by category (e.g. "color", "spacing", "typography"). Requires tokensPath to be set in mcpwc.config.json or MCP_WC_TOKENS_PATH.

Inputs: category.

get_file_diagnosticsA

Run TypeScript diagnostics on a single file and return any type errors or warnings.

Inputs: filePath (required).

get_health_diffA

Compares health between the current branch and a base branch, returning before/after scores with improvement or regression verdict.

Inputs: tagName (required), baseBranch, libraryId.

get_health_summaryA

Returns aggregate health statistics for all components: average score, grade distribution, total count, library-wide trend, per-dimension averages, and components needing attention (score below 70).

Inputs: libraryId, libraryRoot.

get_health_trendB

Returns the health trend for a component over the last N days, including data points, trend direction, and change percent.

Inputs: tagName (required), days, libraryId.

get_library_summaryA

Get an overview of the component library: component count, average health score, grade distribution, and last health check timestamp.

Inputs: libraryId.

get_project_diagnosticsA

Run a full TypeScript diagnostic pass on the entire project and return error and warning counts.

Inputs: no named parameters.

get_prop_constraintsA

Returns a structured constraint table for a component attribute. Union type attributes include all valid values with descriptions. Non-union types return simple type info.

Inputs: tagName (required), attributeName (required), libraryId.

list_componentsA

List all custom element components registered in the Custom Elements Manifest.

Inputs: libraryId.

list_components_by_categoryA

Group components by functional category (form, navigation, feedback, layout, data-display, media, overlay). Uses @category JSDoc tag when present, falls back to heuristic tag-name pattern matching.

Inputs: libraryId, category, includeUncategorized.

list_css_partsA

List all CSS parts (::part()) across all components in the library. Optionally filter by component tag name. Returns part name, component tag, and description.

Inputs: libraryId, tagName.

list_eventsA

List all events across all components in the library. Optionally filter by component tag name. Returns event name, component tag, description, and detail type.

Inputs: libraryId, tagName.

list_helixir_toolsA

Discover the helixir MCP tool catalog: every registered tool with its summary, when-to-call triggers, input shape, and tags. Filter by tag or substring. Use this FIRST when you are unsure which helixir tool fits a task — install ≠ adoption.

Inputs: tags, search.

list_librariesA

List all loaded web component libraries with their IDs, component counts, and source types.

Inputs: no named parameters.

list_slotsA

List all slots across all components in the library. Optionally filter by component tag name. Returns slot name, component tag, description, and whether the slot is named or default.

Inputs: libraryId, tagName.

load_libraryA

Load an additional web component library into memory by libraryId. Provide either a local cemPath or a packageName (+ optional version) to fetch from CDN. Once loaded, all CEM-dependent tools can target this library using the libraryId parameter.

Inputs: libraryId (required), cemPath, packageName, version, +1 more.

recommend_checksA

Analyzes code to determine which validation tools are most relevant — detects HTML, CSS, JavaScript, and JSX patterns, identifies custom element tags, and returns a prioritized list of tool names. Use this as a meta-tool to discover which validators to run on a given piece of code without running them all.

Inputs: codeText (required).

resolve_cdn_cemA

Fetch and cache a web component library's Custom Elements Manifest (CEM) from a CDN registry (jsDelivr or UNPKG) by npm package name. Useful when the library is loaded via CDN without a local npm install. By default (register: false) the CEM is only fetched and cached locally — server state is NOT modified. Set register: true to also register the CEM into the multi-library store for use with other tools.

Inputs: package (required), version, registry, register, +1 more.

resolve_css_apiA

Resolves every ::part(), CSS custom property, and slot reference in agent-generated code against the actual component CEM data. Returns a structured report showing which references are valid, which are hallucinated, and suggests the closest valid alternatives. Call this BEFORE shipping any CSS to verify that every part name, token name, and slot name actually exists on the target component.

Inputs: cssText (required), tagName (required), libraryId, htmlText.

scaffold_componentA

Generate a complete Helix-pattern web component scaffold: Lit class with decorators, CEM annotations (@slot, @csspart, @fires), Vitest test stub, Storybook CSF3 story, and CSS structure. Conventions (tag prefix, base class) are auto-detected from the library CEM so the generated code matches existing library patterns.

Inputs: tagName (required), baseClass, slots, cssParts, +2 more.

score_all_componentsA

Returns health scores for all components in the library. Set multiDimensional=true for full 11-dimension enterprise scoring.

Inputs: multiDimensional, libraryRoot.

score_componentA

Returns the latest health score for a single web component, including grade, dimension scores, and issues. Set multiDimensional=true for the full 11-dimension enterprise scoring with tier gates.

Inputs: tagName (required), libraryId, multiDimensional, libraryRoot.

styling_preflightA

Single-call styling validation that combines component API discovery, CSS reference resolution, and anti-pattern detection. Returns: the component's full style API surface (parts, tokens, slots), valid/invalid status for every ::part() and token reference, Shadow DOM and theme validation issues with inline fix suggestions (each issue includes a fix object with corrected code + explanation), antiPatterns (component-specific negative examples), a correct CSS snippet, and a pass/fail verdict. Call this ONCE before finalizing any component CSS — fixes are embedded in each issue so you don't need a separate suggest_fix call.

Inputs: cssText (required), tagName (required), libraryId, htmlText.

suggest_fixA

Generates concrete, copy-pasteable code fixes for validation issues. Pass the issue type (shadow-dom, token-fallback, theme-compat, method-call, event-usage, specificity, layout), the specific issue kind, and the original code — returns a corrected code snippet with an explanation. NOTE: styling_preflight and validate_css_file now embed fixes inline in each issue — only call suggest_fix directly for issues from other validators or when you need a fix for code not already validated.

Inputs: type (required), issue (required), original (required), tagName, +6 more.

suggest_usageA

Generates an HTML usage snippet for a component, showing key attributes with their default values. Lists required vs optional attributes and variant options from union types.

Inputs: tagName (required), libraryId, framework.

unload_libraryA

Remove a loaded library from memory. Cannot unload the "default" library. Subsequent tool calls with this libraryId will fail.

Inputs: libraryId (required).

validate_cemA

Validates the documentation completeness of a component in the Custom Elements Manifest. Returns a pass/fail result with a score and list of issues.

Inputs: tagName (required), libraryId.

validate_component_codeA

ALL-IN-ONE validator — runs 19 anti-hallucination sub-validators on agent-generated code in a single call. Validates HTML attributes, slot children, attribute conflicts, a11y patterns, Shadow DOM CSS, custom properties, token fallbacks, theme compatibility, CSS specificity, layout patterns, inline styles, event bindings, method calls, composition patterns, component imports, color contrast, CSS scope, shorthand safety, and transition/animation patterns. Returns antiPatterns (component-specific negative examples) and auto-generated fix suggestions on issues. Use this as the FINAL check before submitting any code that uses web components.

Inputs: html (required), tagName (required), libraryId, css, +2 more.

validate_css_fileA

Validates an entire CSS file targeting multiple web components in one call. Auto-detects all web component tag names in selectors, runs per-component validation (Shadow DOM, ::part() resolution, token validation, scope checks) and global validation (theme compatibility, color contrast, specificity, shorthand). Each component result includes antiPatterns (negative examples) and each issue includes an inline fix object with corrected code + explanation. Returns issues grouped by component plus global issues. Use this when reviewing a CSS file that styles multiple components — no need to know which components are used.

Inputs: cssText (required), libraryId.

validate_usageA

Validates proposed HTML usage of a web component against its CEM spec. Checks for unknown attributes, deprecated properties, invalid slot names, and enum type mismatches. Returns a pass/fail result with specific issues and "did you mean?" suggestions for typos.

Inputs: tagName (required), html (required), libraryId.

verify_extensionA

Audit an extending component against its parent's contract surface. Catches slot drift, ARIA regressions, lost form-association, suppressed events, missing forced-colors blocks, sub-44px touch targets, and broken accessible-label devWarn patterns. Findings reference defect-corpus classes 05-11. Use this BEFORE shipping any helix-pattern subclass.

Inputs: parentTagName (required), subclassTagName (required), subclassSourcePaths, libraryId.

verify_token_inheritanceA

Audit a component for token-related defects across helix R8/R11/R14/R32 alias renames, cascade gaps under dark / high-contrast overlays, and raw color literals where tokens exist. Findings reference defect-corpus classes 01, 02, 03, 14. Use this BEFORE shipping an extending component or migrating across helix major versions.

Inputs: tagName (required), cssSourcePaths, overlays, libraryId.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 79 tools

    Disambiguation3/5

    Many tools have distinct purposes, but there is significant overlap between the all-in-one validator (validate_component_code) and multiple individual check tools. Similarly, styling_preflight and validate_css_file have overlapping functionality, which could confuse an agent on which to call.

    Naming Consistency4/5

    Most tools follow a clear verb_noun pattern (e.g., check_color_contrast, generate_types). A few outliers exist like 'styling_preflight' (noun_verb) and 'diff_cem' (abbreviation), but overall naming is predictable and consistent.

    Tool Count3/5

    79 tools is higher than typical, but the server covers a broad domain of web component development (analysis, validation, code generation, health, etc.). The count is borderline; some tools could be merged (e.g., the many check_ tools) without losing functionality.

    Completeness4/5

    The tool surface covers nearly all aspects of working with web components: discovery, validation, code generation, health monitoring, and more. Minor gaps exist (e.g., no tool for bulk component migration), but the set is very comprehensive for its stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP Server for accessing W3C/WHATWG/IETF web specifications. Provides AI assistants with access to official web standards data including specifications, WebIDL definitions, CSS properties, and HTML elements.
      11
      22 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that exposes your design system components and tokens to AI agents, preventing duplicate component creation and hardcoded token values.
      6 npm
      9
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that scans React and Vue projects, extracts component metadata (props, slots, events, imports, usage), and exposes it to AI coding agents via structured tools.
      7
      1
      MIT