Code Assist MCP for GitHub

Build 26.0.9655

CloneTemplateRepository

Duplicates the files and structure of a template repository to create a new repository, streamlining the setup process for consistent project creation.

Input

Name Type Required Description
RepositoryId String True The unique node ID of the template repository from which the new repository is cloned.
OwnerId String True The unique ID of the user or organization that owns the newly created repository.
Name String True The name for the new repository being created. It must be unique within the owner's account.
Description String False A brief, user-defined summary or explanation about the purpose of the new repository.
Visibility String True Defines the access level of the new repository: 'public', 'private', or 'internal' (internal is for organizations only).

The allowed values are PRIVATE, PUBLIC, INTERNAL.

IncludeAllBranches Boolean False Specifies if all branches of the template repository should be cloned to the new repository. Defaults to 'false', which clones only the default branch.

Result Set Columns

Name Type Description
Success Boolean Indicates if the repository cloning process completed successfully. Returns a Boolean value.
Details String Provides additional information or context about the cloning operation, including error messages if applicable.
RepositoryId String The unique node ID assigned to the newly created repository.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655