Token导航 LogoToken导航TokenDH.com
Gitcode MCP Server logo
开发工具stdio官方级别未说明来源级核验

Gitcode MCP Server

MCP Server

GitCode MCP Server是一个为AI助手提供GitCode API交互功能的服务,支持访问仓库、问题、拉取请求等核心开发操作。

工具数

152

提示词数

0

GitHub Stars

1

资源数

0
版本控制PythonClaude代码管理Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

ZoroPoskai

提供方

ZoroPoskai

最后核验

2026/5/17 20:19

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python -m venv .venv

详细介绍

Gitcode MCP服务器

LLM安装提示 --将此粘贴到Claude Code、Gemini CLI、Codex或OpenCode中: `` Clone https://github.com/ZoroPoskai/gitcode-mcp-server.git, create a Python venv inside it, pip install -r requirements.txt, then add it to my MCP config with command pointing to .venv/bin/python and args pointing to server.py. Set env GITCODE_TOKEN to and GITCODE_TOOLSETS to core. ``

MCP服务器 Gitcode: API,使Claude和其他人工智能助手能够与GitCode存储库、问题、拉取请求等进行交互。

特性

  • 152工具 涵盖GitCode API v5和v8
  • 3个工具集级别 要控制上下文使用,请执行以下操作:

- core (22个工具,约2K个令牌)——基本的开发工作流程 - extended (106个工具,约10K个令牌)——完整的CRUD操作 - all (152个工具,约15K个令牌)——每个可用端点

  • 承载令牌身份验证
  • 异步HTTP与连接池

快速开始

先决条件

安装

git clone https://github.com/ZoroPoskai/gitcode-mcp-server.git
cd gitcode-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

配置Claude代码

添加到您的 ~/.claude.json:

{
  "mcpServers": {
    "gitcode": {
      "type": "stdio",
      "command": "/path/to/gitcode-mcp-server/.venv/bin/python",
      "args": ["/path/to/gitcode-mcp-server/server.py"],
      "env": {
        "GITCODE_TOKEN": "your-token-here",
        "GITCODE_TOOLSETS": "core"
      }
    }
  }
}

配置Claude桌面

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "gitcode": {
      "command": "/path/to/gitcode-mcp-server/.venv/bin/python",
      "args": ["/path/to/gitcode-mcp-server/server.py"],
      "env": {
        "GITCODE_TOKEN": "your-token-here",
        "GITCODE_TOOLSETS": "core"
      }
    }
  }
}

工具集

级别工具~令牌描述
core22~2K仓库、文件、分支、提交、问题、PR、搜索
extended106~10K+标签、里程碑、标签、发布、webhooks、组织、成员
all152~15K+企业、受保护的分支机构/标签、公关审查员/测试人员

通过设置 GITCODE_TOOLSETS 环境变量。违约: core.

您还可以通过逗号分隔工具集和单个工具来混合使用:

GITCODE_TOOLSETS=core,gitcode_list_releases,gitcode_list_tags

核心工具(默认)

工具说明
gitcode_get_user获取经过身份验证的用户配置文件
gitcode_get_repo获取存储库详细信息
gitcode_search_repos搜索存储库
gitcode_get_contents获取文件或目录内容
gitcode_get_raw_file获取原始文件内容
gitcode_create_file创建新文件
gitcode_update_file更新现有文件
gitcode_list_branches列出存储库分支
gitcode_get_branch获取分行详细信息
gitcode_list_commits列表存储库提交
gitcode_get_commit获得特定的承诺
gitcode_list_issues列出存储库问题
gitcode_get_issue获取特定问题
gitcode_create_issue创建新问题
gitcode_create_issue_comment对一个问题的评论
gitcode_list_pulls列出拉取请求
gitcode_get_pull获取特定的拉取请求
gitcode_create_pull创建pull请求
gitcode_merge_pull合并拉取请求
gitcode_create_pull_comment对pull请求发表评论
gitcode_list_pull_files列出PR中更改的文件
gitcode_search_issues搜索问题

所有可用工具

按类别组织的所有152种工具的完整参考。

存储库(11个工具)

