codehost-remote
v0.1.0Forward 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new repository. |
autoInit | boolean | Whether to initialize the new repository with a README file. |
description | string | A short description of the new repository. |
private | boolean | Whether the new repository is private (true) or public (false). |
fork_repository
Fork a GitHub repository into the authenticated user's account.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Owner of the repository to fork (user or organization name). |
repo * | string | Name of the repository to fork. |
create_branch
Create a new branch in a repository, optionally from another branch.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Name of the new branch to create. |
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
from_branch | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Owner of the repository (user or organization name). |
path * | string | Path of the file or directory to retrieve, relative to the repository root. |
repo * | string | Name of the repository. |
branch | string | Branch 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.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch on which to create or update the file. |
content * | string | Contents of the file. |
message * | string | Commit message for the file change. |
owner * | string | Owner of the repository (user or organization name). |
path * | string | Path where the file will be created or updated, relative to the repository root. |
repo * | string | Name of the repository. |
sha | string | SHA 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.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch to push the files to. |
files * | array | List of files to push, each with a path and its content. |
message * | string | Commit message for the push. |
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
search_repositories
Search for GitHub repositories.
| Parameter | Type | Description |
|---|---|---|
query * | string | The repository search query string. |
page | number | Page number of the search results to return, for pagination. |
perPage | number | Number of search results per page, for pagination. |
search_code
Search for code across GitHub repositories.
| Parameter | Type | Description |
|---|---|---|
q * | string | The code search query string. |
page | number | Page number of the search results to return, for pagination. |
perPage | number | Number of search results per page, for pagination. |
list_issues
List issues in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
labels | string | Comma-separated list of label names to filter issues by. |
page | number | Page number of the issues to return, for pagination. |
perPage | number | Number of issues per page, for pagination. |
state | string | Filter issues by state: open, closed, or all. |
get_issue
Get the details of a specific issue in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
issue_number * | number | Number of the issue to retrieve. |
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
create_issue
Create a new issue in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
title * | string | Title of the new issue. |
assignees | array | List of user logins to assign to the new issue. |
body | string | Body text of the new issue. |
labels | array | List of label names to apply to the new issue. |
add_issue_comment
Add a comment to an existing issue in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
body * | string | Text of the comment to add. |
issue_number * | number | Number of the issue to comment on. |
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
list_pull_requests
List pull requests in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
page | number | Page number of the pull requests to return, for pagination. |
perPage | number | Number of pull requests per page, for pagination. |
state | string | Filter pull requests by state: open, closed, or all. |
create_pull_request
Create a new pull request in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
base * | string | Name of the branch to merge the changes into (the target branch). |
head * | string | Name of the branch containing the changes to merge (the source branch). |
owner * | string | Owner of the repository (user or organization name). |
repo * | string | Name of the repository. |
title * | string | Title of the new pull request. |
body | string | Body text of the new pull request. |
draft | boolean | Whether to create the pull request as a draft. |