GitHub Copilot with preset AI
Keep Copilot outputs aligned with preset AI tokens, presets, and patterns while maintaining development speed.
Setup
GitHub Copilot Agent Mode (VS Code) supports remote MCP servers. In VS Code, open Settings → Copilot → Agent mode → MCP servers and add:
{
"preset": {
"url": "https://mcp.presetai.dev/mcp"
}
}
OAuth runs on first request. See Connect an AI coding tool for the full install matrix.
Standard Copilot inline completions don't consume MCP. Use Agent Mode for governed generation against your design system.
Operating model
Use Copilot as a coding accelerator, with preset AI as the policy and system-intelligence layer.
Recommended flow:
- Gather preset AI context first (presets, tokens, pattern guidance)
- Generate with intent-based constraints
- Validate generated output with drift and compliance checks
- Route system-level changes through the proposal lifecycle
Prompting guidance
When requesting code, include:
- intended component behavior
- required preset names
- token usage requirements
- validation expectation before final merge
Example:
Generate a settings card using approved presets and semantic tokens only. Include accessible interaction states and avoid hardcoded styles.
Governance
- enable PR checks for drift and policy validation
- require explicit approval for canonical model writes
- track recurring violation patterns to refine rules
Common pitfalls
- accepting quick suggestions that bypass semantic presets
- copying generated code without a validation pass
- mixing local style overrides that create drift
Last reviewed by @jschuyler