Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa4d088

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/add-update_project_item-tool' into add-update_project_item-tool
2 parents5447a1d +554bccf commitaa4d088

17 files changed

+655
-724
lines changed

‎.github/workflows/docker-publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# https://github.com/docker/login-action
6161
-name:Log into registry ${{ env.REGISTRY }}
6262
if:github.event_name != 'pull_request'
63-
uses:docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1# v3.5.0
63+
uses:docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef# v3.6.0
6464
with:
6565
registry:${{ env.REGISTRY }}
6666
username:${{ github.actor }}

‎.github/workflows/registry-releaser.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses:actions/checkout@v5
1818

1919
-name:Setup Go
20-
uses:actions/setup-go@v5
20+
uses:actions/setup-go@v6
2121
with:
2222
go-version:"stable"
2323

‎README.md‎

Lines changed: 93 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,17 @@ Alternatively, to manually configure VS Code, choose the appropriate JSON block
8686
>**Note:** Each MCP host application needs to configure a GitHub App or OAuth App to support remote access via OAuth. Any host application that supports remote MCP servers should support the remote GitHub server with PAT authentication. Configuration details and support levels vary by host. Make sure to refer to the host application's documentation for more info.
8787
8888
###Configuration
89-
See[Remote Server Documentation](/docs/remote-server.md) on how to pass additional configuration settings to the remote GitHub MCP Server.
89+
90+
####Default toolset configuration
91+
92+
The default configuration is:
93+
- context
94+
- repos
95+
- issues
96+
- pull_requests
97+
- users
98+
99+
See[Remote Server Documentation](docs/remote-server.md) for full details on remote server configuration, toolsets, headers, and advanced usage. This file provides comprehensive instructions and examples for connecting, customizing, and installing the remote GitHub MCP Server in VS Code and other MCP hosts.
90100

91101
---
92102

@@ -271,6 +281,50 @@ The GitHub MCP Server supports enabling or disabling specific groups of function
271281

272282
_Toolsets are not limited to Tools. Relevant MCP Resources and Prompts are also included where applicable._
273283

