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
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository without the .git extension. The… |
name | string | The name of the repository. |
description | string | A short description of the repository. |
homepage | string | A URL with more information about the repository. |
private | boolean | Either true to make the repository private or false to make it public.… |
visibility | public | private | The visibility of the repository. |
security_and_analysis | object | Specify which security and analysis features to enable or disable for the… |
has_issues | boolean | Either true to enable issues for this repository or false to disable them. |
has_projects | boolean | Either true to enable projects for this repository or false to disable them.… |
has_wiki | boolean | Either true to enable the wiki for this repository or false to disable it. |
has_pull_requests | boolean | Either true to allow pull requests for this repository or false to prevent… |
pull_request_creation_policy | all | collaborators_only | The policy that controls who can create pull requests for this repository: all… |
is_template | boolean | Either true to make this repo available as a template repository or false to… |
default_branch | string | Updates the default branch for this repository. |
allow_squash_merge | boolean | Either true to allow squash-merging pull requests, or false to prevent… |
allow_merge_commit | boolean | Either true to allow merging pull requests with a merge commit, or false to… |
allow_rebase_merge | boolean | Either true to allow rebase-merging pull requests, or false to prevent… |
allow_auto_merge | boolean | Either true to allow auto-merge on pull requests, or false to disallow… |
delete_branch_on_merge | boolean | Either true to allow automatically deleting head branches when pull requests… |
allow_update_branch | boolean | Either true to always allow a pull request head branch that is behind its base… |
use_squash_pr_title_as_default | boolean | Either true to allow squash-merge commits to use pull request title, or false… |
squash_merge_commit_title | PR_TITLE | COMMIT_OR_PR_TITLE | Required when using squash_merge_commit_message. The default value for a… |
squash_merge_commit_message | PR_BODY | COMMIT_MESSAGES | BLANK | The default value for a squash merge commit message: - PR_BODY - default to… |
merge_commit_title | PR_TITLE | MERGE_MESSAGE | Required when using merge_commit_message. The default value for a merge commit… |
merge_commit_message | PR_BODY | PR_TITLE | BLANK | The default value for a merge commit message. - PR_TITLE - default to the pull… |
archived | boolean | Whether to archive this repository. false will unarchive a previously archived… |
allow_forking | boolean | Either true to allow private forks, or false to prevent private forks. |
web_commit_signoff_required | boolean | Either 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:
{
"name": "github_api__repos_update",
"arguments": {
"owner": "…",
"repo": "…"
}
}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 update a repository tool with owner set to ….