MCP Server for the GitHub Enterprise APIs, enabling file operations, repository management, search functionality, and more.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add github-enterprice --env GITHUB_PERSONAL_ACCESS_TOKEN='<GITHUB_PERSONAL_ACCESS_TOKEN>' -- node /path/to/github-enterprise-mcp/dist/index.js~/.codex/config.toml
[mcp_servers.github-enterprice]
command = "node"
args = ["/path/to/github-enterprise-mcp/dist/index.js"]
env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<GITHUB_PERSONAL_ACCESS_TOKEN>" }
# codex mcp add github-enterprice --env GITHUB_PERSONAL_ACCESS_TOKEN='<GITHUB_PERSONAL_ACCESS_TOKEN>' -- node /path/to/github-enterprise-mcp/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"github-enterprice": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"github-enterprice": {
"command": "node",
"args": [
"/path/to/github-enterprise-mcp/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
}
}
}
}需要的环境变量
GITHUB_PERSONAL_ACCESS_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。