ng-design-system-mcp

v0.0.40
@besaitech/ng-design-system-mcp Checked 2 days ago Published 8 days ago

MCP server that exposes the @besaitech/ng-design-system Angular component library documentation (API, examples, tokens, icons, setup) to AI coding tools.

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

sds_list_components List saitech-design-system components

List the saitech-design-system design-system components (and directives/services). Start here to discover what is available before generating code.

ParameterTypeDescription
groupstringFilter components by group.
kindstringFilter by kind (default: component).

sds_get_component Get saitech-design-system component API

Full API for one component: inputs (with types, defaults, transforms, required, alias), outputs (including synthesized two-way `model()` change-outputs), exported types, content-projection slots, host bindings, the import line, and whether it is a ControlValueAccessor (bind value via ngModel/formControl, not [value]). The primary lookup before writing saitech-design-system markup.

ParameterTypeDescription
name *stringComponent class name (SdsButton), selector (sds-button), or bare name (button).

sds_get_examples Get saitech-design-system usage examples

Curated, copyable usage snippets for a component, grouped by their (French) section taxonomy. The `code` field is the canonical doc snippet to copy; `runnableExample` is the live demo markup.

ParameterTypeDescription
name *stringComponent class name, selector, or bare name.
sectionstringFilter to sections whose title contains this text.

sds_validate_usage Validate saitech-design-system markup

Lint a candidate Angular snippet against the saitech-design-system API: unknown selectors, invalid input names, invalid enum values, missing required inputs, unregistered icon names, and binding [value] on a ControlValueAccessor control. Run this after generating saitech-design-system markup.

ParameterTypeDescription
code *stringThe Angular template / component snippet to check.

sds_validate_icon Validate an sds-icon name

Check whether an icon name is registered in SDS_ICONS (an unregistered <sds-icon name> renders nothing). Returns near-miss suggestions when invalid.

ParameterTypeDescription
name *stringIcon name, e.g. "search", "calendar".

sds_get_token Get saitech-design-system design tokens

Look up design tokens (colors, radii, status, layout) with their Tailwind utility and CSS variable. Omit args to list all.

ParameterTypeDescription
familystringFilter by token family.
namestringExact or partial token name, e.g. "brand-600".

sds_get_setup Get saitech-design-system install & Tailwind setup

The install + Tailwind v4 setup checklist (install command, @import/@source, brand theme preset, peer deps, standalone usage). The #1 source of "components render unstyled" issues.

ParameterTypeDescription
contextstringAudience (default: consumer).