Skip to content

GitHub Copilot

Connect GitHub Copilot’s VS Code agent mode to Trurlic so code generation follows your architectural decisions.

  • Trurlic installed and .trurlic/ initialized in your project
  • GitHub Copilot with agent mode enabled in VS Code

The fastest way:

Terminal window
trurlic install --ide copilot

This writes to your VS Code mcp.json (platform-specific path under Code/User/).

Add to your VS Code MCP configuration (Code/User/mcp.json):

{
"servers": {
"trurlic": {
"command": "trurlic",
"args": ["serve"]
}
}
}

Note: Copilot uses a "servers" key rather than "mcpServers".

Restart VS Code to pick up the configuration.

Add Trurlic instructions to your project’s agent rules so Copilot queries the decision graph before generating code. See MCP Server for the recommended instruction block.

  1. Open the project in VS Code with Copilot agent mode and Trurlic configured.
  2. Ask Copilot to implement a feature — it should query get_context and follow your recorded decisions.
  3. Check trurlic status for consistency.