mcp-gitpro

mcp-gitpro

A context-efficient GitHub MCP server designed for AI agents to manage repositories, issues, pull requests, and actions directly via cloud workflows. It focuses on a compact tool surface to minimize context waste while providing comprehensive read and write coverage without requiring a local Git CLI.

Category
访问服务器

README

mcp-gitpro

🇬🇧 English | 🇹🇷 Turkce

✨ A production-ready, stdio-first GitHub MCP server built on @vaur94/mcpbase.

mcp-gitpro gives AI agents a compact GitHub tool surface without drifting into local git, filesystem mutation, shell execution, or browser automation. The goal is simple: high-value GitHub workflows, low context waste, and clear safety boundaries.

✨ Why mcp-gitpro

  • GitHub-focused tool surface for repositories, issues, pull requests, search, and Actions
  • Read-only mode, toolset allowlists, and exact-tool allowlists to reduce token waste
  • Strict TypeScript, stdio-first runtime, protocol tests, and release automation
  • Bilingual documentation with clearly separated English and Turkish doc trees
  • Built on the published @vaur94/mcpbase package instead of a local fork

📦 Installation

Requirements

  • Node.js >=22.14.0
  • npm >=10
  • A GitHub token available as MCP_GITPRO_GITHUB_TOKEN

Local install script

bash ./scripts/install-local.sh

The script installs dependencies, builds the server, and runs the test suite.

Manual setup

npm install
npm run build
npm test

Use mcp-gitpro.config.json for repo defaults and behavior flags, and keep secrets out of source control.

⚡ Quick Start

Minimal local launch

export MCP_GITPRO_GITHUB_TOKEN=YOUR_GITHUB_TOKEN
node ./dist/index.js --config ./mcp-gitpro.config.json

Quality gate before connecting a host

npm run ci:check

Common stdio values across hosts

  • launcher: node
  • entrypoint: /absolute/path/to/mcp-gitpro/dist/index.js
  • config flag: --config /absolute/path/to/mcp-gitpro/mcp-gitpro.config.json
  • token: MCP_GITPRO_GITHUB_TOKEN=...
  • protocol rule: stdout is reserved for MCP; logs belong on stderr

🔌 Integration Guides

Host Integration model Guide
OpenCode opencode.json local MCP entry with command array OpenCode
Codex CLI / IDE config.toml with [mcp_servers.<name>] Codex
VS Code workspace MCP JSON with command, args, and env VS Code
Antigravity mcpServers JSON entry with absolute executable paths Antigravity

🧰 Tool Surface

Toolsets

  • context
  • repos
  • search
  • issues
  • pull_requests
  • actions

Tools

  • github_context
  • repository_read
  • repository_compare
  • search_github
  • issue_read
  • issue_write
  • pull_request_read
  • pull_request_write
  • actions_read
  • actions_write

⚙️ Configuration

Configuration precedence:

  1. built-in defaults
  2. mcp-gitpro.config.json
  3. MCP_GITPRO_* environment variables
  4. CLI flags handled by mcpbase

Important fields:

  • auth.githubToken
  • defaults.owner
  • defaults.repo
  • defaults.apiBaseUrl
  • context.readOnly
  • context.toolsets
  • context.tools
  • output.pageSize
  • output.maxFileLines
  • output.maxDiffLines
  • output.maxBodyChars

🏗️ Project Shape

mcp-gitpro/
|- src/
|  |- config/
|  |- core/
|  |- github/
|  |- shared/
|  |- tools/
|- tests/
|  |- unit/
|  |- protocol/
|- docs/
|  |- en/
|  |- tr/
|- scripts/

🔗 mcpbase Integration

  • mcp-gitpro depends on the published @vaur94/mcpbase package from npm
  • startup is wired with ApplicationRuntime, createMcpServer, and startStdioServer
  • config loading extends mcpbase through createRuntimeConfigSchema and loadConfig
  • execution context extends BaseToolExecutionContext with GitHubClient
  • streamable HTTP and telemetry remain intentionally unused in this GitHub-specific stdio product

📚 Documentation

🧪 Quality Gates

npm run build
npm run typecheck
npm run test
npm run test:coverage
npm run test:protocol
npm run ci:check

🛡️ Scope and Non-goals

This repository intentionally excludes:

  • local git CLI workflows
  • filesystem editing or patch application
  • shell execution
  • browser automation
  • HTTP transport in v1

Security controls include token-based auth, read-only mode, tool allowlists, output caps, and out-of-band Actions log delivery.

📄 License

MIT - see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选