Home / Servers / GitHub API / repos_create_in_org
Create an organization repository
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
Create an organization repository Creates a new repository in the specified organization. The authenticated user must be a member of the organization. OAuth app tokens and personal access tokens (classic) need the public_repo or… [POST /orgs/{org}/repos]
Name on the gateway: github_api__repos_create_in_org · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
name required | 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 | Whether the repository is private. |
visibility | public | private | The visibility of the repository. |
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_downloads | boolean | Whether downloads are enabled. |
is_template | boolean | Either true to make this repo available as a template repository or false to… |
team_id | integer | The id of the team that will be granted access to this repository. This is… |
auto_init | boolean | Pass true to create an initial commit with empty README. |
gitignore_template | string | Desired language or platform .gitignore template to apply. Use the name of the… |
license_template | string | Choose an open source license template that best suits your needs, and then… |
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… |
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… |
custom_properties | object | The custom properties for the new repository. The keys are the custom property… |
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_create_in_org",
"arguments": {
"org": "…",
"name": "…"
}
}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 create an organization repository tool with org set to ….