Home / Servers / GitHub API / code_security_set_configuration_as_default
Set a code security configuration as a default for an organization
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Set a code security configuration as a default for an organization Sets a code security configuration as a default to be applied to new repositories in your organization. This configuration will be applied to the matching repository type (all, none, public, private… [PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults]
Name on the gateway: github_api__code_security_set_configuration_as_default · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
configuration_id required | integer | The unique identifier of the code security configuration. |
default_for_new_repos | all | none | private_and_internal | public | Specify which types of repository this security configuration should be… |
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__code_security_set_configuration_as_default",
"arguments": {
"org": "…",
"configuration_id": 0
}
}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 a code security configuration as a default for an organization tool with org set to ….