mcp-server
v6.5.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
componentName * | string | e.g. 'button' |
get_component_props
Returns the raw TypeScript content of a component's model.ts, listing all interfaces and props.
| Parameter | Type | Description |
|---|---|---|
componentName * | string | e.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.
| Parameter | Type | Description |
|---|---|---|
category * | string | Token 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.
| Parameter | Type | Description |
|---|---|---|
componentName * | string | e.g. 'button' |
exampleName * | string | Readable example name, e.g. 'Show Icon Leading' |
framework * | string | Target framework: 'react', 'angular', 'vue' or 'web-components' |
docs_search
Searches the DB UX component and foundation documentation (guidelines, Accessibility, framework-specific docs). Only docs from packages/components/ and packages/foundations/docs/ are included. For migration guides, use list_migration_guides and get_migration_guide instead.
| Parameter | Type | Description |
|---|---|---|
category * | string | Search scope: 'global' (docs/ directory) or 'component' (packages/components/.../docs/). |
query * | string | Search term (e.g., 'focus state', 'migration', 'accessibility'). Use empty string if you just want to read a specific component doc. |
componentName | string | Required if category is 'component' (e.g., 'button', 'navigation'). |
docType | string | Optional: The specific doc file to read for a component (e.g., 'Accessibility'). For migration docs, use list_migration_guides / get_migration_guide instead. |
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.
| Parameter | Type | Description |
|---|---|---|
guideName * | string | Exact 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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the visual reference (e.g. 'dashboard', 'form', 'table'). Call list_visuals to see all available names. |