You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
8
+
9
+
Contributions to this project are[released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the[project's open source license](LICENSE.txt).
10
+
11
+
Please note that this project is released with a[Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
12
+
13
+
##Prerequisites for running and testing code
14
+
15
+
These are one time installations required to be able to test your changes locally as part of the pull request (PR) submission process.
1. Make sure the tests pass on your machine:`go test -v ./...`
24
+
1. Make sure linter passes on your machine:`golangci-lint run`
25
+
1. Create a new branch:`git checkout -b my-branch-name`
26
+
1. Make your change, add tests, and make sure the tests and linter still pass
27
+
1. Push to your fork and[submit a pull request][pr]
28
+
1. Pat yourself on the back and wait for your pull request to be reviewed and merged.
29
+
30
+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
31
+
32
+
- Follow the[style guide][style].
33
+
- Write tests.
34
+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
-`pr_number`: Pull request number (string, required)
256
+
-`path`: File or directory path (string, optional)
257
+
184
258
##Standard input/output server
185
259
186
260
```sh
@@ -214,9 +288,39 @@ GitHub MCP Server running on stdio
214
288
215
289
```
216
290
291
+
## i18n / Overriding descriptions
292
+
293
+
The descriptions of the tools can be overridden by creating a github-mcp-server.json filein the same directory as the binary.
294
+
The file should contain a JSON object with the tool names as keys and the new descriptions as values.
295
+
For example:
296
+
297
+
```json
298
+
{
299
+
"TOOL_ADD_ISSUE_COMMENT_DESCRIPTION":"an alternative description",
300
+
"TOOL_CREATE_BRANCH_DESCRIPTION":"Create a new branchin a GitHub repository"
301
+
}
302
+
```
303
+
304
+
You can create anexport of the current translations by running the binary with the`--export-translations` flag.
305
+
This flag will preserve any translations/overrides you have made,while adding any new translations that have been added to the binary since the lasttime you exported.
306
+
307
+
```sh
308
+
./github-mcp-server --export-translations
309
+
cat github-mcp-server.json
310
+
```
311
+
312
+
You can also use ENV vars to override the descriptions. The environment variable names are the same as the keysin the JSON file,
313
+
prefixed with`GITHUB_MCP_` and all uppercase.
314
+
315
+
For example, to override the`TOOL_ADD_ISSUE_COMMENT_DESCRIPTION` tool, you canset the following environment variable:
316
+
317
+
```sh
318
+
export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"
319
+
```
320
+
217
321
## Testing on VS Code Insiders
218
322
219
-
First of all, install`github-mcp-server`with:
323
+
First of all, install`github-mcp-server` with:
220
324
221
325
```bash
222
326
go install ./cmd/github-mcp-server
@@ -257,24 +361,21 @@ Try something like the following prompt to verify that it works:
257
361
I'd like to know more about my GitHub profile.
258
362
```
259
363
260
-
261
364
## TODO
262
365
263
366
Lots of things!
264
367
265
368
Missing tools:
266
369
267
370
- push_files (files array)
268
-
- create_issue (assignees and labels arrays)
269
371
- list_issues (labels array)
270
372
- update_issue (labels and assignees arrays)
271
373
- create_pull_request_review (comments array)
272
374
273
375
Testing
274
376
275
-
- Unit tests
276
377
- Integration tests
277
-
- Blackbox testing: ideally comparing output toAnthromorphic's server to make sure that this is a fully compatible drop-in replacement.
378
+
- Blackbox testing: ideally comparing output toAnthropic's server to make sure that this is a fully compatible drop-in replacement.
GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as[GitHub](https://github.com/GitHub).
6
+
7
+
Even though[open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
8
+
9
+
##Reporting Security Issues
10
+
11
+
If you believe you have found a security vulnerability in any GitHub-owned repository, please report it to us through coordinated disclosure.
12
+
13
+
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
14
+
15
+
Instead, please send an email to opensource-security[@]github.com.
16
+
17
+
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
18
+
19
+
* The type of issue (e.g., buffer overflow, SQL injection, or cross-site scripting)
20
+
* Full paths of source file(s) related to the manifestation of the issue
21
+
* The location of the affected source code (tag/branch/commit or direct URL)
22
+
* Any special configuration required to reproduce the issue
23
+
* Step-by-step instructions to reproduce the issue
24
+
* Proof-of-concept or exploit code (if possible)
25
+
* Impact of the issue, including how an attacker might exploit the issue
26
+
27
+
This information will help us triage your report more quickly.
This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue.
6
+
7
+
For help or questions about using this project, please open an issue.
8
+
9
+
- The`github-mcp-server` is under active development and maintained by GitHub staff**AND THE COMMUNITY**. We will do our best to respond to support, feature requests, and community questions in a timely manner.
10
+
11
+
##GitHub Support Policy
12
+
13
+
Support for this project is limited to the resources listed above.