Integration
Copilot suggests the code. Windcraft makes the suggestions on-brand.
Copilot completes and, in agent mode, builds whole changes — fast, but with no view of your design values. Windcraft hands its agent a local MCP server so the radius, the color, and the component shape are read, not invented.
Why Copilot suggestions drift
Copilot predicts from the code around the cursor and from broad training, not from your design system. So it reaches for the most statistically likely gray, the common rounded-md, the padding it has seen most — none of which is necessarily yours. Across a file it looks fine; across a project, every surface Copilot helped with disagrees slightly with the next, because nothing in the loop reads a shared source of values.
How Windcraft plugs into Copilot
Copilot’s agent mode in VS Code reads MCP servers declared in your workspace. Point it at Windcraft and the agent can fetch the exact tokens, contracts, and patterns as it works, instead of completing from priors.
- Run npx windcraft init in your repo to generate the config.
- Add the Windcraft server to .vscode/mcp.json so the workspace exposes it.
- Enable agent mode in Copilot Chat and let it call the Windcraft tools.
- Run npx windcraft check to flag any off-token output before you commit.
Copilot agent-mode MCP config (.vscode/mcp.json)
{
"servers": {
"windcraft": {
"command": "npx",
"args": ["windcraft", "mcp"]
}
}
}FAQ
- Does this work with plain Copilot completions?
- MCP is read by Copilot’s agent mode, not by inline ghost-text completions. Use agent mode for design-aware generation; for ordinary completions, the static analyzer (npx windcraft check) is your safety net, flagging off-token values Copilot suggested before they land.
- Do I need a specific Copilot plan?
- You need a Copilot version with agent mode and MCP support in VS Code. Windcraft does not change your Copilot subscription — it just adds a server the agent can call.
- Does my source code leave my machine?
- No. The Windcraft MCP server and analyzer run locally. Only metadata — tokens, contracts, rule violations — is synced to the cloud.