Home / Servers / GitHub API / copilot_set_copilot_coding_agent_selected_repositories_for_o
Set selected repositories for Copilot cloud agent in an organization
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Set selected repositories for Copilot cloud agent in an organization > [!NOTE] > This endpoint is in public preview and is subject to change. Replaces the list of selected repositories that are enabled for Copilot cloud agent in an organization. This method can only… [PUT /orgs/{org}/copilot/coding-agent/permissions/repositories]
Name on the gateway: github_api__copilot_set_copilot_coding_agent_selected_repositories_for_o · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
selected_repository_ids required | array | List of repository IDs to enable for Copilot cloud agent. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__copilot_set_copilot_coding_agent_selected_repositories_for_o",
"arguments": {
"org": "…",
"selected_repository_ids": []
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the set selected repositories for copilot cloud agent in an organization tool with org set to ….