Windsurf
Windsurf는 .windsurf/rules/에서 워크스페이스 디자인 규칙을 읽고, ~/.codeium/windsurf/mcp_config.json의 serverUrl 필드로 HTTP MCP server를 등록합니다.
DESIGN.md 배치 위치
my-app/
├── DESIGN.md
└── .windsurf/
└── rules/
└── design-system.md.windsurf/rules/design-system.md 설정하기
프론트엔드 코드를 작업할 때 Cascade가 루트 DESIGN.md를 참조하도록 간결한 규칙을 추가합니다.
---
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.DesignMD Pro MCP server 연결하기
Windsurf의 MCP 설정 파일은 ~/.codeium/windsurf/mcp_config.json이며, 원격 HTTP 서버는 url 대신 **serverUrl**을 사용합니다.
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp"
}
}
}Pro API 키(계정 → API Keys의 dmdp_…)와 함께 설정하는 경우:
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer dmdp_your_api_key"
}
}
}
}mcp_config.json을 저장한 뒤 Windsurf의 MCP 패널에서 MCP server를 다시 불러오세요.
프롬프트 템플릿
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.자주 하는 실수
mcp_config.json에서"serverUrl"대신"url"사용: Windsurf는 Streamable HTTP MCP 엔드포인트에"serverUrl"을 요구합니다.- 비 UI 편집에도 실행되는 무제한 규칙:
trigger: glob(또는 수동@멘션)을 사용해 UI 코드를 수정할 때만 디자인 가이드가 로드되도록 하세요.
다음 단계
- MCP Server 레퍼런스 — 도구 목록, 매개변수, 익명 vs Pro 등급
- OpenAI Codex 연동 —
AGENTS.md+ Codex MCP 설정
Last updated on