MCP wrapper for the `gh` command
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add github -- java -jar /path/to/gh_mcp_server/build/libs/gh_mcp_server.jar~/.codex/config.toml
[mcp_servers.github]
command = "java"
args = ["-jar", "/path/to/gh_mcp_server/build/libs/gh_mcp_server.jar"]
# codex mcp add github -- java -jar /path/to/gh_mcp_server/build/libs/gh_mcp_server.jar~/.cursor/mcp.json
{
"mcpServers": {
"github": {
"command": "java",
"args": [
"-jar",
"/path/to/gh_mcp_server/build/libs/gh_mcp_server.jar"
]
}
}
}.vscode/mcp.json
{
"servers": {
"github": {
"type": "stdio",
"command": "java",
"args": [
"-jar",
"/path/to/gh_mcp_server/build/libs/gh_mcp_server.jar"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"github": {
"command": "java",
"args": [
"-jar",
"/path/to/gh_mcp_server/build/libs/gh_mcp_server.jar"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "java",
"args": [
"-jar",
"/path/to/gh_mcp_server/build/libs/gh_mcp_server.jar"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"github": {
"command": "java",
"args": [
"-jar",
"/path/to/gh_mcp_server/build/libs/gh_mcp_server.jar"
]
}
}
}