npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yangxt65535/gitcode-mcp

v1.1.0

Published

MCP server for Gitcode platform - Issue and Pull Request operations

Downloads

468

Readme

⚠️ AI 生成内容提示

本项目由 AI 辅助生成,实际行为可能因实际代码、接口或平台行为存在偏差。请以仓库源码、GitCode 开放 API 文档 及你所在环境的真实行为为准;涉及鉴权、密钥与生产操作时务必自行核实。

Gitcode MCP Server

基于 Node.js 的 MCP (Model Context Protocol) 服务器,用于 Gitcode 平台的 Issue 和 Pull Request 操作。

功能

SKILL

  • gitcode-issue-fixer 支持自动化处理 Gitcode 平台的 Issue 和 Pull Request 相关任务。端到端完成小规模 Issue 的修复与关联 PR 提交。
  • gitcode-pr-review 自动化完成 Gitcode PR 读取、代码变更分析,并发表评审评论。

MCP 工具

  • gitcode_list_issues - 列出仓库的 Issues
  • gitcode_get_issue - 获取单个 Issue 详情
  • gitcode_create_issue - 创建新 Issue
  • gitcode_list_pull_requests - 列出仓库的 Pull Requests
  • gitcode_get_pull_request - 获取单个 Pull Request 详情
  • gitcode_create_pull_request - 创建新 Pull Request
  • gitcode_create_pull_request_comment - 在 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 --env GITCODE_TOKEN=your_token -- npx @yangxt65535/gitcode-mcp
"gitcode-mcp": {
    "type": "stdio",
    "command": "npx",
    "args": [
        "@yangxt65535/gitcode-mcp"
    ],
    "env": {
        "GITCODE_TOKEN": "your_token"
    }
}

添加 Skill

复制 skills/gitcode-issue-fixer/ 目录到 Agent 的 Skill 目录,具体添加方式参考各 AI 工具文档。

配置

环境变量

| 变量 | 必需 | 说明 | |------|------|------| | 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 有必备的权限

注意事项

API 端点和认证方式可能需要根据 Gitcode 实际 API 文档进行调整。请参考:https://docs.gitcode.com/docs/apis/