OpsTrailsDocs
Console

VS Code / Cursor / Copilot

Connect OpsTrails to VS Code with GitHub Copilot, or Cursor, using workspace MCP configuration.

1. Add the MCP Server

Add this to .vscode/mcp.json in your workspace root (or Cursor MCP settings):

json
{
  "servers": {
    "opstrails": {
      "type": "http",
      "url": "https://api.opstrails.dev/api/mcp/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

2. Enable MCP Tools in Copilot

3. Troubleshooting

Tip

For Cursor, add the same configuration to your Cursor MCP settings instead of .vscode/mcp.json.