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
For example, to configure a server instance for GitHub Enterprise Server:
1553
+
1554
+
```json
1555
+
{
1556
+
"SERVER_NAME": "ghes-mcp-server",
1557
+
"SERVER_TITLE": "GHES MCP Server"
1558
+
}
1559
+
```
1560
+
1561
+
Or using environment variables:
1562
+
1563
+
```sh
1564
+
export GITHUB_MCP_SERVER_NAME="ghes-mcp-server"
1565
+
export GITHUB_MCP_SERVER_TITLE="GHES MCP Server"
1566
+
```
1567
+
1540
1568
## Library Usage
1541
1569
1542
1570
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`.
// Add middlewares. Order matters - for example, the error context middleware should be applied last so that it runs FIRST (closest to the handler) to ensure all errors are captured,
107
107
// and any middleware that needs to read or modify the context should be before it.
0 commit comments