OpsTrailsDocs
Console

Copilot CLI

Connect OpsTrails to GitHub Copilot CLI for terminal-based AI querying.

Configuration

Add this to ~/.copilot/mcp-config.json:

json
{
  "mcpServers": {
    "opstrails": {
      "type": "http",
      "url": "https://api.opstrails.dev/api/mcp/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      },
      "tools": ["*"]
    }
  }
}

Replace YOUR_API_KEY with a READ_ONLY API key from the console.

Usage

bash
gh copilot ask "what deployments happened today?"