Helps review GitHub pull requests automatically using an LLM model that the user supplies.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add github-review --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- node /absolute/path/github-review-mcp/src/index.js~/.codex/config.toml
[mcp_servers.github-review]
command = "node"
args = ["/absolute/path/github-review-mcp/src/index.js"]
env = { GITHUB_TOKEN = "<GITHUB_TOKEN>" }
# codex mcp add github-review --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- node /absolute/path/github-review-mcp/src/index.js~/.cursor/mcp.json
{
"mcpServers": {
"github-review": {
"command": "node",
"args": [
"/absolute/path/github-review-mcp/src/index.js"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"github-review": {
"type": "stdio",
"command": "node",
"args": [
"/absolute/path/github-review-mcp/src/index.js"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github-review": {
"command": "node",
"args": [
"/absolute/path/github-review-mcp/src/index.js"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github-review": {
"command": "node",
"args": [
"/absolute/path/github-review-mcp/src/index.js"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"github-review": {
"command": "node",
"args": [
"/absolute/path/github-review-mcp/src/index.js"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}需要的环境变量
GITHUB_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。