codehost-remote

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

Forward GitHub tools to the hosted GitHub Copilot remote MCP endpoint.

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 *stringName for the new repository.
autoInitbooleanWhether to initialize the new repository with a README file.
descriptionstringA short description of the new repository.
privatebooleanWhether the new repository is private (true) or public (false).

fork_repository

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

ParameterTypeDescription
owner *stringOwner of the repository to fork (user or organization name).
repo *stringName of the repository to fork.

create_branch

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

ParameterTypeDescription
branch *stringName of the new branch to create.
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.
from_branchstringName of the existing branch to create the new branch from. If omitted, the repository's default branch is used.

get_file_contents

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

ParameterTypeDescription
owner *stringOwner of the repository (user or organization name).
path *stringPath of the file or directory to retrieve, relative to the repository root.
repo *stringName of the repository.
branchstringBranch to get the contents from. If omitted, the repository's default branch is used.

create_or_update_file

Create or update a single file in a GitHub repository.

ParameterTypeDescription
branch *stringBranch on which to create or update the file.
content *stringContents of the file.
message *stringCommit message for the file change.
owner *stringOwner of the repository (user or organization name).
path *stringPath where the file will be created or updated, relative to the repository root.
repo *stringName of the repository.
shastringSHA of the existing file being replaced. Required when updating an existing file; omit when creating a new file.

push_files

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

ParameterTypeDescription
branch *stringBranch to push the files to.
files *arrayList of files to push, each with a path and its content.
message *stringCommit message for the push.
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.

search_repositories

Search for GitHub repositories.

ParameterTypeDescription
query *stringThe repository search query string.
pagenumberPage number of the search results to return, for pagination.
perPagenumberNumber of search results per page, for pagination.

search_code

Search for code across GitHub repositories.

ParameterTypeDescription
q *stringThe code search query string.
pagenumberPage number of the search results to return, for pagination.
perPagenumberNumber of search results per page, for pagination.

list_issues

List issues in a GitHub repository.

ParameterTypeDescription
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.
labelsstringComma-separated list of label names to filter issues by.
pagenumberPage number of the issues to return, for pagination.
perPagenumberNumber of issues per page, for pagination.
statestringFilter issues by state: open, closed, or all.

get_issue

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

ParameterTypeDescription
issue_number *numberNumber of the issue to retrieve.
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.

create_issue

Create a new issue in a GitHub repository.

ParameterTypeDescription
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.
title *stringTitle of the new issue.
assigneesarrayList of user logins to assign to the new issue.
bodystringBody text of the new issue.
labelsarrayList of label names to apply to the new issue.

add_issue_comment

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

ParameterTypeDescription
body *stringText of the comment to add.
issue_number *numberNumber of the issue to comment on.
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.

list_pull_requests

List pull requests in a GitHub repository.

ParameterTypeDescription
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.
pagenumberPage number of the pull requests to return, for pagination.
perPagenumberNumber of pull requests per page, for pagination.
statestringFilter pull requests by state: open, closed, or all.

create_pull_request

Create a new pull request in a GitHub repository.

ParameterTypeDescription
base *stringName of the branch to merge the changes into (the target branch).
head *stringName of the branch containing the changes to merge (the source branch).
owner *stringOwner of the repository (user or organization name).
repo *stringName of the repository.
title *stringTitle of the new pull request.
bodystringBody text of the new pull request.
draftbooleanWhether to create the pull request as a draft.