GitCode MCP Go Server

GitCode MCP Go Server

gitcode-mcp•bygitcode-org-com

A Go MCP server that wraps the GitCode API and exposes repository, branch, issue, pull request, and search operations as MCP tools.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides an MCP interface over the GitCode API, implemented in Go with the mark3labs/mcp-go SDK.
  • •Supports both STDIO and SSE transport methods.
  • •Exposes MCP tools for repositories and branches, including listing, getting, and creating them.
  • •Exposes MCP tools for issues, pull requests, and searching code, repositories, issues, and users.

BEST FOR

  • •Managing GitCode repositories, branches, issues, and pull requests from an MCP-connected AI platform.
  • •Searching GitCode code, repositories, issues, and users through an MCP client.

ABOUT GITCODE-MCP

GitCode MCP Go Server is cataloged as an MCP server attributed to gitcode-org-com. A Go MCP server that wraps the GitCode API and exposes repository, branch, issue, pull request, and search operations as MCP tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for GitCode MCP Go Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport methods does the server support?

It supports both STDIO and SSE transport methods.

Upstream README

View this exact version on GitHub

README.md · 180cc65989cc · Fetched 2026-11-13 12:46:36 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

GitCode MCP Go Server

这是GitCode MCP服务器的Go语言实现版本,提供了GitCode API的标准MCP接口封装。

功能特点

  • 完整支持GitCode API的主要功能
  • 基于标准MCP协议实现,使用mark3labs/mcp-go SDK
  • 支持STDIO和SSE两种传输方式
  • 轻量级,响应速度快
  • 并发处理能力强,适合高负载场景
  • 模块化的代码结构,便于扩展和维护

安装要求

  • Go 1.16+
  • 网络连接以访问GitCode API

环境变量配置

项目使用.env文件来管理环境变量。您可以复制.env.example文件并重命名为.env,然后设置以下环境变量:

# GitCode API配置
GITCODE_TOKEN=<您的GitCode访问令牌>
GITCODE_API_URL=https://api.gitcode.com/api/v5

安装说明

方法一:使用安装脚本(推荐)

# 克隆仓库
git clone https://github.com/gitcode-org-com/gitcode-mcp.git
cd gitcode-mcp

# 运行安装脚本
./install.sh

安装脚本会:

  1. 编译项目生成可执行文件
  2. 创建配置目录 ~/.gitcode_mcp
  3. 复制配置文件到配置目录
  4. 提示输入您的GitCode访问令牌
  5. 将可执行文件安装到系统路径(需要管理员权限)或用户目录

安装完成后,您可以在任何位置运行 gitcode-mcp 命令。

方法二:使用 Go Install

# 安装最新版本
go install github.com/gitcode-org-com/gitcode-mcp@latest

使用 Go Install 安装后,程序会被安装到 $GOPATH/bin 目录下。请确保该目录已添加到您的 PATH 环境变量中。

快速开始

  1. 运行MCP服务器
gitcode-mcp
  1. 配置AI平台

    项目docs目录下提供了各平台的配置文件参考:

    • Claude平台: claude_config.json
    • Cline平台: cline_config.json
    • Cursor平台: cursor_config.json
    • Windsurf平台: windsurf_config.json

MCP工具清单

GitCode MCP提供以下工具:

工具名称描述参数
list_repositories列出当前用户的仓库无
get_repository获取特定仓库的详细信息owner, repo
create_repository创建新仓库name, description?, private?
list_branches列出仓库的分支owner, repo
get_branch获取特定分支的详细信息owner, repo, branch
create_branch创建新分支owner, repo, branch, ref
list_issues列出仓库的Issuesowner, repo
get_issue获取特定Issue的详细信息owner, repo, issue_number
create_issue创建新Issueowner, repo, title, body?
list_pull_requests列出仓库的Pull Requestsowner, repo
get_pull_request获取特定Pull Request的详细信息owner, repo, pull_number
create_pull_request创建新Pull Requestowner, repo, title, head, base, body?
search_code搜索代码query
search_repositories搜索仓库query
search_issues搜索Issuesquery
search_users搜索用户query

许可证

该项目采用MIT许可证。详情请参阅LICENSE文件。

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for GitCode MCP Go Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/gitcode-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools