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
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1124,6 +1124,7 @@ The following sets of tools are available:
1124
1124
-`owner`: Repository owner (string, required)
1125
1125
-`pullNumber`: Pull request number (number, required)
1126
1126
-`repo`: Repository name (string, required)
1127
+
-`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)
1127
1128
1128
1129
-**search_pull_requests** - Search pull requests
1129
1130
-**Required OAuth Scopes**: `repo`
@@ -1541,6 +1542,34 @@ set the following environment variable:
1541
1542
export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"
1542
1543
```
1543
1544
1545
+
### Overriding Server Name and Title
1546
+
1547
+
The same override mechanism can be used to customize the MCP server's `name` and
1548
+
`title` fields in the initialization response. This is useful when running
1549
+
multiple GitHub MCP Server instances (e.g., one for github.com and one for
1550
+
GitHub Enterprise Server) so that agents can distinguish between them.
For example, to configure a server instance for GitHub Enterprise Server:
1558
+
1559
+
```json
1560
+
{
1561
+
"SERVER_NAME": "ghes-mcp-server",
1562
+
"SERVER_TITLE": "GHES MCP Server"
1563
+
}
1564
+
```
1565
+
1566
+
Or using environment variables:
1567
+
1568
+
```sh
1569
+
export GITHUB_MCP_SERVER_NAME="ghes-mcp-server"
1570
+
export GITHUB_MCP_SERVER_TITLE="GHES MCP Server"
1571
+
```
1572
+
1544
1573
## Library Usage
1545
1574
1546
1575
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__/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.",
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.",
- 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.
1561
1566
- 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.
1562
1567
- 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.
1568
+
- 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.
1569
+
- 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.
0 commit comments