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
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1242,9 +1242,12 @@ The following sets of tools are available:
1242
1242
-`author`: Author username or email address to filter commits by (string, optional)
1243
1243
-`owner`: Repository owner (string, required)
1244
1244
-`page`: Page number for pagination (min 1) (number, optional)
1245
+
-`path`: Only commits containing this file path will be returned (string, optional)
1245
1246
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1246
1247
-`repo`: Repository name (string, required)
1247
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)
1248
1251
1249
1252
-**list_releases** - List releases
1250
1253
-**Required OAuth Scopes**: `repo`
@@ -1537,6 +1540,34 @@ set the following environment variable:
1537
1540
export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"
1538
1541
```
1539
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
+
1540
1571
## Library Usage
1541
1572
1542
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)",
0 commit comments