Windsurf
Windsurf читает правила рабочего пространства из .windsurf/rules/ и регистрирует HTTP MCP-серверы в ~/.codeium/windsurf/mcp_config.json через поле serverUrl.
Где разместить 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.Подключение MCP-сервера DesignMD Pro
Файл конфигурации MCP в Windsurf — ~/.codeium/windsurf/mcp_config.json, и для удалённых HTTP-серверов используется ключ serverUrl, а не url:
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp"
}
}
}С ключом Pro API (dmdp_… из раздела Аккаунт → API-ключи):
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer dmdp_your_api_key"
}
}
}
}После сохранения mcp_config.json перезагрузите MCP-серверы в панели MCP в Windsurf.
Шаблоны промптов
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.Частые ошибки
- Использование
"url"вместо"serverUrl"вmcp_config.json: Windsurf ожидает именно"serverUrl"для Streamable HTTP MCP-эндпоинтов. - Неограниченные правила, срабатывающие на не-UI правках: используйте
trigger: glob(или ручные упоминания@), чтобы дизайн-рекомендации загружались только при редактировании UI-кода.
Следующие шаги
- Справочник MCP-сервера — список инструментов, параметры и сравнение анонимного и Pro-доступа
- Интеграция с OpenAI Codex — настройка
AGENTS.mdи MCP для Codex
Last updated on