GitHub PR 管理服务器

GitHub PR 管理服务器

允许AI代理通过集成Linear项目跟踪管理GitHub仓库和问题。

快速入门

前置条件

  • 安装 Node.js 18+
  • 准备 GitHub Personal Access Token 和 Linear API Key

安装与运行

使用 NPX(推荐)

export GITHUB_TOKEN=your_github_token
npx @ibraheem4/github-mcp

本地构建

  1. 克隆仓库:git clone https://github.com/ibraheem4/github-mcp.git && cd github-mcp
  2. 安装依赖:npm install
  3. 构建项目:npm run build
  4. 启动服务:npm start

配置环境变量

创建 .env 文件并添加以下内容:

GITHUB_TOKEN=your_github_personal_access_token
LINEAR_API_KEY=your_linear_api_key

使用方法

  • 创建PR:调用 create_pull_request 工具。
  • 列出PR:调用 list_pull_requests 工具。
  • 更新PR:调用 update_pull_request 工具。

更多详细信息,请参考 README。