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

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…
new_owner requiredstringThe username or organization name the repository will be transferred to.
new_namestringThe new name to be given to the repository.
team_idsarrayID 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:

call_tool arguments
{
  "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:

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

More from GitHub API