GitHub conceptsGH-600: Developing in Agentic AI Systems (GitHub Certified: Agentic AI Developer)Agent tools
GH-600 tool use and environment interaction: exam focus
What GH-600 asks about agent tools: allow and deny rules in Copilot CLI, how MCP servers plug in, and how the place an agent runs changes its limits.
3 min read
You add an MCP server for the cloud agent, and a mock question asks when Copilot will ask first. Once a server is configured, Copilot uses its tools autonomously, without asking. In Copilot CLI, deny rules always take precedence over allow rules, even with --allow-all.
01 What does GH-600 test about tool use and environment interaction?
That surprise sets the tone. An agent's execution context covers its repository, the branch it targets, the workflow running it and that workflow's permissions.
The domain's three objectives at a glance
- Objective 2.1: agent toolsAllow and deny rules, allowlists and the approvals that gate each tool.
- Objective 2.2: MCP serversDefault servers, tool allowlists, secrets and what cloud agent supports.
- Objective 2.3: environmentsExecution context, and sandbox or Actions sessions.
Under the cards: Copilot CLI lets you allow or deny each tool. Two MCP servers are on by default. Sessions run in a cloud sandbox or on GitHub Actions.
When a workflow runs the agent, that workflow is its execution boundary.
02 How do you control which tools an agent can use?
In Copilot CLI, --available-tools disables every tool except those listed. Used with --excluded-tools, the allowlist applies and the denylist is ignored.
So --allow-tool='shell(git:*)' with --deny-tool='shell(git push)' allows every git command except push.
Deny rules always beat allow rules in Copilot CLI.
03 How do MCP servers plug into Copilot?
The GitHub and Playwright MCP servers are enabled by default for a repository. Cloud agent and code review support only MCP tools, not resources or prompts.
Because configured tools run without approval, GitHub strongly recommends allowlisting specific read-only tools. Only Agents secrets and variables prefixed COPILOT_MCP_ reach the MCP configuration.
Allowlist read-only MCP tools, because Copilot will not ask before using them.
04 Where does the agent run, and what does that change?
Where the agent runs is not always your choice. Assigning an issue to Copilot currently runs only on GitHub Actions. Copilot connectors do not yet work on Actions.
Cloud sandbox or GitHub Actions
Cloud sandbox
- Default where users can choose
- Copilot connectors work without MCP setup
GitHub Actions
- Secrets, variables and setup steps
- Self-hosted runners or private networking
- Runs sessions from issue assignment
MockCert is independent of the exam's provider. Its free quizzes explain each answer as soon as you give it.
Assigning an issue to Copilot runs the session on GitHub Actions.
Summary
--available-toolsis an allowlist and wins over--excluded-tools.- Configured MCP tools run without asking, so allowlist read-only ones.
- Only
COPILOT_MCP_secrets and variables reach MCP configuration.
Sources
- Execution context and boundaries - Training | Microsoft Learn (opens in a new tab)
- Configure MCP servers for your repository - GitHub Docs (opens in a new tab)
- Allowing and denying tool use - GitHub Docs (opens in a new tab)
- Managing GitHub Copilot in the cloud for your enterprise or organization - GitHub Docs (opens in a new tab)
- MockCert: free study guides, quizzes and mock exams