Home / Servers / GitHub API / copilot_set_enterprise_coding_agent_policy

Set the coding agent policy for an enterprise

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Set the coding agent policy for an enterprise Sets the policy for Copilot cloud agent usage across an enterprise. Enterprise owners can configure whether Copilot cloud agent is enabled for all organizations, disabled for all organizations… [PUT /enterprises/{enterprise}/copilot/policies/coding_agent]

Name on the gateway: github_api__copilot_set_enterprise_coding_agent_policy · may change things.

Parameters

NameTypeDescription
enterprise requiredstringThe slug version of the enterprise name.
policy_state requiredenabled_for_all_orgs | disabled_for_all_orgs | enabled_for_selected_orgs | configured_by_org_adminsThe policy state for Copilot cloud agent in the enterprise. Can be one of…

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:

call_tool arguments
{
  "name": "github_api__copilot_set_enterprise_coding_agent_policy",
  "arguments": {
    "enterprise": "…",
    "policy_state": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
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 the coding agent policy for an enterprise tool with enterprise set to ….

More from GitHub API