The server offers 18 tools and one prompt. The descriptions below are the ones the agent reads. A read-only tool changes nothing; the two kinds that write say so, and a client asks the user before running them.
Reading the design system
get_project
The design system's name, token count, corner-radius strategy, font families and whether it has a mockup page. Call this first.
read-only.
No inputs.
get_tokens
Design tokens as {path, $type, $value: {light, dark}, ref}. Filter by tier (design | semantic | component), category and component; every filter is optional and they combine.
read-only.
| Input | Type | Required | Meaning |
|---|---|---|---|
tier |
string | no | One of design, semantic, component. |
category |
string | no | One of color, spacing, radius, typography, shadow, zIndex, border, gradient, blur. |
component |
string | no | A component name such as button or card (component tier only). |
get_css_variables
The whole design system as plain CSS custom properties: design tokens in :root, semantic and component tokens as var() aliases per theme, light and dark via [data-theme] and prefers-color-scheme.
read-only.
No inputs.
get_shadcn_theme
The design system as a shadcn/ui theme stylesheet for Tailwind v4: :root and .dark blocks plus @theme inline. Use on the React + Tailwind path.
read-only.
No inputs.
list_components
Every component in the kit with the CSS variables its source reads, plus the helper files. Follow with get_component_source.
read-only.
No inputs.
get_component_source
The React + Tailwind source of one component (see list_components), or a helper: "utils" for the cn helper, "preview-portal" for the portal context components import. React apps only for now: add_ui_kit writes it into the app, so do not copy it by hand.
read-only.
| Input | Type | Required | Meaning |
|---|---|---|---|
name |
string | yes | A name from list_components, or a helper (utils, preview-portal). |
get_mockup_page
The project's own mockup page as a layout spec, followed by the React renderer and schema that paint it. Render it as the first route.
read-only.
No inputs.
get_integration_guide
Step-by-step instructions for integrating this design system into the current repository: wire the tokens, bring in the components, migrate existing styles, document. Read this before changing anything.
read-only.
No inputs.
list_blocks
Ready-made page layouts built from the kit (login, signup, sidebars, a dashboard, chart sets): id, title, family, components used and files. Follow with get_block_source.
read-only.
No inputs.
get_block_source
Every file of one block (see list_blocks), each headed by the path it takes in the app: the block under components/blocks/, plus BlockStage (components/blocks/stage.tsx), which supplies the @container/stage its responsive classes query and the frame height, and the portal context it provides (components/ui/preview-portal.tsx). Render <BlockStage><Block /></BlockStage> as a full-viewport page. React apps only for now: use verbatim in React + Tailwind.
read-only.
| Input | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | A block id from list_blocks. |
list_screens
The app screens made for this design system in DS source (lists, details, settings, forms, dashboards built from the kit): one line each, name — title (kind). Marketing pages (home, features, pricing, about, contact, waitlist) are listed too; they mount on their own routes inside the site shell (add_ui_kit with screens including "site"). Follow with get_screen_source, or write them into the app with add_ui_kit and screens.
read-only.
No inputs.
get_screen_source
The React + Tailwind source of one screen (see list_screens): <name>.tsx and its sample data <name>.data.ts, then the screen parts and kit components it imports. To use it in a React app, call add_ui_kit with screens, which writes it with everything it imports; then mount it on a route.
read-only.
| Input | Type | Required | Meaning |
|---|---|---|---|
screen |
string | yes | A screen name from list_screens. |
check_design_system
Show what in the React app still bypasses the UI kit, read from disk: hardcoded colours, hand-built controls the kit has (<button>, <input>…), the app's own versions of kit components, and a second copy of the theme's variables, each as file:line and the matched text, plus the share of controls that use the kit. Read-only: writes nothing, needs no sign-in, makes no network call. Call it after add_ui_kit and after restyling, then fix what it lists with the kit's components and the theme's utilities. An estimate, not a parser.
read-only.
| Input | Type | Required | Meaning |
|---|---|---|---|
folder |
string | no | The app's folder when it is not the current one (a monorepo's apps/web). Omit for the current folder. |
Changing the app
add_ui_kit
Add this design system's UI kit to the React app in the current folder: the theme, the components and their libraries. Sets up Tailwind and shadcn when the app lacks them. A full run (no components and no screens named) also writes the /design-system section, every component, block and sample page in the project's theme, with its blocks unless no_blocks is true (blocks: true adds them to a section written without), and refreshes the screens an earlier run wrote. screens (names from list_screens, or ["all"]) writes those app screens and marketing pages with the parts and components they import; you mount each on a route. Add "site" to screens to write the site menu (header and footer) that pages mount inside, at least one page being pulled with it. When the app is not in the current folder (a monorepo, or a workspace holding the app as a repository of its own), pass folder; a repository of its own works once the user has run npx designsource login in it, and its linked design system is used. Changes files in the project, so your client will ask the user first. Never overwrites components or screens the user edited.
writes; may replace files; your client asks first.
| Input | Type | Required | Meaning |
|---|---|---|---|
components |
array | no | Component names such as button or dialog. Omit to add everything (or refresh what was added before). |
replace_existing |
boolean | no | Replace component files that exist but were not added by designsource. Ask the user first. |
no_blocks |
boolean | no | Add the /design-system section without its blocks and their libraries. Blocks an earlier run wrote are left in place. |
blocks |
boolean | no | Add the blocks and their libraries to a /design-system section that was written without them. Not with no_blocks. |
screens |
array | no | Screen names from list_screens, or ["all"] for every screen; "site" adds the site menu for marketing pages. Each is written under the components folder's screens/ with the parts and kit components it imports. |
folder |
string | no | The app's folder when it is not the current one: a path inside this project (a monorepo's apps/web), or a repository of its own the user ran npx designsource login in. Omit for the current folder. |
Acting on the account
The account tools work only after login, in a folder you signed in; on a session started with a project token they answer with the line that says how to turn the account on.
list_design_systems
The design systems in the signed-in designsource account: name and id of each, and which one this folder is linked to. Use before use_design_system, or to check what create_design_system would add to.
read-only; needs login.
No inputs.
create_design_system
Create a new design system in the signed-in designsource account from a recipe you write, and link this folder to it, so the other tools and add_ui_kit read it. Before writing the recipe, read this codebase: its existing colours (Tailwind config, CSS variables, the global stylesheet), its fonts and its logo, and match them. Pick one brand hue (the brand ramp, which primary points at), keep the neutral ramp near grey, keep destructive red, success green and warning amber, and use only Google Fonts family names or the catalog font keys. The recipe's shape is in the recipe property's description. The server repairs contrast without moving primary and reports what it changed and what still fails. Creates a project in the user's account, so your client will ask the user first. The answer names the account and a link where the user can tweak the result.
writes; needs login.
| Input | Type | Required | Meaning |
|---|---|---|---|
name |
string | yes | The design system's name, as the user will see it (up to 60 characters). Usually the app's name. |
recipe |
object | yes | A recipe (see the Recipe shape reference). |
mockup |
object | no | Optional: a page layout in the shape get_mockup_page returns for an existing design system. Leave it out when unsure. |
radius_strategy |
string | no | How corners nest: concentric (default, recommended), uniform or custom. One of concentric, uniform, custom. |
icons |
object | no | Optional: the icon set the design system draws with, {"set": "lucide" |
use_design_system
Link this folder to an existing design system in the signed-in account (an id from list_design_systems), so the other tools and add_ui_kit read it. Changes no design system.
writes; needs login.
| Input | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | A design system id from list_design_systems. |
generate_screen
Make a new app screen for the design system this folder is linked to, from a sentence (a list, a detail page, settings, a form or a dashboard built from its components), or a marketing page (home, features, pricing, about, contact or waitlist: one of each kind), or change an existing screen or page by passing its name in screen. Pass data_model to shape the screen's records after the app's own (read from its Prisma schema or types). Spends the signed-in account's credits or its own AI key, so your client will ask the user first, and takes up to a couple of minutes. Never writes files: the answer names the screen and a link to see it; then call add_ui_kit with screens to write it into the app.
writes; needs login.
| Input | Type | Required | Meaning |
|---|---|---|---|
prompt |
string | yes | What the screen should show, or what to change in it, in a sentence or two (up to 500 characters). |
screen |
string | no | A screen name from list_screens, to change that screen. Leave it out to make a new one. |
data_model |
object | no | Optional: the app's own records, so the screen's fields match them: {"records": [{"name": a PascalCase record name, "fields": [{"key": a camelCase field key, "label": the column heading (up to 32 characters), "type": "text" |
Prompts
| Prompt | Does |
|---|---|
integrate-design-system |
Integrate the design system into the current repository, following the guide the server provides. |
In Claude Code the prompt is the slash command /mcp__designsource__integrate-design-system. A client without MCP prompts gets the same steps from get_integration_guide.