Windsurf
Windsurf liest Workspace-Designregeln aus .windsurf/rules/ und registriert HTTP-MCP-Server in ~/.codeium/windsurf/mcp_config.json über das Feld serverUrl.
Ablageort für DESIGN.md
my-app/
├── DESIGN.md
└── .windsurf/
└── rules/
└── design-system.md.windsurf/rules/design-system.md konfigurieren
Lege eine prägnante Regel an, die Cascade bei der Arbeit am Frontend-Code auf deine Root-DESIGN.md verweist:
---
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.Den DesignMD Pro MCP-Server verbinden
Windsurfs MCP-Konfigurationsdatei liegt unter ~/.codeium/windsurf/mcp_config.json, und Remote-HTTP-Server verwenden serverUrl statt url:
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp"
}
}
}Mit einem Pro-API-Key (dmdp_… aus Konto → API-Schlüssel):
{
"mcpServers": {
"designmdpro": {
"serverUrl": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer dmdp_your_api_key"
}
}
}
}Lade die MCP-Server im MCP-Panel von Windsurf neu, nachdem du mcp_config.json gespeichert hast.
Prompt-Vorlagen
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.Häufige Fallstricke
"url"statt"serverUrl"inmcp_config.jsonverwenden: Windsurf erwartet"serverUrl"für Streamable-HTTP-MCP-Endpunkte.- Uneingeschränkte Regeln bei Nicht-UI-Änderungen: Nutze
trigger: glob(oder manuelle@-Erwähnungen), damit Design-Vorgaben nur beim Bearbeiten von UI-Code geladen werden.
Nächste Schritte
- MCP-Server-Referenz — Tool-Liste, Parameter und anonyme vs. Pro-Tiers
- OpenAI Codex-Integration —
AGENTS.md+ Codex-MCP-Setup
Last updated on