Use the REST API to manage repository-level settings for Copilot cloud agent.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /repos/{owner}/{repo}/copilot/cloud-agent/configuration
Note
This endpoint is in public preview and is subject to change.
Gets the Copilot cloud agent configuration for a repository, including MCP server
configuration, enabled review tools, Actions workflow approval settings, and firewall
configuration.
OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.owner (string) (required)
The account owner of the repository. The name is not case sensitive.
repo (string) (required)
The name of the repository without the .git extension. The name is not case sensitive.
200 - OK
401 - Requires authentication
403 - Forbidden
404 - Resource not found
500 - Internal Error
Request:
curl -L \
-X GET \
https://api.github.com/repos/OWNER/REPO/copilot/cloud-agent/configuration
Response schema (Status: 200):
mcp_configuration: required, object or null, additional properties allowedenabled_tools: required, object:
codeql: required, booleancopilot_code_review: required, booleansecret_scanning: required, booleandependency_vulnerability_checks: required, booleanrequire_actions_workflow_approval: required, booleanis_firewall_enabled: required, booleanis_firewall_recommended_allowlist_enabled: required, booleancustom_allowlist: required, array of stringis_automations_enabled: required, booleanrequire_write_access_for_automation_triggers: required, booleanRequest:
curl -L \
-X GET \
https://api.github.com/repos/OWNER/REPO/copilot/cloud-agent/configuration
Response schema (Status: 200):
mcp_configuration: required, object or null, additional properties allowedenabled_tools: required, object:
codeql: required, booleancopilot_code_review: required, booleansecret_scanning: required, booleandependency_vulnerability_checks: required, booleanrequire_actions_workflow_approval: required, booleanis_firewall_enabled: required, booleanis_firewall_recommended_allowlist_enabled: required, booleancustom_allowlist: required, array of stringis_automations_enabled: required, booleanrequire_write_access_for_automation_triggers: required, boolean