这是一个基于模型上下文协议(MCP),为 Claude 桌面端提供的全面 GitHub 集成方案。借助 15 个强大工具,你可以直接在 Claude 中使用所有 GitHub 功能。
Feather Code MCP 服务器是一个利用模型上下文协议(MCP),为 Claude 桌面端提供全面 GitHub 集成的工具。借助 15 个强大工具,你可以直接在 Claude 中使用所有 GitHub 功能。
你可以选择快速安装(推荐)或手动安装:
curl -fsSL https://raw.githubusercontent.com/yourusername/feather-code/main/install.sh | bash
Invoke-WebRequest -Uri https://raw.githubusercontent.com/yourusername/feather-code/main/install.bat -OutFile install.bat
.\install.bat
git clone https://github.com/yourusername/feather-code.git
cd feather-code
pip install -r requirements.txt
export GITHUB_PAT=your_github_personal_access_token
将以下内容添加到你的 Claude 桌面端配置中:
{
"mcpServers": {
"feather-code": {
"command": "python3",
"args": ["/path/to/feather-code/feather_code.py"]
}
}
}
在任何 Git 仓库中运行:
cd /your/github/repo
python3 /path/to/feather_code.py
curl -fsSL https://raw.githubusercontent.com/yourusername/feather-code/main/install.sh | bash
Invoke-WebRequest -Uri https://raw.githubusercontent.com/yourusername/feather-code/main/install.bat -OutFile install.bat
.\install.bat
git clone https://github.com/yourusername/feather-code.git
cd feather-code
pip install -r requirements.txt
export GITHUB_PAT=your_github_personal_access_token
将以下内容添加到你的 Claude 桌面端配置中:
{
"mcpServers": {
"feather-code": {
"command": "python3",
"args": ["/path/to/feather-code/feather_code.py"]
}
}
}
在任何 Git 仓库中运行:
cd /your/github/repo
python3 /path/to/feather_code.py
get_repository_info - 获取全面的仓库详细信息。get_repository_languages - 获取仓库语言分布。get_repository_topics - 获取仓库主题/标签。list_issues - 列出并过滤仓库问题。create_issue - 创建带有标签的新问题。update_issue - 更新现有问题。get_issue - 获取详细的问题信息。add_issue_comment - 为问题添加评论。get_pull_requests - 列出并过滤拉取请求。create_pull_request - 创建新的拉取请求。get_pull_request - 获取详细的拉取请求信息。list_branches - 列出仓库分支。get_commits - 按条件获取提交历史。get_file_content - 读取仓库中的文件内容。search_code - 在仓库中搜索代码。repo、read:org(用于私有仓库)。export GITHUB_PAT=ghp_your_token_here
echo "ghp_your_token_here" > ~/.github_token
export GITHUB_PAT_FILE=~/.github_token
export GITHUB_APP_ID=123456
export GITHUB_INSTALLATION_ID=789012
export GITHUB_PRIVATE_KEY_PATH=/path/to/private-key.pem
所有配置均通过环境变量完成:
| 属性 | 详情 | 默认值 |
|---|---|---|
GITHUB_OWNER |
仓库所有者 | 从 Git 自动检测 |
GITHUB_REPO |
仓库名称 | 从 Git 自动检测 |
GITHUB_PAT |
个人访问令牌 | - |
GITHUB_PAT_FILE |
令牌文件路径 | - |
GITHUB_APP_ID |
GitHub 应用 ID | - |
GITHUB_INSTALLATION_ID |
应用安装 ID | - |
GITHUB_PRIVATE_KEY_PATH |
应用私钥路径 | - |
GITHUB_API_URL |
GitHub API URL | https://api.github.com |
用户:创建一个标题为 "Bug: Login not working" 并带有 bug 标签的新问题
Claude:我将为你创建该问题。
[使用 create_issue 工具]
创建了问题 #123:"Bug: Login not working"
用户:查找所有包含 "authentication" 的文件
Claude:我将搜索包含 "authentication" 的文件。
[使用 search_code 工具]
找到 5 个包含 "authentication" 的文件:
- src/auth/login.py
- src/auth/middleware.py
...
python3 test_comprehensive.py
python3 validate_production_ready.py
pip install -e .
GITHUB_OWNER 和 GITHUB_REPO 环境变量。本项目采用 MIT 许可证,详情请参阅 LICENSE 文件。
欢迎贡献代码!请按以下步骤操作: