Gitcode MCP Server
Enables managing Gitcode repository issues and pull requests, including listing, creating, updating, and commenting via natural language.
README
⚠️ 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 的所有评论
安装
环境变量
| 变量 | 必需 | 说明 |
|---|---|---|
GITCODE_TOKEN |
是 | Gitcode API access_token |
GITCODE_API_URL |
否 | API 基础 URL,默认为 https://api.gitcode.com/api/v5 |
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_TOKEN |
是 | Gitcode API access_token |
GITCODE_API_URL |
否 | API 基础 URL,默认为 https://api.gitcode.com/api/v5 |
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-mcp - Workflow:
publish.yml
注意事项
API 端点和认证方式可能需要根据 Gitcode 实际 API 文档进行调整。请参考:https://docs.gitcode.com/docs/apis/
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。