Home / Servers / GitHub API / private_registries_update_org_private_registry

Update a private registry for an organization

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

Update a private registry for an organization Updates a private registry configuration with an encrypted value for an organization. Encrypt your secret using LibSodium. For more information, see "Encrypting secrets for the REST API." For… [PATCH /orgs/{org}/private-registries/{secret_name}]

Name on the gateway: github_api__private_registries_update_org_private_registry · may change things.

Parameters

NameTypeDescription
org requiredstringThe organization name. The name is not case sensitive.
secret_name requiredstringThe name of the secret.
registry_typemaven_repository | nuget_feed | goproxy_server | npm_registry | rubygems_server | cargo_registry | composer_repository | docker_registry | git_source | helm_registry | hex_organization | hex_repository | pub_repository | python_index | terraform_registryThe registry type.
urlstringThe URL of the private registry.
usernamestringThe username to use when authenticating with the private registry. This field…
replaces_basebooleanWhether this private registry should replace the base registry (e.g.…
encrypted_valuestringThe value for your secret, encrypted with LibSodium using the public key…
key_idstringThe ID of the key you used to encrypt the secret.
visibilityall | private | selectedWhich type of organization repositories have access to the private registry.…
selected_repository_idsarrayAn array of repository IDs that can access the organization private registry.…
auth_typetoken | username_password | oidc_azure | oidc_aws | oidc_jfrog | oidc_cloudsmith | oidc_gcp | anonymousThe authentication type for the private registry. This field cannot be changed…
tenant_idstringThe tenant ID of the Azure AD application. Required when auth_type is…
client_idstringThe client ID of the Azure AD application. Required when auth_type is…
aws_regionstringThe AWS region. Required when auth_type is oidc_aws.
account_idstringThe AWS account ID. Required when auth_type is oidc_aws.
role_namestringThe AWS IAM role name. Required when auth_type is oidc_aws.
domainstringThe CodeArtifact domain. Required when auth_type is oidc_aws.
domain_ownerstringThe CodeArtifact domain owner (AWS account ID). Required when auth_type is…
jfrog_oidc_provider_namestringThe JFrog OIDC provider name. Required when auth_type is oidc_jfrog.
audiencestringThe OIDC audience. Optional for oidc_aws, oidc_jfrog, and oidc_gcp, and…
identity_mapping_namestringThe JFrog identity mapping name. Optional for oidc_jfrog auth type.
namespacestringThe Cloudsmith organization namespace. Required when auth_type is…
service_slugstringThe Cloudsmith service account slug. Required when auth_type is oidc_cloudsmith.
api_hoststringThe Cloudsmith API host. Optional for oidc_cloudsmith auth type. If omitted…
workload_identity_providerstringThe full resource name of the GCP Workload Identity Provider (e.g. projects/…
service_accountstringThe GCP service account email to impersonate. Optional for oidc_gcp auth type.…

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__private_registries_update_org_private_registry",
  "arguments": {
    "org": "…",
    "secret_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 update a private registry for an organization tool with org set to ….

More from GitHub API