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
Copy file name to clipboardExpand all lines: README.md
+52-3Lines changed: 52 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,34 @@ and set it as the GITHUB_PERSONAL_ACCESS_TOKEN environment variable.
22
22
-`repo`: Repository name (string, required)
23
23
-`issue_number`: Issue number (number, required)
24
24
25
+
-**create_issue** - Create a new issue in a GitHub repository
26
+
27
+
-`owner`: Repository owner (string, required)
28
+
-`repo`: Repository name (string, required)
29
+
-`title`: Issue title (string, required)
30
+
-`body`: Issue body content (string, optional)
31
+
-`assignees`: Comma-separated list of usernames to assign to this issue (string, optional)
32
+
-`labels`: Comma-separated list of labels to apply to this issue (string, optional)
33
+
25
34
-**add_issue_comment** - Add a comment to an issue
26
35
27
36
-`owner`: Repository owner (string, required)
28
37
-`repo`: Repository name (string, required)
29
38
-`issue_number`: Issue number (number, required)
30
39
-`body`: Comment text (string, required)
31
40
41
+
-**list_issues** - List and filter repository issues
42
+
43
+
-`owner`: Repository owner (string, required)
44
+
-`repo`: Repository name (string, required)
45
+
-`state`: Filter by state ('open', 'closed', 'all') (string, optional)
46
+
-`labels`: Comma-separated list of labels to filter by (string, optional)
47
+
-`sort`: Sort by ('created', 'updated', 'comments') (string, optional)
48
+
-`direction`: Sort direction ('asc', 'desc') (string, optional)
49
+
-`since`: Filter by date (ISO 8601 timestamp) (string, optional)
50
+
-`page`: Page number (number, optional)
51
+
-`per_page`: Results per page (number, optional)
52
+
32
53
-**search_issues** - Search for issues and pull requests
33
54
-`query`: Search query (string, required)
34
55
-`sort`: Sort field (string, optional)
@@ -267,6 +288,36 @@ GitHub MCP Server running on stdio
267
288
268
289
```
269
290
291
+
## i18n / Overriding descriptions
292
+
293
+
The descriptions of the tools can be overridden by creating a github-mcp-server.json file in 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 branch in a GitHub repository"
301
+
}
302
+
```
303
+
304
+
You can create an export 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 last time 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 keys in 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 can set the following environment variable:
316
+
317
+
```sh
318
+
export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"
319
+
```
320
+
270
321
## Testing on VS Code Insiders
271
322
272
323
First of all, install `github-mcp-server` with:
@@ -313,16 +364,14 @@ Lots of things!
313
364
Missing tools:
314
365
315
366
- push_files (files array)
316
-
- create_issue (assignees and labels arrays)
317
367
- list_issues (labels array)
318
368
- update_issue (labels and assignees arrays)
319
369
- create_pull_request_review (comments array)
320
370
321
371
Testing
322
372
323
-
- Unit tests
324
373
- Integration tests
325
-
- Blackbox testing: ideally comparing output to Anthromorphic's server to make sure that this is a fully compatible drop-in replacement.
374
+
- Blackbox testing: ideally comparing output to Anthropic's server to make sure that this is a fully compatible drop-in replacement.
rootCmd.PersistentFlags().Bool("read-only", false, "Restrict the server to read-only operations")
52
53
rootCmd.PersistentFlags().String("log-file", "", "Path to log file")
53
54
rootCmd.PersistentFlags().Bool("enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file")
55
+
rootCmd.PersistentFlags().Bool("export-translations", false, "Save translations to a JSON file")
0 commit comments