GitHub Mapper MCP Server
MCP GitHub 映射器是一个MCP工具,可以远程映射任何仓库,并直接将映射导入到您的代码编辑器中。
GitHub 映射器是一个 MCP 工具,可以远程映射任何 GitHub 仓库并直接将映射导入到您的代码编辑器中。
安装
自动安装 (推荐)
通过 Smithery 为 Claude Desktop 安装:
npx -y @smithery/cli install github-mapper-mcp-server --client claude
手动安装
git clone https://github.com/your-username/github-mapper-mcp-server.git
cd github-mapper-mcp-server
npm install
npm run build
npm start
使用指南
1. 设置 GitHub 令牌
创建个人访问令牌(选择经典令牌,需要 repo
权限):
请使用 set-github-token 设置 your_github_token_here
2. 映射仓库
请使用 map-github-repo https://github.com/username/repository
示例输出
仓库分析摘要:
名称: Hello-World
描述: 我在 GitHub 上的第一个仓库!
星标: 1234
分叉: 567
主要语言: JavaScript
创建时间: 2023-01-01
最后更新: 2023-06-15
仓库结构:
{
"src": {
"components": {...},
"pages": {...},
"styles": {...}
},
"public": {...},
"package.json": null,
"README.md": null
}
故障排除
- 令牌错误:确保先使用
set-github-token
设置有效的 GitHub 令牌 - 仓库错误:验证 GitHub URL 格式是否正确
更多信息
有关更多详情和高级用法,请访问 Smithery