Home / Servers / GitHub API / repos_create_for_authenticated_user

Create a repository for the authenticated user

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

Create a repository for the authenticated user Creates a new repository for the authenticated user. OAuth app tokens and personal access tokens (classic) need the public_repo or repo scope to create a public repository, and repo scope to create… [POST /user/repos]

Name on the gateway: github_api__repos_create_for_authenticated_user · may change things.

Parameters

NameTypeDescription
name requiredstringThe name of the repository.
descriptionstringA short description of the repository.
homepagestringA URL with more information about the repository.
privatebooleanWhether the repository is private.
has_issuesbooleanWhether issues are enabled.
has_projectsbooleanWhether projects are enabled.
has_wikibooleanWhether the wiki is enabled.
has_discussionsbooleanWhether discussions are enabled.
team_idintegerThe id of the team that will be granted access to this repository. This is…
auto_initbooleanWhether the repository is initialized with a minimal README.
gitignore_templatestringThe desired language or platform to apply to the .gitignore.
license_templatestringThe license keyword of the open source license for this repository.
allow_squash_mergebooleanWhether to allow squash merges for pull requests.
allow_merge_commitbooleanWhether to allow merge commits for pull requests.
allow_rebase_mergebooleanWhether to allow rebase merges for pull requests.
allow_auto_mergebooleanWhether to allow Auto-merge to be used on pull requests.
delete_branch_on_mergebooleanWhether to delete head branches when pull requests are merged
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…
has_downloadsbooleanWhether downloads are enabled.
is_templatebooleanWhether this repository acts as a template that can be used to generate new…

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_for_authenticated_user",
  "arguments": {
    "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 for the authenticated user tool with name set to ….

More from GitHub API