Skip to main content
Copy the URL from the MCP consumer Connect tab:
Use OAuth2 when Copilot can complete the browser login. API-key consumers send X-AG-API-Key (ag_…, not TrustGuard tgk_…).

Workspace mcp.json

Create .vscode/mcp.json (or the user MCP config your VS Code version uses):
API key:
Private (Hybrid): add "X-AG-Gateway-Slug": "<gateway-slug>" in headers. Reload the window. In Copilot Chat, enable the TrustGate MCP server if it is listed but disabled. First OAuth connect may open a browser. Exact keys (servers vs mcpServers) depend on VS Code / Copilot version; if the file is ignored, paste the JSON tab from consumer Connect into the MCP config UI.

Verify

In Copilot Chat, list tools or invoke one bound on the consumer.