工具说明
gitcode_get_repo获取存储库
gitcode_delete_repo删除存储库
gitcode_update_repo更新存储库设置
gitcode_get_readme获取存储库的README
gitcode_list_languages列出使用的编程语言
gitcode_list_contributors列出贡献者
gitcode_list_stargazers列出在repo中担任主角的用户
gitcode_list_subscribers列出观看repo的用户
gitcode_list_forks列表分叉
gitcode_create_fork分叉存储库
gitcode_search_repos搜索存储库

事件和通知(3个工具)

工具说明
gitcode_list_events列出存储库的事件
gitcode_list_repo_notifications列出存储库的通知
gitcode_mark_repo_notifications_read将所有通知标记为已读

文件和内容(8个工具)

工具说明
gitcode_get_contents获取文件或目录内容
gitcode_get_file_list获取平面文件列表
gitcode_get_raw_file获取原始文件内容
gitcode_get_blob通过SHA获取git blob
gitcode_get_tree获取SHA的git树
gitcode_create_file创建新文件
gitcode_update_file更新现有文件
gitcode_delete_file删除文件

分支机构(8个工具)

工具说明
gitcode_list_branches列出所有分支
gitcode_get_branch获得一个分支
gitcode_create_branch创建新分支
gitcode_delete_branch删除分支
gitcode_list_protected_branches列出受保护的分支
gitcode_create_branch_protection创建分支保护规则
gitcode_update_branch_protection更新分支保护规则
gitcode_delete_branch_protection删除分支保护规则

提交(11个工具)

工具说明
gitcode_list_commits列表提交
gitcode_get_commit获得一次提交
gitcode_compare_commits比较两个提交或分支
gitcode_get_commit_diff获取提交的差异
gitcode_get_commit_patch获取提交补丁
gitcode_list_commit_comments列出对提交的评论
gitcode_create_commit_comment对承诺发表评论
gitcode_list_repo_comments列出所有提交评论
gitcode_get_comment获取一条提交评论
gitcode_update_comment更新提交评论
gitcode_delete_comment删除提交评论

问题(18个工具)

工具说明
gitcode_list_issues列出问题
gitcode_get_issue获取一个问题
gitcode_create_issue创建新问题
gitcode_update_issue更新问题
gitcode_list_issue_comments列出对某个问题的评论
gitcode_create_issue_comment对一个问题的评论
gitcode_update_issue_comment更新问题评论
gitcode_delete_issue_comment删除问题注释
gitcode_list_all_issue_comments列出回购的所有发行评论
gitcode_get_issue_comment获取单个问题评论
gitcode_add_issue_labels为问题添加标签
gitcode_remove_issue_label从问题中删除标签
gitcode_remove_all_issue_labels从问题中删除所有标签
gitcode_replace_issue_labels替换问题上的所有标签
gitcode_get_issue_related_branches获取与问题相关的分支
gitcode_list_user_issues列出分配给您的问题
gitcode_list_org_issues列出组织的问题
gitcode_search_issues搜索问题

拉取请求(31个工具)

工具说明
gitcode_list_pulls列出拉取请求
gitcode_get_pull获取单个pull请求
gitcode_create_pull创建pull请求
gitcode_update_pull更新拉取请求
gitcode_list_pull_files列出PR中更改的文件
gitcode_list_pull_commitsPR上的列表提交
gitcode_list_pull_comments列出PR的审核意见
gitcode_create_pull_comment对pull请求发表评论
gitcode_get_pull_comment获取一条评论
gitcode_update_pull_comment更新评论
gitcode_delete_pull_comment删除评论
gitcode_check_pull_merged检查PR是否已合并
gitcode_merge_pull合并拉取请求
gitcode_list_pull_labels在PR上列出标签
gitcode_add_pull_labels向PR添加标签
gitcode_replace_pull_labels替换PR上的所有标签
gitcode_remove_pull_label从PR中删除标签
gitcode_assign_pull_reviewers将审阅者分配给PR
gitcode_reset_pull_review重置审核状态
gitcode_remove_pull_reviewers从PR中删除审阅者
gitcode_assign_pull_testers将测试人员分配给PR
gitcode_reset_pull_test重置测试状态
gitcode_remove_pull_testers从PR中删除测试人员
gitcode_submit_pull_review提交评论
gitcode_submit_pull_test提交测试结果
gitcode_link_pull_issues将问题链接到PR
gitcode_unlink_pull_issues从PR中取消链接问题
gitcode_list_pull_issues列出与PR相关的问题
gitcode_get_pull_settings获取回购的PR设置
gitcode_list_user_pulls列出您的拉取请求
gitcode_list_org_pulls列出组织的PR

