Windsurf
Windsurf は .windsurf/rules/ からワークスペースのデザインルールを読み込み、~/.codeium/windsurf/mcp_config.json 内の serverUrl フィールドを使用して HTTP MCP サーバーを登録します。
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 サーバーを接続する
Windsurf の MCP 設定ファイルは ~/.codeium/windsurf/mcp_config.json で、リモート HTTP サーバーには url ではなく serverUrl を使用します:
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp"
}
}
}Pro API キー(アカウント → API キー の dmdp_…)を使用する場合:
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer dmdp_your_api_key"
}
}
}
}mcp_config.json を保存したら、Windsurf の MCP パネルから MCP サーバーを再読み込みしてください。
プロンプトテンプレート
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 サーバーリファレンス — ツール一覧、パラメーター、匿名ティアと Pro ティアの比較
- OpenAI Codex 連携 —
AGENTS.md+ Codex MCP セットアップ
Last updated on