Gitcode MCP Server

Gitcode MCP Server

Enables managing Gitcode repository issues and pull requests, including listing, creating, updating, and commenting via natural language.

Category
Visit Server

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 - 列出仓库的 Issues
  • gitcode_get_issue - 获取单个 Issue 详情
  • gitcode_create_issue - 创建新 Issue
  • gitcode_update_issue - 更新 Issue 信息
  • gitcode_create_issue_comment - 在 Issue 中添加评论
  • gitcode_list_issue_comments - 获取 Issue 的所有评论
  • gitcode_list_pull_requests - 列出仓库的 Pull Requests
  • gitcode_get_pull_request - 获取单个 Pull Request 详情
  • gitcode_create_pull_request - 创建新 Pull Request
  • gitcode_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/

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured