FastMCP wrapper over the GitHub API for repository management, pull requests, issues and other GitHub operations.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add git-pilot --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- uv --directory pathtorepo run main.py~/.codex/config.toml
[mcp_servers.git-pilot]
command = "uv"
args = ["--directory", "pathtorepo", "run", "main.py"]
env = { GITHUB_TOKEN = "<GITHUB_TOKEN>" }
# codex mcp add git-pilot --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- uv --directory pathtorepo run main.py~/.cursor/mcp.json
{
"mcpServers": {
"git-pilot": {
"command": "uv",
"args": [
"--directory",
"pathtorepo",
"run",
"main.py"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"git-pilot": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"pathtorepo",
"run",
"main.py"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"git-pilot": {
"command": "uv",
"args": [
"--directory",
"pathtorepo",
"run",
"main.py"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"git-pilot": {
"command": "uv",
"args": [
"--directory",
"pathtorepo",
"run",
"main.py"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"git-pilot": {
"command": "uv",
"args": [
"--directory",
"pathtorepo",
"run",
"main.py"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}需要的环境变量
GITHUB_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。