mcp-server

v6.5.0
@db-ux/mcp-server Checked 6 hours ago Published 5 days ago

MCP server for DB UX Design System – gives LLMs access to UI components and code examples

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

list_components

Returns all available DB UX component names by scanning packages/components/src/components.

get_component_details

Returns the list of examples (e.g. Density, Variant) for a component by reading its showcase file.

ParameterTypeDescription
componentName *stringe.g. 'button'

get_component_props

Returns the raw TypeScript content of a component's model.ts, listing all interfaces and props.

ParameterTypeDescription
componentName *stringe.g. 'button'

list_design_token_categories

Returns all available DB UX design token categories (e.g. colors, spacing, typography).

get_design_tokens

Returns CSS custom properties (--db-*) for a given design token category. For spacing, elevation, and density, returns compiled primitive values (rem, px, box-shadow). For colors, typography, animation, and transitions, returns SCSS variable declarations.

ParameterTypeDescription
category *stringToken category, e.g. 'colors', 'spacing', 'typography', 'elevation', 'density'. Use list_design_token_categories to get available categories.

list_icons

Returns all available DB UX icon names (e.g. 'arrow_down', 'chevron_right') from the generated all-icons.ts in packages/foundations/src.

get_example_code

Returns the generated framework-specific source code for a component example. For Angular, the template is inline inside the @Component decorator within the .ts file. Plain HTML has no generated examples - use docs_search with docType "HTML" for that.

ParameterTypeDescription
componentName *stringe.g. 'button'
exampleName *stringReadable example name, e.g. 'Show Icon Leading'
framework *stringTarget framework: 'react', 'angular', 'vue' or 'web-components'

list_migration_guides

Returns all available DB UX migration guide names. Call this first to discover which guides exist before calling get_migration_guide.

get_migration_guide

Returns the full markdown content of a specific DB UX migration guide. Use this to learn the exact syntax changes needed to refactor legacy "DB UI" code to "DB UX" code.

ParameterTypeDescription
guideName *stringExact guide name as returned by list_migration_guides, e.g. 'color-migration' or 'icon-migration'.

verify_migrated_code

IMPORTANT: ALWAYS call this tool after generating or modifying Generation 3 code and BEFORE showing it to the user. The tool instructs you to verify the workspace using the project's own scripts (typecheck, lint, build) from package.json. If errors are found, fix the code and call the tool again (max 3 attempts).

scan_generation_2_migration

IMPORTANT: Call this tool FIRST when asked to migrate a file. Scans a source file for DB UX Design System – Generation 2 patterns (Generation 2 CSS classes (cmp-*, elm-*, rea-*) and Generation 2 Web Components (<db-*), color tokens like db-color-*, and legacy icon names) and returns a JSON report with exact line numbers and deterministic migration suggestions resolved from the official migration guides. This gives you a precise migration plan before you start generating code — no guessing needed.

ParameterTypeDescription
filePath *stringAbsolute path or path relative to the workspace root of the file to scan.

list_visuals

Returns all available visual reference names (e.g. dashboard, form, table). Call this first to discover which visuals exist before requesting one.

get_visual_reference

Returns a pre-optimised visual reference image (max 800×800 px, JPEG q75) as a Base64-encoded image block. Use this when you need visual context for complex layouts, z-index reasoning, or verifying visual hierarchies. Call list_visuals first to see available names.

ParameterTypeDescription
name *stringName of the visual reference (e.g. 'dashboard', 'form', 'table'). Call list_visuals to see all available names.