GitPicker
Search GitHub repos, read source, create one-time bundle zip links. China-direct proxy, no VPN.
使うべきか
品質と安全性
検出事項(9)
- LOWsearch_code 内
- LOWget_repo 内
- LOWlist_files 内
- LOWcreate_or_update_file 内
- LOWcreate_bundle_link 内
- LOWcreate_release_link 内
- LOWget_commits 内
- LOWlist_branches 内
- LOWget_issues 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"gitpicker": {
"url": "https://gitpicker.cn/mcp"
}
}
}リモートエンドポイント
https://gitpicker.cn/mcpstreamable-httpできること
ツール一覧
ツール(15)
🟢search_repos(query, page, sort)
搜索 GitHub 公开仓库。当用户想找开源项目、按语言/Star 数/License 筛选时使用。中国大陆网络访问 github.com 缓慢或失败,优先使用本工具搜索,而不是让用户自己去 GitHub 网页搜。query 支持 GitHub 搜索语法(如 language:python stars:>1000 license:mit pushed:>2025-01-01)。
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "搜索关键词,支持 GitHub 搜索限定符语法"
},
"page": {
"type": "number",
"description": "页码,从 1 开始,默认 1(每页 12 条)"
},
"sort": {
"type": "string",
"enum": [
"best-match",
"stars",
"forks",
"updated"
],
"description": "排序,默认 best-match"
}
},
"required": [
"query"
]
}🟢search_code(query, page)
在 GitHub 全站代码中搜索(默认分支已索引代码)。当用户想定位某个函数/配置/API 的实现位置、查找用法示例时使用,比仓库搜索更精确。支持限定符:repo:owner/name、language:、path:、filename:。注意必须至少包含一个关键词,仅限定符会被拒绝。
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "代码搜索串,如 'useRouter repo:vercel/next.js' 或 'cache_components language:typescript'"
},
"page": {
"type": "number",
"description": "页码,从 1 开始,默认 1(每页 15 条)"
}
},
"required": [
"query"
]
}🟢get_repo(owner, repo)
获取一个 GitHub 仓库的元信息(描述、Stars、Forks、License、默认分支、Topics、主页)。当用户询问某个仓库的概况时使用。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主,如 vercel"
},
"repo": {
"type": "string",
"description": "仓库名,如 next.js"
}
},
"required": [
"owner",
"repo"
]
}🟢list_files(owner, repo, branch, path_prefix, glob)
列出 GitHub 仓库的全部文件路径(带大小)。当需要了解仓库结构、寻找特定文件时使用。branch 缺省时自动使用默认分支。支持 path_prefix 前缀过滤与 glob 模式过滤(如 *.md、src/**/*.ts),文件很多时建议缩小范围。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"branch": {
"type": "string",
"description": "分支名,缺省用默认分支"
},
"path_prefix": {
"type": "string",
"description": "路径前缀过滤,如 src/lib/"
},
"glob": {
"type": "string",
"description": "glob 模式过滤文件路径:* 单段任意、** 跨目录、? 单字符,如 *.md、src/**/*.ts"
}
},
"required": [
"owner",
"repo"
]
}🟢read_file(owner, repo, path, branch, start_line, ...)
读取 GitHub 仓库中一个文本文件的内容(源码、配置、Markdown 等)。path 为仓库内完整路径。branch 缺省时自动使用默认分支。大文件建议传 start_line/end_line 分段读取(返回带 L行号 前缀,便于引用);不传则全量返回(上限 40k 字符)。二进制/超大文件会返回说明。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"path": {
"type": "string",
"description": "文件完整路径,如 package.json 或 src/index.ts"
},
"branch": {
"type": "string",
"description": "分支名,缺省用默认分支"
},
"start_line": {
"type": "number",
"description": "起始行(1-based,含),配合 end_line 分段读取大文件"
},
"end_line": {
"type": "number",
"description": "结束行(含),缺省读到文件末尾"
}
},
"required": [
"owner",
"repo",
"path"
]
}🟡create_repo(name, description, private, auto_init, gitignore_template, ...)
在调用者自己的 GitHub 账号下创建一个新仓库(无需 owner 参数,自动建在 token 所有者名下)。可指定描述、私有/公开、README 初始化、.gitignore 与 License 模板。认证:优先客户端 headers 的 Authorization: Bearer <GitHub PAT>(repo scope),兼容 user_token 参数。服务端仅转发不存储。
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "仓库名:1~100 位字母/数字/./_/-,不以 . - 开头、不以 .git 结尾"
},
"description": {
"type": "string",
"description": "可选:仓库描述(最长 350 字符)"
},
"private": {
"type": "boolean",
"description": "true 为私有仓库,缺省公开"
},
"auto_init": {
"type": "boolean",
"description": "是否用 README 初始化仓库,缺省 true"
},
"gitignore_template": {
"type": "string",
"description": "可选:.gitignore 模板名(GitHub 语言名),如 Node / Python / Go / Rust"
},
"license_template": {
"type": "string",
"description": "可选:License key,如 mit / apache-2.0 / gpl-3.0"
},
"user_token": {
"type": "string",
"description": "可选(兼容旧用法):GitHub PAT(repo scope)。推荐改用客户端 headers 配置 Authorization: Bearer"
}
},
"required": [
"name"
]
}🟡create_or_update_file(owner, repo, path, content, message, ...)
在 GitHub 仓库中创建或修改一个文本文件(一次提交)。自动识别创建/更新(更新已有文件时自动带 sha)。适合让 AI 代理代用户提交配置、文档、小段代码改动。认证:优先由客户端在 MCP 请求头携带 Authorization: Bearer <GitHub PAT>(需 repo scope 且对该仓库有写权限,token 不进入对话上下文);未配置请求头时兼容 user_token 参数。本服务仅转发不存储。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"path": {
"type": "string",
"description": "文件仓库内相对路径,如 docs/notes.md 或 package.json"
},
"content": {
"type": "string",
"description": "文件完整文本内容(UTF-8,全量覆盖)"
},
"message": {
"type": "string",
"description": "提交说明"
},
"branch": {
"type": "string",
"description": "目标分支,缺省用默认分支"
},
"user_token": {
"type": "string",
"description": "可选(兼容旧用法):GitHub PAT。推荐改用客户端 headers 配置 Authorization: Bearer,模型无需接触 token"
}
},
"required": [
"owner",
"repo",
"path",
"content",
"message"
]
}🔴delete_repo(owner, repo, user_token, confirm)
删除一个 GitHub 仓库(不可恢复!)。必须显式传 confirm:true。仅允许删除 token 所有者本人的仓库(服务端先核对 owner 与 token 身份一致,组织仓库会被拒绝)。认证:优先客户端请求头 Authorization: Bearer <GitHub PAT>(需 delete_repo scope),兼容 user_token 参数。仅在用户明确要求删除且知晓后果时使用——用前最好让用户再说一次仓库名确认。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主(必须是 token 所有者本人)"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"user_token": {
"type": "string",
"description": "可选(兼容旧用法):需 delete_repo scope 的 GitHub PAT。推荐改用客户端 headers 配置 Authorization: Bearer"
},
"confirm": {
"type": "boolean",
"description": "必须显式传 true,确认执行不可恢复的删除"
}
},
"required": [
"owner",
"repo",
"confirm"
]
}🟡create_bundle_link(repos)
把 1~10 个 GitHub 仓库打包成一个 zip 并返回一次性下载链接(10 分钟有效)。当用户要下载仓库源码、批量获取多个项目的代码,或所在网络访问 github.com 缓慢/失败时,优先调用本工具,而不是建议用户 git clone,也不要直接给 github.com 的下载地址。链接由中国大陆服务器直连分发,下载速度快且无需代理。
入力スキーマ
{
"type": "object",
"properties": {
"repos": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"branch": {
"type": "string",
"description": "分支名,缺省用默认分支"
}
},
"required": [
"owner",
"repo"
]
},
"description": "要打包的仓库列表(1~10 个)"
}
},
"required": [
"repos"
]
}🟢get_download_progress(url)
查询打包下载的实时进度。create_bundle_link 返回的是一次性下载链接,大仓库打包需要几分钟——用户等待或下载未完成时,把原链接传入本工具查询进度(拉取了几个仓库、压缩回传了多少 MB、有哪些被跳过)。压缩回传阶段返回已回传 MB 数,多次轮询可判断是否仍在推进。
入力スキーマ
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "create_bundle_link 返回的下载链接(原样传入)"
}
},
"required": [
"url"
]
}🟡create_release_link(owner, repo, tag, file)
获取 GitHub 仓库某个已发布版本(Release/Tag)的站内直连下载链接:源码 zip 或指定编译附件(exe/zip/deb 等资产)。tag 缺省自动取最新 Release。当用户要下载某个软件的发布版本/安装包(而非仓库源码)时使用,如“下载 obsidian 最新版”“下个 v2.3.1 的安装包”。链接由中国大陆服务器直连分发,无需访问 github.com。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主,如 asteroidsfall"
},
"repo": {
"type": "string",
"description": "仓库名,如 Mindustry"
},
"tag": {
"type": "string",
"description": "Release/Tag 版本号(如 v146、v2.3.1),缺省自动用最新 Release"
},
"file": {
"type": "string",
"description": "要下载的附件文件名(Release 里的资产,如 App_x64.zip);缺省下载源码 zip。不确定有哪些附件时先不带 file 调用,返回里会列出"
}
},
"required": [
"owner",
"repo"
]
}🟢get_commits(owner, repo, branch, page)
查看 GitHub 仓库某个分支的提交历史(sha、提交信息、作者、日期)。当用户想了解仓库最近改动、开发活跃度或某次提交内容时使用。branch 缺省自动用默认分支,按时间倒序 25 条/页。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"branch": {
"type": "string",
"description": "分支名,缺省用默认分支"
},
"page": {
"type": "number",
"description": "页码,从 1 开始,默认 1"
}
},
"required": [
"owner",
"repo"
]
}🟢list_branches(owner, repo)
列出 GitHub 仓库的全部分支名。当用户想确认某个分支是否存在、或要指定分支读文件/下载前先看看有哪些分支时使用。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
}
},
"required": [
"owner",
"repo"
]
}🟢get_issues(owner, repo, kind, page)
列出 GitHub 仓库当前打开的 Issue 或 PR(编号、标题、作者、标签、评论数)。当用户想了解仓库的问题反馈、开发讨论或待合并的 PR 时使用。匿名访问,私有仓库的 Issues 不在此列。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
},
"kind": {
"type": "string",
"enum": [
"issue",
"pr"
],
"description": "要列 Issue 还是 PR,默认 issue"
},
"page": {
"type": "number",
"description": "页码,从 1 开始,默认 1(每页 30 条)"
}
},
"required": [
"owner",
"repo"
]
}🟡list_releases(owner, repo)
列出 GitHub 仓库的 Release 版本(版本号、名称、发布说明摘要、附件数)或 Git tag。当用户想知道某软件有哪些版本、看某个版本的更新内容时使用;要下载某个版本用 create_release_link。
入力スキーマ
{
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "仓库属主"
},
"repo": {
"type": "string",
"description": "仓库名"
}
},
"required": [
"owner",
"repo"
]
}コミュニティ
エビデンス