A repository administrator adds this MCP configuration in the repository settings for Copilot cloud agent. The goal is to let Copilot use two read-only Notion tools during assigned issue work. Evaluate the following statements. 1. The configuration uses the correct top-level object for repository MCP configuration. 2. The token will be available if it is saved only as an Agents secret named NOTION_TOKEN. 3. After the configuration is saved, Copilot can use the enabled MCP tools without asking for approval each time.
{
"mcpServers": {
"notionApi": {
"type": "local",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"OPENAPI_MCP_HEADERS={\"Authorization\":\"Bearer $NOTION_API_KEY\"}",
"mcp/notion"
],
"env": {
"NOTION_API_KEY": "$COPILOT_MCP_NOTION_TOKEN"
},
"tools": ["search", "readPage"]
}
}
}Choose an answer
Tap an option to check your answer.
Correct answer: 1=Yes 2=No 3=Yes.
Why this is the answer
1. The configuration uses mcpServers as the top-level object, which is the correct key for defining MCP server configurations in repository settings. 2. The configuration references $COPILOTMCPNOTIONTOKEN in the env block. For this to be available, the secret must be saved as a repository secret named COPILOTMCPNOTIONTOKEN, not just NOTIONTOKEN and not only as an Agents secret. Repository secrets are accessible to MCP configurations. 3. Once MCP tools are enabled and configured in the repository settings, Copilot can use them without requiring explicit approval for each use, assuming the agent is configured to use MCP tools. This streamlines the agent's workflow.
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