Home / Servers / GitHub API / code_security_create_configuration_for_enterprise

Create a code security configuration for an enterprise

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

Create a code security configuration for an enterprise Creates a code security configuration in an enterprise. The authenticated user must be an administrator of the enterprise in order to use this endpoint. OAuth app tokens and personal access tokens… [POST /enterprises/{enterprise}/code-security/configurations]

Name on the gateway: github_api__code_security_create_configuration_for_enterprise · may change things.

Parameters

NameTypeDescription
enterprise requiredstringThe slug version of the enterprise name.
name requiredstringThe name of the code security configuration. Must be unique within the…
descriptionstringA description of the code security configuration
advanced_securityenabled | disabled | code_security | secret_protectionThe enablement status of GitHub Advanced Security features. enabled will…
code_securityenabled | disabled | not_setThe enablement status of GitHub Code Security features.
dependency_graphenabled | disabled | not_setThe enablement status of Dependency Graph
dependency_graph_autosubmit_actionenabled | disabled | not_setThe enablement status of Automatic dependency submission
dependency_graph_autosubmit_action_optionsobjectFeature options for Automatic dependency submission
dependabot_alertsenabled | disabled | not_setThe enablement status of Dependabot alerts
dependabot_reachabilityenabled | disabled | not_setThe enablement status of reachability analysis for Dependabot. Only available…
dependabot_security_updatesenabled | disabled | not_setThe enablement status of Dependabot security updates
code_scanning_optionsobjectSecurity Configuration feature options for code scanning
code_scanning_default_setupenabled | disabled | not_setThe enablement status of code scanning default setup
code_scanning_default_setup_optionsobjectFeature options for code scanning default setup
code_scanning_delegated_alert_dismissalenabled | disabled | not_setThe enablement status of code scanning delegated alert dismissal
secret_protectionenabled | disabled | not_setThe enablement status of GitHub Secret Protection features.
secret_scanningenabled | disabled | not_setThe enablement status of secret scanning
secret_scanning_push_protectionenabled | disabled | not_setThe enablement status of secret scanning push protection
secret_scanning_validity_checksenabled | disabled | not_setThe enablement status of secret scanning validity checks
secret_scanning_non_provider_patternsenabled | disabled | not_setThe enablement status of secret scanning non provider patterns
secret_scanning_generic_secretsenabled | disabled | not_setThe enablement status of Copilot secret scanning
secret_scanning_generic_secrets_push_protectionenabled | disabled | not_setThe enablement status of generic secrets push protection
secret_scanning_delegated_alert_dismissalenabled | disabled | not_setThe enablement status of secret scanning delegated alert dismissal
secret_scanning_extended_metadataenabled | disabled | not_setThe enablement status of secret scanning extended metadata
private_vulnerability_reportingenabled | disabled | not_setThe enablement status of private vulnerability reporting
enforcementenforced | unenforced | enterprise_enforcedThe enforcement status for a security configuration

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__code_security_create_configuration_for_enterprise",
  "arguments": {
    "enterprise": "…",
    "name": "…"
  }
}

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 create a code security configuration for an enterprise tool with enterprise set to ….

More from GitHub API