MCP.so
登录

GitHub Enterprise MCP Server

@piyushgIITian

关于 GitHub Enterprise MCP Server

MCP Server for the GitHub Enterprise APIs, enabling file operations, repository management, search functionality, and more.

基本信息

分类

版本控制

许可证

MIT

运行时

node

传输方式

stdio

发布者

piyushgIITian

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

40

`owner` (string): Repository owner (username or organization)

File content and commit details

`owner` (string): Repository owner

Updated branch reference

`query` (string): Search query

Repository search results

`name` (string): Repository name

Created repository details

`owner` (string): Repository owner

File/directory contents

`owner` (string): Repository owner

Created issue details

`owner` (string): Repository owner

Created pull request details

`owner` (string): Repository owner

Forked repository details

`owner` (string): Repository owner

Created branch reference

`owner` (string): Repository owner

List of commits

`owner` (string): Repository owner

Github Issue object & details

`owner` (string): Repository owner

Pull request details including diff and review status

`owner` (string): Repository owner

Array of pull request details

`owner` (string): Repository owner

Created review details

`owner` (string): Repository owner

Merge result details

`owner` (string): Repository owner

Array of changed files with patch and status details

`owner` (string): Repository owner

Combined status check results and individual check details

`owner` (string): Repository owner

Success message when branch is updated

`owner` (string): Repository owner

Array of pull request review comments with details like the comment text, author, and location in the diff

`owner` (string): Repository owner

Array of pull request reviews with details like the review state (APPROVED, CHANGES_REQUESTED, etc.), reviewer, and review body

概览

What is GitHub Enterprise MCP Server?

The GitHub Enterprise MCP Server is a Model Context Protocol server that wraps the GitHub API, enabling file operations, repository management, search functionality, and more. It is designed for developers using Cline (VS Code extension or Claude Desktop) who want to perform GitHub operations through natural language commands.

How to use GitHub Enterprise MCP Server?

Clone the repository, run npm install and npm run build, then configure the MCP settings in Cline or Claude Desktop by adding a mcpServers entry with the path to dist/index.js, a GitHub Personal Access Token, and the GitHub API URL (for GitHub.com use https://api.github.com; for Enterprise use your instance URL). Restart Cline to apply changes. After setup, ask Cline to perform GitHub operations like searching repositories, creating files, or managing issues.

Key features of GitHub Enterprise MCP Server

  • Automatic branch creation when creating or updating files
  • Comprehensive error handling with clear messages
  • Git history preservation without force pushing
  • Batch operations for single-file and multi-file pushes
  • Advanced search for code, issues/PRs, and users

Use cases of GitHub Enterprise MCP Server

  • Create and update files in repositories directly from chat
  • Search for repositories, code, issues, and users
  • Manage issues: create, update, list, and comment
  • Create pull requests and fork repositories
  • Create new branches and repositories

FAQ from GitHub Enterprise MCP Server

What are the prerequisites for using the server?

Node.js must be installed, you need a GitHub Personal Access Token with appropriate permissions (e.g., repo scope for private repos), and Cline must be installed.

How do I configure the server for GitHub Enterprise vs github.com?

Set the GITHUB_API_URL environment variable to https://api.github.com for GitHub.com, or to your Enterprise instance URL (e.g., https://github.yourdomain.com/api/v3).

What environment variables are required?

You must set GITHUB_PERSONAL_ACCESS_TOKEN and GITHUB_API_URL. Optionally, GITHUB_API_VERSION can be set to specify the GitHub API version (e.g., 2022-11-28).

How does the server authenticate with GitHub?

Authentication is done via a GitHub Personal Access Token passed as the GITHUB_PERSONAL_ACCESS_TOKEN environment variable.

What transport does the server use?

The server runs as a child process via the node command with stdio transport, configured in the MCP settings.

评论

版本控制 分类下的更多 MCP 服务器