mcp-server

v0.5.0
@dsaireadable/mcp-server Checked 2 days ago Published 24 days ago

MCP Server for the DSAIReadable Design System

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

dsaireadable_get_design_system_overview Design system overview

Returns the versions, the install command, the brands and how to switch them, the required imports, the shadcn/ui components left out, counts and categories

dsaireadable_get_components Components

Lists the components with their category, status, code path and sizes: { total, items, next_cursor }

ParameterTypeDescription
categorystringBrand, Conversation, Data, Feedback, Forms, Layout, Media, Misc, Navigation, Overlay or Typography
cursorstringThe next_cursor of the previous page
limitintegerDefault 100

dsaireadable_get_component_specs Component spec

Returns one component's spec: role, MUST / MUST NOT constraints, export names, cross-references and how its API departs from shadcn/ui (each divergence, with the reason; write the shadcn/ui API everywhere else). The whole spec, with anatomy, tokens and states, is the resource ds://component/{name}/spec

ParameterTypeDescription
component_name *stringe.g. Button, Card, Dialog
response_formatstring"detailed" adds usage, export summaries and descriptions, props, accessibility (ARIA pattern, keyboard, accessible name, pitfalls), the code example, the cva variants with their defaults, the sizes an…

dsaireadable_get_tokens Semantic tokens

Returns the semantic tokens: { total, items, next_cursor }. One token is the resource ds://token/{path}

ParameterTypeDescription
categorystring
cursorstringThe next_cursor of the previous page
limitintegerDefault 100

dsaireadable_get_deprecations Deprecations

Returns the deprecated tokens and component exports, each with its replacement. Check it before using a token or an export from an earlier version

ParameterTypeDescription
kindstringOmit for both

dsaireadable_get_changelog Changelog

Returns the changelog, one entry per change, newest release first: { total, items, next_cursor }. Read it for what changed since the version you know

ParameterTypeDescription
categorystringA changelog heading, such as Minor Changes or Fixed
cursorstringThe next_cursor of the previous page
limitintegerDefault 100
versionstringA release number

dsaireadable_get_typography Typography

Returns the font families, type scale, text roles with their size in each brand, weights, line heights, letter spacing and usage rules

dsaireadable_get_icons Icons

Returns the icon library, its default size, its usage rules and the catalog URL

dsaireadable_get_design_rules Design rules

Returns the design rules. Without a category: the composition rules, the titles of the critical rules and the categories to pass

ParameterTypeDescription
categorystringA foundation (color, spacing, focus…) or a component name: its rules and the composition rules that cover it. "composition": every composition rule. "tailwind": the critical rules
response_formatstring"detailed" adds the critical rules whole and, without a category, the other foundation rules except those for UI text

dsaireadable_list_patterns Page patterns

Lists the page patterns with name, title, kind and role: tasks (create, edit, delete, filter, search, sign-in, settings), the UI patterns they share (empty-state, form, loading, navigation, saving) and the project's own

ParameterTypeDescription
kindstring

dsaireadable_get_pattern Page pattern

Returns one page pattern by name or title: role, usage rules and the components it takes

ParameterTypeDescription
name *stringe.g. "create", "sign-in", "Empty state"
response_formatstring"detailed" adds the structure (regions and their components), the component variants, the spacing and content rules, the code example and the cross-references

dsaireadable_get_dataviz_recommendation Chart recommendation

Returns the chart types recommended for an objective, each with its spec

ParameterTypeDescription
objective *string

dsaireadable_get_dataviz_specs Chart spec

Returns one chart type's spec: library, component, tokens, anatomy, do/don't, variants

ParameterTypeDescription
chart_type *stringe.g. bar, line, pie, data_card

dsaireadable_get_ux_writing_rules UX writing rules

Returns the rules for UI text: voice and tone (sentence case, verb-first buttons, errors that say what happened and how to fix it, word list) and content (UI_STRINGS defaults, one override prop per string, the defaults' language). Other rules: dsaireadable_get_design_rules

dsaireadable_get_glossary Glossary

Returns the glossary, or one term's definition

ParameterTypeDescription
termstring

dsaireadable_get_content_library Content library

Returns example UI strings: labels, placeholders and messages

ParameterTypeDescription
categorystring

dsaireadable_get_stats Design system stats

Returns component counts by status and category, token counts per tier, and spec coverage

dsaireadable_validate_screen Validate a screen

Checks TSX as text, even before it parses: raw values, inline styles, the default palette, primitive tokens, prefers-color-scheme, native elements, import origins, a Tooltip with no provider

ParameterTypeDescription
code *stringThe screen's TSX

dsaireadable_validate_code Validate code with the ESLint rules

Lints TSX with @dsaireadable/eslint-plugin, the rules a project runs (native elements, other UI or icon libraries, raw colors, default-palette and arbitrary Tailwind values, primitive tokens, deprecated imports), and type-checks it: syntax, undefined names. Run it on the final code. It does not check that a Tailwind class exists

ParameterTypeDescription
code *stringThe whole .tsx file, imports included