Search
Find a component, token or page
Base
Connect AI tools
Coming soonA Model Context Protocol (MCP) server lets coding assistants such as Claude Code, Cursor and Copilot read this design system directly, so the code they write uses the right components, props and tokens.
Included in this workspace’s plan
The server is designed but not built in this proof of concept. Access will be per client, with a key issued when their subscription is active. Change what this client’s plan includes in the Admin view.
What your tools will be able to ask
Four read-only tools. Nothing in the design system can be changed through the connection.
- list_components
- Every component in this design system, with its category, summary and per-language status.
- get_component
- One component’s full contract: props, states, accessibility, tokens, and the code for a chosen language.
- get_tokens
- The design tokens for a theme, mode and density, in CSS, React Native, Rust or Design Tokens JSON.
- search
- Find a component or token by name or by what it is for.
How it will be set up
One entry in the assistant’s MCP settings, using the key from PDC.
{
"mcpServers": {
"base-design-system": {
"type": "http",
"url": "https://design.pdc.example/mcp/base",
"headers": {
"Authorization": "Bearer <your access key>"
}
}
}
}The address is a placeholder until the server is live.
Example response
What get_component returns for Button, built from this workspace’s live data.
{
"id": "button",
"name": "Button",
"summary": "Triggers an action or event when pressed.",
"origin": "base",
"platforms": {
"react": {
"status": "stable"
},
"native": {
"status": "draft",
"notes": "Built on Pressable. Hover styles apply on web and pointer devices only."
},
"dioxus": {
"status": "draft",
"notes": "Renders a native <button>; styles come from the shared token stylesheet."
},
"swift": {
"status": "draft",
"notes": "A SwiftUI Button with PdcButtonStyle (also usable on its own). Heights follow the touch ladder: 44pt by default."
},
"godot": {
"status": "draft",
"notes": "Extends Godot's Button. Variants are theme type variations in pdc_theme_*.tres; `size` is `button_size` because Control already has `size`."
},
"html": {
"status": "draft",
"notes": "Renders a native <button>; `variant` and `size` are data attributes."
},
"vue": {
"status": "draft",
"notes": "Usage snippet only; same props and behavior as the React component."
},
"svelte": {
"status": "draft",
"notes": "Usage snippet only; same props and behavior as the React component."
},
"solid": {
"status": "draft",
"notes": "Usage snippet only; same props and behavior as the React component."
}
},
"props": [
{
"name": "variant",
"type": "enum",
"options": [
"default",
"outline",
"secondary",
"ghost",
"destructive",
"link"
],
"default": "default",
"description": "Visual emphasis."
},
{
"name": "size",
"type": "enum",
"options": [
"xs",
"sm",
"default",
"lg"
],
"default": "default",
"description": "Control height and padding.",
"names": {
"godot": "button_size"
}
},
{
"name": "disabled",
"type": "boolean",
"default": false,
"description": "Prevents interaction and dims the button."
}
],
"usage": {
"react": "import { Button } from \"@/components/ui/button\"\n\n<Button>Save changes</Button>"
}
}