Home / Servers / GitHub API / repos_transfer
Transfer a repository
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Transfer a repository A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original owner, and the transfer will continue… [POST /repos/{owner}/{repo}/transfer]
Name on the gateway: github_api__repos_transfer · 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… |
new_owner required | string | The username or organization name the repository will be transferred to. |
new_name | string | The new name to be given to the repository. |
team_ids | array | ID of the team or teams to add to the repository. Teams can only be added to… |
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_transfer",
"arguments": {
"owner": "…",
"repo": "…",
"new_owner": "…"
}
}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 transfer a repository tool with owner set to ….