284+
The Local GitHub MCP Server follows the same[default toolset configuration](#default-toolset-configuration) as the remote version.
285+
286+
####Specifying Toolsets
287+
288+
To specify toolsets you want available to the LLM, you can pass an allow-list in two ways:
289+
290+
1.**Using Command Line Argument**:
291+
292+
```bash
293+
github-mcp-server --toolsets repos,issues,pull_requests,actions,code_security
294+
```
295+
296+
2.**Using Environment Variable**:
297+
```bash
298+
GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" ./github-mcp-server
299+
```
300+
301+
The environment variable`GITHUB_TOOLSETS` takes precedence over the command line argument if both are provided.
302+
303+
###Using Toolsets With Docker
304+
305+
When using Docker, you can pass the toolsets as environment variables:
306+
307+
```bash
308+
docker run -i --rm \
309+
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
310+
-e GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security,experiments" \
311+
ghcr.io/github/github-mcp-server
312+
```
313+
314+
###The "all" Toolset
315+
316+
The special toolset`all` can be provided to enable all available toolsets regardless of any other configuration:
317+
318+
```bash
319+
./github-mcp-server --toolsets all
320+
```
321+
322+
Or using the environment variable:
323+
324+
```bash
325+
GITHUB_TOOLSETS="all" ./github-mcp-server
326+
```
327+
274328
###Available Toolsets
275329

276330
The following sets of tools are available (all are on by default):
@@ -293,12 +347,12 @@ The following sets of tools are available (all are on by default):
293347
|`repos`| GitHub Repository related tools|
294348
|`secret_protection`| Secret protection related tools, such as GitHub Secret Scanning|
295349
|`security_advisories`| Security advisories related tools|
350+
|`stargazers`| GitHub Stargazers related tools|
296351
|`users`| GitHub User related tools|
297352
<!-- END AUTOMATED TOOLSETS-->
298353

299354
##Tools
300355

301-
302356
<!-- START AUTOMATED TOOLS-->
303357
<details>
304358

@@ -761,38 +815,6 @@ The following sets of tools are available (all are on by default):
761815
-`pullNumber`: Pull request number (number, required)
762816
-`repo`: Repository name (string, required)
763817

764-
-**get_pull_request** - Get pull request details
765-
-`owner`: Repository owner (string, required)
766-
-`pullNumber`: Pull request number (number, required)
767-
-`repo`: Repository name (string, required)
768-
769-
-**get_pull_request_diff** - Get pull request diff
770-
-`owner`: Repository owner (string, required)
771-
-`pullNumber`: Pull request number (number, required)
772-
-`repo`: Repository name (string, required)
773-
774-
-**get_pull_request_files** - Get pull request files
775-
-`owner`: Repository owner (string, required)
776-
-`page`: Page number for pagination (min 1) (number, optional)
777-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
778-
-`pullNumber`: Pull request number (number, required)
779-
-`repo`: Repository name (string, required)
780-
781-
-**get_pull_request_review_comments** - Get pull request review comments
782-
-`owner`: Repository owner (string, required)
783-
-`pullNumber`: Pull request number (number, required)
784-
-`repo`: Repository name (string, required)
785-
786-
-**get_pull_request_reviews** - Get pull request reviews
787-
-`owner`: Repository owner (string, required)
788-
-`pullNumber`: Pull request number (number, required)
789-
-`repo`: Repository name (string, required)
790-
791-
-**get_pull_request_status** - Get pull request status checks
792-
-`owner`: Repository owner (string, required)
793-
-`pullNumber`: Pull request number (number, required)
794-
-`repo`: Repository name (string, required)
795-
796818
-**list_pull_requests** - List pull requests
797819
-`base`: Filter by base branch (string, optional)
798820
-`direction`: Sort direction (string, optional)
@@ -812,6 +834,22 @@ The following sets of tools are available (all are on by default):
812834
-`pullNumber`: Pull request number (number, required)
813835
-`repo`: Repository name (string, required)
814836

837+
-**pull_request_read** - Get details for a single pull request
838+
-`method`: Action to specify what pull request data needs to be retrieved from GitHub.
839+
Possible options:
840+
1. get - Get details of a specific pull request.
841+
2. get_diff - Get the diff of a pull request.
842+
3. get_status - Get status of a head commit in a pull request. This reflects status of builds and checks.
843+
4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.
844+
5. get_review_comments - Get the review comments on a pull request. Use with pagination parameters to control the number of results returned.
845+
6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.
846+
(string, required)
847+
-`owner`: Repository owner (string, required)
848+
-`page`: Page number for pagination (min 1) (number, optional)
849+
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
850+
-`pullNumber`: Pull request number (number, required)
851+
-`repo`: Repository name (string, required)
852+
815853
-**request_copilot_review** - Request Copilot review
816854
-`owner`: Repository owner (string, required)
817855
-`pullNumber`: Pull request number (number, required)
@@ -940,13 +978,6 @@ The following sets of tools are available (all are on by default):
940978
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
941979
-`repo`: Repository name (string, required)
942980

943-
-**list_starred_repositories** - List starred repositories
944-
-`direction`: The direction to sort the results by. (string, optional)
945-
-`page`: Page number for pagination (min 1) (number, optional)
946-
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
947-
-`sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
948-
-`username`: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
949-
950981
-**list_tags** - List tags
951982
-`owner`: Repository owner (string, required)
952983
-`page`: Page number for pagination (min 1) (number, optional)
@@ -973,14 +1004,6 @@ The following sets of tools are available (all are on by default):
9731004
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
9741005
-`query`: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
9751006

976-
-**star_repository** - Star repository
977-
-`owner`: Repository owner (string, required)
978-
-`repo`: Repository name (string, required)
979-
980-
-**unstar_repository** - Unstar repository
981-
-`owner`: Repository owner (string, required)
982-
-`repo`: Repository name (string, required)
983-
9841007
</details>
9851008

9861009
<details>
@@ -1038,6 +1061,27 @@ The following sets of tools are available (all are on by default):
10381061

10391062
<details>
10401063

1064+
<summary>Stargazers</summary>
1065+
1066+
-**list_starred_repositories** - List starred repositories
1067+
-`direction`: The direction to sort the results by. (string, optional)
1068+
-`page`: Page number for pagination (min 1) (number, optional)
1069+
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1070+
-`sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
1071+
-`username`: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
1072+
1073+
-**star_repository** - Star repository
1074+
-`owner`: Repository owner (string, required)
1075+
-`repo`: Repository name (string, required)
1076+
1077+
-**unstar_repository** - Unstar repository
1078+
-`owner`: Repository owner (string, required)
1079+
-`repo`: Repository name (string, required)
1080+
1081+
</details>
1082+
1083+
<details>
1084+
10411085
<summary>Users</summary>
10421086

10431087
-**search_users** - Search users
@@ -1076,48 +1120,6 @@ The following sets of tools are available (all are on by default):
10761120
-**list_copilot_spaces** - List Copilot Spaces
10771121
</details>
10781122

1079-
####Specifying Toolsets
1080-
1081-
To specify toolsets you want available to the LLM, you can pass an allow-list in two ways:
1082-
1083-
1.**Using Command Line Argument**:
1084-
1085-
```bash
1086-
github-mcp-server --toolsets repos,issues,pull_requests,actions,code_security
1087-
```
1088-
1089-
2.**Using Environment Variable**:
1090-
```bash
1091-
GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" ./github-mcp-server
1092-
```
1093-
1094-
The environment variable`GITHUB_TOOLSETS` takes precedence over the command line argument if both are provided.
1095-
1096-
###Using Toolsets With Docker
1097-
1098-
When using Docker, you can pass the toolsets as environment variables:
1099-
1100-
```bash
1101-
docker run -i --rm \
1102-
-e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
1103-
-e GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security,experiments" \
1104-
ghcr.io/github/github-mcp-server
1105-
```
1106-
1107-
###The "all" Toolset
1108-
1109-
The special toolset`all` can be provided to enable all available toolsets regardless of any other configuration:
1110-
1111-
```bash
1112-
./github-mcp-server --toolsets all
1113-
```
1114-
1115-
Or using the environment variable:
1116-
1117-
```bash
1118-
GITHUB_TOOLSETS="all" ./github-mcp-server
1119-
```
1120-
11211123
##Dynamic Tool Discovery
11221124

11231125
**Note**: This feature is currently in beta and may not be available in all environments. Please test it out and let us know if you encounter any issues.

‎cmd/github-mcp-server/main.go‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ var (
4545
returnfmt.Errorf("failed to unmarshal toolsets: %w",err)
4646
}
4747

48+
iflen(enabledToolsets)==0 {
49+
enabledToolsets=github.GetDefaultToolsetIDs()
50+
}
51+
4852
stdioServerConfig:= ghmcp.StdioServerConfig{
4953
Version:version,
5054
Host:viper.GetString("host"),
@@ -69,7 +73,7 @@ func init() {
6973
rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n")
7074

7175
// Add global flags that will be shared by all commands
72-
rootCmd.PersistentFlags().StringSlice("toolsets",github.DefaultTools,"An optional comma separated list of groups of tools to allow, defaults to enabling all")
76+
rootCmd.PersistentFlags().StringSlice("toolsets",nil,github.GenerateToolsetsHelp())
7377
rootCmd.PersistentFlags().Bool("dynamic-toolsets",false,"Enable dynamic toolsets")
7478
rootCmd.PersistentFlags().Bool("read-only",false,"Restrict the server to read-only operations")
7579
rootCmd.PersistentFlags().String("log-file","","Path to log file")

‎docs/remote-server.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Below is a table of available toolsets for the remote GitHub MCP Server. Each to
3434
| Repositories| GitHub Repository related tools|https://api.githubcopilot.com/mcp/x/repos|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-repos&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Frepos%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/repos/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-repos&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Frepos%2Freadonly%22%7D)|
3535
| Secret Protection| Secret protection related tools, such as GitHub Secret Scanning|https://api.githubcopilot.com/mcp/x/secret_protection|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-secret_protection&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecret_protection%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/secret_protection/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-secret_protection&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecret_protection%2Freadonly%22%7D)|
3636
| Security Advisories| Security advisories related tools|https://api.githubcopilot.com/mcp/x/security_advisories|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-security_advisories&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecurity_advisories%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/security_advisories/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-security_advisories&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecurity_advisories%2Freadonly%22%7D)|
37+
| Stargazers| GitHub Stargazers related tools|https://api.githubcopilot.com/mcp/x/stargazers|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-stargazers&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fstargazers%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/stargazers/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-stargazers&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fstargazers%2Freadonly%22%7D)|
3738
| Users| GitHub User related tools|https://api.githubcopilot.com/mcp/x/users|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-users&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fusers%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/users/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-users&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fusers%2Freadonly%22%7D)|
3839

3940
<!-- END AUTOMATED TOOLSETS-->

‎pkg/github/__toolsnaps__/get_pull_request.snap‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎pkg/github/__toolsnaps__/get_pull_request_diff.snap‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp