GitHub Copilot & VS Code
GitHub Copilot in VS Code supports repository-wide instructions, path-scoped .instructions.md files, and Streamable HTTP MCP servers declared in .vscode/mcp.json.
Where to place DESIGN.md and instructions
my-app/
├── DESIGN.md
├── .github/
│ ├── copilot-instructions.md
│ └── instructions/
│ └── design.instructions.md
└── .vscode/
└── mcp.jsonWire DESIGN.md into Copilot instructions
Scoped instruction file (.github/instructions/design.instructions.md)
Use applyTo globs so Copilot attaches design system rules only when editing UI code:
---
applyTo: "src/components/**/*.{tsx,jsx,css},src/app/**/*.{tsx,jsx,css}"
---
Read `DESIGN.md` at the repository root before creating or editing UI components.
Use only the colors, typography, spacing, corner radii, and component states specified there, and follow its Do's and Don'ts.Repository-wide fallback (.github/copilot-instructions.md)
## Design System
Visual tokens and UI layout constraints live in `DESIGN.md`. Apply them on every frontend component, page, and CSS update.Connect the DesignMD Pro MCP server in VS Code
VS Code uses a "servers" root key with "type": "http" inside .vscode/mcp.json (or user-level settings):
{
"servers": {
"designmdpro": {
"type": "http",
"url": "https://designmdpro.app/mcp"
}
}
}With a Pro API key (dmdp_… from Account → API Keys), prefer a VS Code input variable so secrets stay out of git:
{
"inputs": [
{
"type": "promptString",
"id": "designmdpro-api-key",
"description": "DesignMD Pro API Key (dmdp_...)",
"password": true
}
],
"servers": {
"designmdpro": {
"type": "http",
"url": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer ${input:designmdpro-api-key}"
}
}
}
}For quick local testing without inputs, you can also place "Authorization": "Bearer dmdp_your_api_key" directly in user settings.
Prompt templates
#file:DESIGN.md Build a billing status banner component in src/components/.
Match the exact colors, spacing, and Shapes rules in DESIGN.md.Use #designmdpro to search for fintech design systems, pull the Colors and
Typography sections, and propose an accessible dark-mode token block for our DESIGN.md.Common pitfalls
- Using
"mcpServers"instead of"servers"in.vscode/mcp.json: VS Code requires"servers"with"type": "http", unlike Cursor or Windsurf. - Committing plaintext API keys into
.vscode/mcp.json:.vscode/mcp.jsonis usually tracked by git; always use${input:...}or user-level config fordmdp_…keys.
Next steps
- MCP Server Setup Page — copy snippets for all four clients
- Validator & Lint Rules — verify generated changes against contrast rules
Last updated on