Connect OpsTrails to GitHub Copilot CLI for terminal-based AI querying.
Add this to ~/.copilot/mcp-config.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.
gh copilot ask "what deployments happened today?"