require-existing-agent-mcp-servers
Require Copilot custom-agent mcp-servers entries to resolve to existing repository files.
Rule catalog ID: R033
Targeted pattern scopeâ
.github/agents/**/*.agent.md
What this rule reportsâ
mcp-serversentries that point to missing repository files
Why this rule existsâ
Declaring an MCP server file is only useful when the referenced configuration actually exists. Broken mcp-servers entries make an agent's declared tool integrations misleading and fragile.
â Incorrectâ
---
description: Release coordinator
mcp-servers: ['mcp/release.json']
---
Coordinate the release.
when mcp/release.json does not exist in the repository.
â Correctâ
---
description: Release coordinator
mcp-servers: ['.vscode/mcp/release.json']
---
Coordinate the release.