Skip to main content
Glama
github-manager MCP Server

github-manager MCP Server

GitHub 管理器 MCP 服务器

用于 GitHub 管理的模型上下文协议服务器

这个基于 TypeScript 的 MCP 服务器通过 GitHub API 提供了管理 GitHub 组织、存储库和协作者的工具。

特征

GitHub 管理工具

  • list_orgs :列出经过身份验证的用户所属的 GitHub 组织

  • list_repos :列出指定组织中的存储库

  • create_repo :在组织中创建一个新的存储库

  • add_collaborator :将协作者添加到存储库

  • update_repo_settings :更新存储库设置

Related MCP server: MCP Server

发展

安装

npm install

建造

npm run build

使用自动重建进行开发

npm run watch

测试

运行单元测试:

npm test

运行覆盖测试:

npm run test:coverage

配置

环境变量

  • GITHUB_TOKEN :具有所需范围的 GitHub 个人访问令牌

MCP 服务器安装

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "github-manager": {
      "command": "/path/to/github-manager/build/index.js",
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

调试

我们建议使用MCP Inspector ,它可以作为包脚本使用:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers