GitHub MCP 服务器

GitHub MCP 服务器

用于使支持MCP协议的LLM(如Claude)与GitHub API交互的服务器。

快速入门

  1. 克隆仓库:git clone https://github.com/ualUsham/mcp-github.git
  2. 安装依赖:运行 npm install
  3. 创建 .env 文件,参考 .env.example
  4. 编译 TypeScript:运行 npx tsc
  5. 启动项目:运行 node build/index.js

测试方法

  • 使用 MCP Inspector:运行 npx @modelcontextprotocol/inspector node build/index.js,然后访问 http://localhost:5173
  • 使用 Claude Desktop:安装并配置 claude_desktop_config.json 文件。

功能

  • 工具:创建问题、获取仓库信息、列出问题、搜索仓库
  • 提示:生成问题描述、生成PR描述、增强GitHub API响应等