标签(4个工具)

工具说明
gitcode_list_labels列出标签
gitcode_create_label创建标签
gitcode_update_label更新标签
gitcode_delete_label删除标签

里程碑(5个工具)

工具说明
gitcode_list_milestones列出里程碑
gitcode_get_milestone获得一个里程碑
gitcode_create_milestone创建里程碑
gitcode_update_milestone更新里程碑
gitcode_delete_milestone删除里程碑

标签(8工具)

工具说明
gitcode_list_tags列表标签
gitcode_create_tag创建标签
gitcode_delete_tag删除标签
gitcode_list_protected_tags列出受保护的标签
gitcode_get_protected_tag获取受保护的标签
gitcode_create_protected_tag创建受保护的标签
gitcode_update_protected_tag更新受保护的标签
gitcode_delete_protected_tag删除受保护的标签

发布(6个工具)

工具说明
gitcode_list_releases列表发布
gitcode_get_latest_release获取最新版本
gitcode_get_release按标签名称获取发布
gitcode_get_release_by_tag按标签获取发布(显式查找)
gitcode_create_release创建发布
gitcode_update_release更新版本

Webhooks(6个工具)

工具说明
gitcode_list_webhooks列出webhooks
gitcode_get_webhook获取单个webhook
gitcode_create_webhook创建webhook
gitcode_update_webhook更新webhook
gitcode_delete_webhook删除webhook
gitcode_test_webhook触发测试交付

协作者和成员(9个工具)

工具说明
gitcode_list_collaborators列出合作者
gitcode_check_collaborator检查用户是否为合作者
gitcode_get_collaborator_permission获取合作者的权限级别
gitcode_add_collaborator添加合作者
gitcode_remove_collaborator删除合作者
gitcode_list_org_members列出组织成员
gitcode_get_org_member获取组织成员
gitcode_invite_org_member邀请用户加入组织
gitcode_remove_org_member删除组织成员

组织(6种工具)

工具说明
gitcode_get_org组建一个组织
gitcode_update_org更新组织
gitcode_list_org_repos列出组织存储库
gitcode_create_org_repo创建组织存储库
gitcode_list_user_orgs列出您的组织
gitcode_list_user_orgs_by_name列出用户的组织

用户(13工具)

工具说明
gitcode_get_user获取经过身份验证的用户
gitcode_update_user更新您的个人资料
gitcode_get_user_by_name按用户名获取用户
gitcode_list_user_repos_by_name列出用户的存储库
gitcode_list_user_events列出用户执行的事件
gitcode_list_my_repos列出您的存储库
gitcode_list_my_starred列出你的星级repos
gitcode_list_my_subscriptions列出您关注的repos
gitcode_list_ssh_keys列出您的SSH密钥
gitcode_get_ssh_key获取单个SSH密钥
gitcode_add_ssh_key添加SSH密钥
gitcode_delete_ssh_key删除SSH密钥
gitcode_list_emails列出您的电子邮件地址

搜索(1个工具)

工具说明
gitcode_search_users搜索用户

企业(4个工具)

工具说明
gitcode_list_enterprise_members列出企业成员
gitcode_list_enterprise_issues列出企业问题
gitcode_get_enterprise_issue获取单个企业问题
gitcode_list_enterprise_pulls列出企业拉取请求

环境变量

变量必填默认描述
GITCODE_TOKEN--GitCode个人访问令牌
GITCODE_TOOLSETS没有core工具集级别: core, extended, all,或逗号分隔的混合

你也可以把这些放在 .env 项目目录中的文件。

许可证

麻省理工学院

目录标签

目录标签

版本控制PythonClaude代码管理GitCodeAPI本地部署AI助手集成开发工具

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

152

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP