require-valid-agent-mcp-servers
Require Copilot custom-agent mcp-servers metadata to be a non-empty list when present.
Rule catalog ID: R023
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
- empty
mcp-serversvalues in custom-agent frontmatter - empty
mcp-serverslists such as[] - scalar
mcp-serversvalues instead of the documented list form
Why this rule existsâ
VS Code documents mcp-servers as an optional list of MCP server config JSON entries for GitHub Copilot-targeted custom agents. Keeping that metadata in the documented list form helps avoid ambiguous or no-op custom-agent configuration.
â Incorrectâ
---
description: Coordinate release automation
target: github-copilot
mcp-servers: release-coordinator.json
---
Coordinate release tasks through MCP servers.
â Correctâ
---
description: Coordinate release automation
target: github-copilot
mcp-servers: ['release-coordinator.json', 'observability.json']
---
Coordinate release tasks through MCP servers.