Windsurf
Windsurf reads workspace design rules from .windsurf/rules/ and registers HTTP MCP servers in ~/.codeium/windsurf/mcp_config.json using the serverUrl field.
Where to place DESIGN.md
my-app/
├── DESIGN.md
└── .windsurf/
└── rules/
└── design-system.mdConfigure .windsurf/rules/design-system.md
Add a concise rule pointing Cascade at your root DESIGN.md when working on frontend code:
---
trigger: glob
globs: src/components/**, src/app/**
---
Before building or editing UI components, read `DESIGN.md` at the repository root.
Apply its YAML tokens (`colors`, `typography`, `rounded`, `spacing`, `components`) and follow the `Do's and Don'ts` section. Do not introduce unapproved hex colors or arbitrary shadows.Connect the DesignMD Pro MCP server
Windsurf’s MCP config file is ~/.codeium/windsurf/mcp_config.json, and remote HTTP servers use serverUrl rather than url:
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp"
}
}
}With a Pro API key (dmdp_… from Account → API Keys):
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer dmdp_your_api_key"
}
}
}
}Reload MCP servers from Windsurf’s MCP panel after saving mcp_config.json.
Prompt templates
Read DESIGN.md and build the account API keys settings table using the
defined border hairlines, typography scale, and button-primary component tokens.Use the designmdpro MCP server to look up Linear's DESIGN.md (only Colors and
Elevation & Depth sections) and summarize how it handles surface hierarchy.Common pitfalls
- Using
"url"instead of"serverUrl"inmcp_config.json: Windsurf expects"serverUrl"for Streamable HTTP MCP endpoints. - Unconstrained rules running on non-UI edits: use
trigger: glob(or manual@mentions) so design guidance loads only when editing UI code.
Next steps
- MCP Server Reference — tool list, parameters, and anonymous vs Pro tiers
- OpenAI Codex Integration —
AGENTS.md+ Codex MCP setup
Last updated on