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
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1119,6 +1119,7 @@ The following sets of tools are available:
1119
1119
-`owner`: Repository owner (string, required)
1120
1120
-`pullNumber`: Pull request number (number, required)
1121
1121
-`repo`: Repository name (string, required)
1122
+
-`threadId`: The node ID of the review thread (e.g., PRRT_kwDOxxx). Required for resolve_thread and unresolve_thread methods. Get thread IDs from pull_request_read with method get_review_comments. (string, optional)
1122
1123
1123
1124
-**search_pull_requests** - Search pull requests
1124
1125
-**Required OAuth Scopes**: `repo`
@@ -1241,9 +1242,12 @@ The following sets of tools are available:
1241
1242
-`author`: Author username or email address to filter commits by (string, optional)
1242
1243
-`owner`: Repository owner (string, required)
1243
1244
-`page`: Page number for pagination (min 1) (number, optional)
1245
+
-`path`: Only commits containing this file path will be returned (string, optional)
1244
1246
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1245
1247
-`repo`: Repository name (string, required)
1246
1248
-`sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
1249
+
-`since`: Only commits after this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD) (string, optional)
1250
+
-`until`: Only commits before this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD) (string, optional)
1247
1251
1248
1252
-**list_releases** - List releases
1249
1253
-**Required OAuth Scopes**: `repo`
@@ -1536,6 +1540,34 @@ set the following environment variable:
1536
1540
export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"
1537
1541
```
1538
1542
1543
+
### Overriding Server Name and Title
1544
+
1545
+
The same override mechanism can be used to customize the MCP server's `name` and
1546
+
`title` fields in the initialization response. This is useful when running
1547
+
multiple GitHub MCP Server instances (e.g., one for github.com and one for
1548
+
GitHub Enterprise Server) so that agents can distinguish between them.
For example, to configure a server instance for GitHub Enterprise Server:
1556
+
1557
+
```json
1558
+
{
1559
+
"SERVER_NAME": "ghes-mcp-server",
1560
+
"SERVER_TITLE": "GHES MCP Server"
1561
+
}
1562
+
```
1563
+
1564
+
Or using environment variables:
1565
+
1566
+
```sh
1567
+
export GITHUB_MCP_SERVER_NAME="ghes-mcp-server"
1568
+
export GITHUB_MCP_SERVER_TITLE="GHES MCP Server"
1569
+
```
1570
+
1539
1571
## Library Usage
1540
1572
1541
1573
The exported Go API of this module should currently be considered unstable, and subject to breaking changes. In the future, we may offer stability; please file an issue if there is a use case where this would be valuable.
| Server Name/Title | Not available |`GITHUB_MCP_SERVER_NAME` / `GITHUB_MCP_SERVER_TITLE` env vars or `github-mcp-server-config.json`|
18
19
19
20
> **Default behavior:** If you don't specify any configuration, the server uses the **default toolsets**: `context`, `issues`, `pull_requests`, `repos`, `users`.
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/list_commits.snap
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,10 @@
19
19
"minimum": 1,
20
20
"type": "number"
21
21
},
22
+
"path": {
23
+
"description": "Only commits containing this file path will be returned",
24
+
"type": "string"
25
+
},
22
26
"perPage": {
23
27
"description": "Results per page for pagination (min 1, max 100)",
24
28
"maximum": 100,
@@ -32,6 +36,14 @@
32
36
"sha": {
33
37
"description": "Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA.",
34
38
"type": "string"
39
+
},
40
+
"since": {
41
+
"description": "Only commits after this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD)",
42
+
"type": "string"
43
+
},
44
+
"until": {
45
+
"description": "Only commits before this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD)",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/pull_request_review_write.snap
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"annotations": {
3
3
"title": "Write operations (create, submit, delete) on pull request reviews."
4
4
},
5
-
"description": "Create and/or submit, delete review of a pull request.\n\nAvailable methods:\n- create: Create a new review of a pull request. If \"event\" parameter is provided, the review is submitted. If \"event\" is omitted, a pending review is created.\n- submit_pending: Submit an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request. The \"body\" and \"event\" parameters are used when submitting the review.\n- delete_pending: Delete an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request.\n",
5
+
"description": "Create and/or submit, delete review of a pull request.\n\nAvailable methods:\n- create: Create a new review of a pull request. If \"event\" parameter is provided, the review is submitted. If \"event\" is omitted, a pending review is created.\n- submit_pending: Submit an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request. The \"body\" and \"event\" parameters are used when submitting the review.\n- delete_pending: Delete an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request.\n- resolve_thread: Resolve a review thread. Requires only \"threadId\" parameter with the thread's node ID (e.g., PRRT_kwDOxxx). The owner, repo, and pullNumber parameters are not used for this method. Resolving an already-resolved thread is a no-op.\n- unresolve_thread: Unresolve a previously resolved review thread. Requires only \"threadId\" parameter. The owner, repo, and pullNumber parameters are not used for this method. Unresolving an already-unresolved thread is a no-op.\n",
6
6
"inputSchema": {
7
7
"properties": {
8
8
"body": {
@@ -27,7 +27,9 @@
27
27
"enum": [
28
28
"create",
29
29
"submit_pending",
30
-
"delete_pending"
30
+
"delete_pending",
31
+
"resolve_thread",
32
+
"unresolve_thread"
31
33
],
32
34
"type": "string"
33
35
},
@@ -42,6 +44,10 @@
42
44
"repo": {
43
45
"description": "Repository name",
44
46
"type": "string"
47
+
},
48
+
"threadId": {
49
+
"description": "The node ID of the review thread (e.g., PRRT_kwDOxxx). Required for resolve_thread and unresolve_thread methods. Get thread IDs from pull_request_read with method get_review_comments.",
0 commit comments