Home / Servers / GitHub API / repos_update

Update a repository

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

Update a repository **Note**: To edit a repository's topics, use the Replace all repository topics endpoint. [PATCH /repos/{owner}/{repo}]

Name on the gateway: github_api__repos_update · may change things.

Parameters

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…
namestringThe name of the repository.
descriptionstringA short description of the repository.
homepagestringA URL with more information about the repository.
privatebooleanEither true to make the repository private or false to make it public.…
visibilitypublic | privateThe visibility of the repository.
security_and_analysisobjectSpecify which security and analysis features to enable or disable for the…
has_issuesbooleanEither true to enable issues for this repository or false to disable them.
has_projectsbooleanEither true to enable projects for this repository or false to disable them.…
has_wikibooleanEither true to enable the wiki for this repository or false to disable it.
has_pull_requestsbooleanEither true to allow pull requests for this repository or false to prevent…
pull_request_creation_policyall | collaborators_onlyThe policy that controls who can create pull requests for this repository: all…
is_templatebooleanEither true to make this repo available as a template repository or false to…
default_branchstringUpdates the default branch for this repository.
allow_squash_mergebooleanEither true to allow squash-merging pull requests, or false to prevent…
allow_merge_commitbooleanEither true to allow merging pull requests with a merge commit, or false to…
allow_rebase_mergebooleanEither true to allow rebase-merging pull requests, or false to prevent…
allow_auto_mergebooleanEither true to allow auto-merge on pull requests, or false to disallow…
delete_branch_on_mergebooleanEither true to allow automatically deleting head branches when pull requests…
allow_update_branchbooleanEither true to always allow a pull request head branch that is behind its base…
use_squash_pr_title_as_defaultbooleanEither true to allow squash-merge commits to use pull request title, or false…
squash_merge_commit_titlePR_TITLE | COMMIT_OR_PR_TITLERequired when using squash_merge_commit_message. The default value for a…
squash_merge_commit_messagePR_BODY | COMMIT_MESSAGES | BLANKThe default value for a squash merge commit message: - PR_BODY - default to…
merge_commit_titlePR_TITLE | MERGE_MESSAGERequired when using merge_commit_message. The default value for a merge commit…
merge_commit_messagePR_BODY | PR_TITLE | BLANKThe default value for a merge commit message. - PR_TITLE - default to the pull…
archivedbooleanWhether to archive this repository. false will unarchive a previously archived…
allow_forkingbooleanEither true to allow private forks, or false to prevent private forks.
web_commit_signoff_requiredbooleanEither true to require contributors to sign off on web-based commits, or false…

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__repos_update",
  "arguments": {
    "owner": "…",
    "repo": "…"
  }
}

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 repository tool with owner set to ….

More from GitHub API