GitHub Copilot

Route GitHub Copilot through Stockyard via a custom API endpoint.

VS Code Configuration

In VS Code, open Settings (JSON) and add:

{
  "github.copilot.advanced": {
    "debug.overrideEngine": "gpt-4o",
    "debug.overrideProxyUrl": "https://your-stockyard-instance.com/v1/chat/completions",
    "authProvider": "none"
  }
}

Environment Variables

Alternatively, set these environment variables before launching your editor:

export OPENAI_API_BASE=https://your-stockyard-instance.com/v1
export OPENAI_API_KEY=your-stockyard-api-key

Verify

Open a file and start typing to trigger Copilot suggestions. Check Stockyard’s Observe dashboard for incoming traces.

Note: GitHub Copilot uses the OpenAI-compatible API, not MCP. Requests go through /v1/chat/completions and pass through the full Stockyard middleware chain.