GitHub Copilot & VS Code
VS Code의 GitHub Copilot은 저장소 전역 지침, 경로 스코프 .instructions.md 파일, 그리고 .vscode/mcp.json에 선언하는 Streamable HTTP MCP server를 지원합니다.
DESIGN.md 및 지침 파일 배치 위치
my-app/
├── DESIGN.md
├── .github/
│ ├── copilot-instructions.md
│ └── instructions/
│ └── design.instructions.md
└── .vscode/
└── mcp.jsonCopilot 지침에 DESIGN.md 연결하기
경로 스코프 지침 파일 (.github/instructions/design.instructions.md)
applyTo glob을 사용해 UI 코드를 편집할 때만 Copilot이 디자인 시스템 규칙을 첨부하도록 설정합니다.
---
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.저장소 전역 폴백 (.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.VS Code에서 DesignMD Pro MCP server 연결하기
VS Code는 .vscode/mcp.json(또는 사용자 수준 설정) 내부에 "type": "http"와 함께 "servers" 루트 키를 사용합니다.
{
"servers": {
"designmdpro": {
"type": "http",
"url": "https://designmdpro.app/mcp"
}
}
}Pro API 키(계정 → API Keys의 dmdp_…)를 사용할 때는 시크릿이 git에 들어가지 않도록 VS Code 입력 변수를 사용하세요.
{
"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}"
}
}
}
}inputs 없이 빠르게 로컬 테스트할 때는 사용자 설정에 "Authorization": "Bearer dmdp_your_api_key"를 직접 둘 수도 있습니다.
프롬프트 템플릿
#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.자주 하는 실수
.vscode/mcp.json에서"servers"대신"mcpServers"사용: Cursor나 Windsurf와 달리 VS Code는"type": "http"와 함께"servers"키가 필요합니다..vscode/mcp.json에 평문 API 키 커밋:.vscode/mcp.json은 보통 git으로 추적됩니다.dmdp_…키는 항상${input:...}이나 사용자 수준 설정을 사용하세요.
다음 단계
- MCP Server 설정 페이지 — 4개 클라이언트용 스니펫 복사하기
- 검증기 및 린트 규칙 — 생성된 변경 사항을 대비 규칙으로 검증하기
Last updated on