Home / Servers / GitHub API / repos_create_using_template

Create a repository using a template

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

Create a repository using a template Creates a new repository using a repository template. Use the template_owner and template_repo route parameters to specify the repository to use as the template. If the repository is not public, the… [POST /repos/{template_owner}/{template_repo}/generate]

Name on the gateway: github_api__repos_create_using_template · may change things.

Parameters

NameTypeDescription
template_owner requiredstringThe account owner of the template repository. The name is…
template_repo requiredstringThe name of the template repository without the .git…
ownerstringThe organization or person who will own the new repository. To create a new…
name requiredstringThe name of the new repository.
descriptionstringA short description of the new repository.
include_all_branchesbooleanSet to true to include the directory structure and files from all branches in…
privatebooleanEither true to create a new private repository or false to create a new public…

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_create_using_template",
  "arguments": {
    "template_owner": "…",
    "template_repo": "…",
    "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 create a repository using a template tool with template_owner set to ….

More from GitHub API