Connect OpsTrails to VS Code with GitHub Copilot, or Cursor, using workspace MCP configuration.
Add this to .vscode/mcp.json in your workspace root (or Cursor MCP settings):
{
"servers": {
"opstrails": {
"type": "http",
"url": "https://api.opstrails.dev/api/mcp/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}MCP: List Servers to verify the server is connected.vscode/mcp.json is in the workspace root folder you opened in VS CodeCtrl+,), search for mcp, and ensure GitHub > Copilot > Chat > MCP: Enabled is checked✅ Tip
.vscode/mcp.json.