Gitcode MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gitcode MCP Serverlist open issues in the repo yangxt65535/gitcode-mcp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚠️ AI 生成内容提示
本项目由 AI 辅助生成,实际行为可能因实际代码、接口或平台行为存在偏差。请以仓库源码、GitCode 开放 API 文档 及你所在环境的真实行为为准;涉及鉴权、密钥与生产操作时务必自行核实。
Gitcode MCP Server
基于 Node.js 的 MCP (Model Context Protocol) 服务器,用于 Gitcode 平台的 Issue 和 Pull Request 操作。
仓库:https://github.com/yangxt65535/gitcode-mcp
工具列表
gitcode_list_issues- 列出仓库的 Issuesgitcode_get_issue- 获取单个 Issue 详情gitcode_create_issue- 创建新 Issuegitcode_update_issue- 更新 Issue 信息gitcode_create_issue_comment- 在 Issue 中添加评论gitcode_list_issue_comments- 获取 Issue 的所有评论gitcode_list_pull_requests- 列出仓库的 Pull Requestsgitcode_get_pull_request- 获取单个 Pull Request 详情gitcode_create_pull_request- 创建新 Pull Requestgitcode_update_pull_request- 更新 Pull Request 信息gitcode_create_pull_request_comment- 在 Pull Request 中添加评论gitcode_list_pull_request_comments- 获取 Pull Request 的所有评论
Related MCP server: MCP Git/PR Assist
安装
环境变量
变量 | 必需 | 说明 |
| 是 | Gitcode API access_token |
| 否 | API 基础 URL,默认为 |
Gitcode API 使用 access_token 作为 Query 参数进行认证:
GET /repos/:owner/:repo/issues/:number?access_token=YOUR_TOKEN前往 个人设置 - 访问令牌 中创建,确保 token 有必备的权限
添加 MCP
项目已发布到 npm,可直接 npx 使用,无需 clone 和本地构建。具体添加方式参阅各 AI 工具文档。
# claude code
claude mcp add gitcode-mcp --env GITCODE_TOKEN=your_token -- npx @yangxt65535/gitcode-mcp"gitcode-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"@yangxt65535/gitcode-mcp"
],
"env": {
"GITCODE_TOKEN": "your_token"
}
}
配置
环境变量
变量 | 必需 | 说明 |
| 是 | Gitcode API access_token |
| 否 | API 基础 URL,默认为 |
API 认证
Gitcode API 使用 access_token 作为 Query 参数进行认证:
GET /repos/:owner/:repo/issues/:number?access_token=YOUR_TOKEN前往 个人设置 - 访问令牌 中创建,确保 token 有必备的权限
发布
本包默认公开发布到 npm(@yangxt65535/gitcode-mcp)。推送符合 v* 的 git tag 后,GitHub Actions 会通过 npm Trusted Publishing(OIDC)自动执行 npm publish。
本地发版示例:
npm version patch # 或 minor / major
git push origin master --follow-tags首次启用前,请在 npmjs 包设置中添加 Trusted Publisher:
Publisher: GitHub Actions
Repository:
yangxt65535/gitcode-mcpWorkflow:
publish.yml
注意事项
API 端点和认证方式可能需要根据 Gitcode 实际 API 文档进行调整。请参考:https://docs.gitcode.com/docs/apis/
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yangxt65535/gitcode-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server