codehost-port

v0.1.0
io.github.CloudCorpRecords/codehost-port Checked 4 hours ago Published 1 month ago

GitHub repositories, issues and pull requests via the REST API, as MCP tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_repository

Create a new GitHub repository for the authenticated user.

ParameterTypeDescription
name *stringThe name of the new repository.
autoInitbooleanWhether to initialize the new repository with a README file.
descriptionstringA description of the new repository.
privatebooleanWhether the new repository should be private.

fork_repository

Fork a GitHub repository into the authenticated user's account.

ParameterTypeDescription
owner *stringThe owner of the repository to fork.
repo *stringThe name of the repository to fork.

create_branch

Create a new branch in a repository, optionally from another branch.

ParameterTypeDescription
branch *stringThe name of the new branch to create.
owner *stringThe owner of the repository to create the branch in.
repo *stringThe name of the repository to create the branch in.
from_branchstringThe name of the branch to create the new branch from; defaults to the repository's default branch.

get_file_contents

Get the contents of a file or directory from a GitHub repository.

ParameterTypeDescription
owner *stringThe owner of the repository to get file contents from.
path *stringThe path to the file or directory in the repository.
repo *stringThe name of the repository to get file contents from.
branchstringThe branch to get the file contents from.

create_or_update_file

Create or update a single file in a GitHub repository.

ParameterTypeDescription
branch *stringThe branch to create or update the file on.
content *stringThe new content of the file.
message *stringThe commit message for the file creation or update.
owner *stringThe owner of the repository containing the file.
path *stringThe path to the file in the repository.
repo *stringThe name of the repository containing the file.
shastringThe blob SHA of the file being replaced, required when updating an existing file.

push_files

Push one or more files to a GitHub repository in a single commit.

ParameterTypeDescription
branch *stringThe branch to push the files to.
files *arrayThe files to push, each with its path and content.
message *stringThe commit message for the push.
owner *stringThe owner of the repository to push files to.
repo *stringThe name of the repository to push files to.

search_repositories

Search for GitHub repositories.

ParameterTypeDescription
query *stringThe search query for repositories.
pagenumberThe page number of results to return.
perPagenumberThe maximum number of results to return per page.

search_code

Search for code across GitHub repositories.

ParameterTypeDescription
q *stringThe search query for code.
pagenumberThe page number of results to return.
perPagenumberThe maximum number of results to return per page.

list_issues

List issues in a GitHub repository.

ParameterTypeDescription
owner *stringThe owner of the repository to list issues in.
repo *stringThe name of the repository to list issues in.
labelsstringFilter issues by label names, as a comma-separated string.
pagenumberThe page number of issue results to return.
perPagenumberThe maximum number of issues to return per page.
statestringFilter issues by state, such as 'open' or 'closed'.

get_issue

Get the details of a specific issue in a GitHub repository.

ParameterTypeDescription
issue_number *numberThe number of the issue to retrieve.
owner *stringThe owner of the repository containing the issue.
repo *stringThe name of the repository containing the issue.

create_issue

Create a new issue in a GitHub repository.

ParameterTypeDescription
owner *stringThe owner of the repository to create the issue in.
repo *stringThe name of the repository to create the issue in.
title *stringThe title of the new issue.
assigneesarrayThe usernames to assign to the new issue.
bodystringThe body text of the new issue.
labelsarrayThe label names to add to the new issue.

add_issue_comment

Add a comment to an existing issue in a GitHub repository.

ParameterTypeDescription
body *stringThe text of the comment to add.
issue_number *numberThe number of the issue to add the comment to.
owner *stringThe owner of the repository containing the issue to comment on.
repo *stringThe name of the repository containing the issue to comment on.

list_pull_requests

List pull requests in a GitHub repository.

ParameterTypeDescription
owner *stringThe owner of the repository to list pull requests in.
repo *stringThe name of the repository to list pull requests in.
pagenumberThe page number of pull request results to return.
perPagenumberThe maximum number of pull requests to return per page.
statestringFilter pull requests by state, such as 'open' or 'closed'.

create_pull_request

Create a new pull request in a GitHub repository.

ParameterTypeDescription
base *stringThe name of the branch to merge into (the target branch).
head *stringThe name of the branch to merge from (the source branch).
owner *stringThe owner of the repository to create the pull request in.
repo *stringThe name of the repository to create the pull request in.
title *stringThe title of the new pull request.
bodystringThe body text of the new pull request.
draftbooleanWhether to create the pull request as a draft.