Your team wants Copilot cloud agent to use an internal documentation MCP server when working on the repository. Where do you add it?
- Exam domain
- Implement tool use and environment interaction20–25% of the exam
- Difficulty
- Medium
- In this mock
- 17 questions on this domainPractise this domain
Why the exam asks this
Implement tool use and environment interaction: Configure MCP servers.
Objective in the exam guide: Add an MCP server as a tool to an agent.
MCP is how agents get new tools. The exam checks where to configure it for the cloud agent.
Why B is the answer
In the repository's MCP configuration for Copilot cloud agent, with any required secrets set for the agent
GitHub.com supports MCP servers configured at the repository level for Copilot cloud agent; secrets the server needs are configured for the agent.
How it works
MCP servers provide tools to agents.
For Copilot cloud agent, MCP servers are configured in the repository's settings.
The configuration also applies to Copilot code review and automations.
Clues in the question
The words that point to the answer, and what each one tells you.
- Copilot cloud agent
- Repository-level configuration on GitHub.
In detail
- The GitHub and Playwright MCP servers are configured by default for the cloud agent.
- Repository MCP configuration also applies to Copilot code review and automations.
Side by side with look-alikes
| Location | Used by cloud agent? |
|---|---|
| Repository MCP configuration | Yes |
| Local editor settings | No |
| README link | No |
| PR template | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. In the pull request templateWrong
A PR template is text for humans.
B. In the repository's MCP configuration for Copilot cloud agent, with any required secrets set for the agentRight
GitHub.com supports MCP servers configured at the repository level for Copilot cloud agent; secrets the server needs are configured for the agent.
C. In each developer's local editor settings onlyWrongMost tempting
Local editor settings do not affect the cloud agent.
Why it tempts: That is how you add MCP servers in an IDE. But the cloud agent runs on GitHub and does not read local settings.
D. In the repository README as a linkWrong
A README link does not configure a tool.
In practice
- Keep the server's token in the agent's secrets, never in the configuration file.