COP-028: Custom Agent MCP Secret Without COPILOT_MCP_ Prefix
Summary
- Rule ID:
COP-028 - Severity:
HIGH - Category:
GitHub Copilot - Normative Level:
MUST - Auto-Fix:
No - Verified On:
2026-10-17
Applicability
- Tool:
github-copilot - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers
- https://docs.github.com/en/copilot/reference/custom-agents-configuration
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
---
description: Uses the issue tracker
mcp-servers:
tracker:
type: local
command: tracker-mcp
tools: ["list_issues"]
env:
TOKEN: ${{ secrets.TRACKER_TOKEN }}
---
Triage issues.