You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The create_repository MCP tool currently only creates repositories in the authenticated user's personal account. It uses the GitHub API endpoint /user/repos which doesn't support organization repository creation.
Workaround
Until this is implemented, create the organization repo first. The rest of the tools will work it seems. You can create organization repositories either:
Add a new MCP tool create_org_repository that maps to the GitHub API endpoint /orgs/{org}/repos. The tool should include an additional required parameter:
{
"organization": {
"type": "string",
"name": "Name of the organization where the repository should be created"
}
}
Note
All other GitHub MCP tools (push_files, get_file_contents, etc.) work correctly with organization repositories once they are created - you just need to specify the correct organization name as the owner parameter.
Impact
This enhancement would make it easier to automate repository creation in organizational contexts, particularly important for teams using MCP tools for project setup and management.
The text was updated successfully, but these errors were encountered:
Current Limitation
The
create_repository
MCP tool currently only creates repositories in the authenticated user's personal account. It uses the GitHub API endpoint/user/repos
which doesn't support organization repository creation.Workaround
Until this is implemented, create the organization repo first. The rest of the tools will work it seems. You can create organization repositories either:
Proposed Enhancement
Add a new MCP tool
create_org_repository
that maps to the GitHub API endpoint/orgs/{org}/repos
. The tool should include an additional required parameter:Note
All other GitHub MCP tools (push_files, get_file_contents, etc.) work correctly with organization repositories once they are created - you just need to specify the correct organization name as the owner parameter.
Impact
This enhancement would make it easier to automate repository creation in organizational contexts, particularly important for teams using MCP tools for project setup and management.
The text was updated successfully, but these errors were encountered: