A developer is using Copilot CLI from a repository directory and selects a custom triage agent. They want the agent session to read GitHub issues and pull requests through MCP. Which review comment is most accurate? Select one answer.
cd ~/src/payments-api
copilot --agent=triage-agent
# Prompt:
# Add GitHub MCP tools so you can read issues and pull requests.
# Proposed interactive input:
# /mcp add
# Server Name: github
# Server Type: HTTP
# URL: https://api.github.com
# Tools: *Choose an answer
Tap an option to check your answer.
Correct answer: Do not re-add built-in GitHub MCP.
Why this is the answer
The correct answer is "Do not re-add built-in GitHub MCP" because Copilot CLI, when run from a Git repository, automatically detects the GitHub remote and configures the necessary GitHub MCP tools. There is no need to manually add them. The interactive input shown attempts to re-add tools that are already present by default, which is redundant and unnecessary. "Add workflowdispatch before launching Copilot CLI" is incorrect because workflowdispatch is a GitHub Actions event trigger, unrelated to configuring MCP tools for Copilot CLI. "Configure repository MCP JSON instead of CLI" is incorrect because while MCP can be configured via JSON, the CLI automatically handles the default GitHub setup when run within a repository, making manual JSON configuration for basic GitHub access unnecessary in this context. "Use pullrequesttarget for GitHub MCP access" is incorrect because pullrequesttarget is a GitHub Actions trigger that runs in the context of the base repository, primarily for security when dealing with forks. It's not a method for configuring Copilot CLI's MCP tools.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed