Krusch Frontend MCP
v1.1.2Canonical UI templates, WCAG color palettes, Tailwind CSS conversion, and responsive design MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_color_palette
Generates a cohesive color palette (complementary, analogous, triadic) and contrast scores from a base hex code.
| Parameter | Type | Description |
|---|---|---|
baseHex * | string | The base color in #RRGGBB format |
css_to_tailwind
Translates standard CSS properties into Tailwind utility classes.
| Parameter | Type | Description |
|---|---|---|
cssString * | string | Raw CSS rules (e.g. 'display: flex; padding: 1rem;') |
ingest_figma_tokens
Parses Figma JSON token exports, converts them to CSS variables/Tailwind configs, and indexes them into the RAG database.
| Parameter | Type | Description |
|---|---|---|
tokensJsonStr * | string |
generate_css_variables_from_figma
Parses Figma JSON token exports and returns a CSS string with a :root block defining CSS custom properties (variables) for each token. Use this to generate actual CSS rather than ingesting into the RAG.
| Parameter | Type | Description |
|---|---|---|
tokensJsonStr * | string |
query_design_rules
Semantic RAG search over specific design guidelines, CSS architecture, and accessibility standards.
| Parameter | Type | Description |
|---|---|---|
queryStr * | string | |
paradigm | string | Optional aesthetic paradigm to filter by (e.g. 'universal', 'refactoring-ui', 'vercel', 'apple-hig', 'material-design') |
analyze_layout_structure
Accepts an HTML structure and returns the optimal CSS layout approach (Flexbox vs Grid) and the necessary CSS.
| Parameter | Type | Description |
|---|---|---|
htmlString * | string |
generate_component_styles
Given a component description (e.g. 'glassmorphism card with hover lift'), generates CSS custom properties and classes. Enriches output with RAG-retrieved design rules.
| Parameter | Type | Description |
|---|---|---|
description * | string | Natural language description of the component aesthetic |
paradigm | string | Optional aesthetic paradigm to filter RAG rules by (e.g. 'refactoring-ui', 'universal', 'vercel') |
generate_responsive_breakpoints
Generates standard CSS media queries for responsive breakpoints (e.g. sm, md, lg) with optional custom width overrides.
| Parameter | Type | Description |
|---|---|---|
customBreakpoints | object | Optional overrides for breakpoints. e.g. { '3xl': '1920px' } |
frontend_get_provenance
Company Brain Substrate (SQLite): Interrogate why a piece of context or design rule exists by tracing its version history.
| Parameter | Type | Description |
|---|---|---|
id * | number | The ID of the frontend RAG item to trace. |
frontend_traverse_graph
Company Brain Substrate (SQLite): Graph Traversal. Traverses parent/child memory lineage for frontend design rules.
| Parameter | Type | Description |
|---|---|---|
id * | number | The ID of the frontend RAG item to traverse from. |
depth | number | Default is 3. |
direction | string | Default is 'all'. |
get_canonical_template
Returns the authoritative bit-for-bit HTML/SVG component template or @krusch/toolkit & krusch_toolkit Lego starter brick for krusch.dev and homelab projects.
| Parameter | Type | Description |
|---|---|---|
templateKey * | string | The canonical template or Lego starter brick key to retrieve. |
list_canonical_templates
Lists all available canonical HTML/SVG design templates and @krusch/toolkit & krusch_toolkit Lego starter bricks for homelab projects.