GitHub MCP Server (@sumirati/mcp-github)
A modern, 2026 AI-native Model Context Protocol (MCP) server for GitHub REST API, engineered for autonomous AI agents and developer workflows.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y @sumirati/[email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
GITHUB_PERSONAL_ACCESS_TOKEN=<secret> GITHUB_API_URL=<value> GITHUB_READ_ONLY=<value> GITHUB_EXPOSE_ALL_TOOLS=<value> MCP_OUTPUT_FORMAT=<value> claude mcp add io.github.sumirati-mcp-github -- npx -y @sumirati/mcp-github@2.2.0รันในเทอร์มินัล
{ "mcpServers": { "io.github.sumirati-mcp-github": { "command": "npx", "args": [ "-y", "@sumirati/[email protected]" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<secret>", "GITHUB_API_URL": "<value>", "GITHUB_READ_ONLY": "<value>", "GITHUB_EXPOSE_ALL_TOOLS": "<value>", "MCP_OUTPUT_FORMAT": "<value>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดIn early MCP servers, exposing 50–100+ eager tool definitions flooded every LLM turn with thousands of redundant schema tokens ("System Prompt Tax") and degraded reasoning coherence.
@sumirati/mcp-github solves this with a 5-Tool Hybrid Surface:
get_file_contents, get_repository, get_commit) remain eager tools for instant zero-hop execution.github_find_actions $\rightarrow$ github_execute_action), delivering 91%–99% token savings with default high-density Markdown tables and summaries (format: "markdown" | "json").list_pull_requests), the server dynamically executes it with full input validation and projection.LLM Prompt Context (5-Tool Hybrid Surface):
├── 1. github_find_actions(query, [domain], [format]) [Meta Discovery]
├── 2. github_execute_action(action, params, [format]) [Meta Dynamic Execution]
├── 3. get_file_contents(owner, repo, path) [Eager Daily Driver #1]
├── 4. get_repository(owner, repo) [Eager Daily Driver #2]
└── 5. get_commit(owner, repo, ref) [Eager Daily Driver #3]
Under the hood (Dynamic Registry):
└── 83 Curated Actions across 13 Domains (grounded in GitHub REST API 2022-11-28)
repositories, 12 actions): Full repository lifecycle, branch management, branch protection rules (get_branch_protection), file reading (auto Base64-decoded, symbol outlines, line slicing), single-file commits, and forks.commits, 6 actions): Commit history, token-capped commit diffs (get_commit), atomic multi-file commits via Git Trees API (create_commit, push_files), and commit status checks.pull-requests, 11 actions): PR lifecycle (create, update, merge), review comments, inline diff reviews, and unified diff inspection with lockfile filtering.issues, 8 actions): Issue tracking, upstream indexed filtering, conversation comments, and label management.milestones, 4 actions): Milestone creation, progress tracking, and deadline management.collaborators, 4 actions): Audit and manage repository collaborators and permission levels.variables, 6 actions): Manage repository Actions configuration variables and inspect secret metadata.gists, 5 actions): Full gist lifecycle for sharing multi-file code snippets and configurations.actions, 10 actions): Workflow inspection, workflow runs, job step breakdown, build artifacts (list_workflow_run_artifacts, get_workflow_run_artifact), smart failure log extraction (get_job_logs), run cancel/rerun, and manual workflow dispatch.releases, 5 actions): Release publishing, lightweight/annotated tag creation, and release asset inspection.user, 7 actions): Authenticated user identity, organization inspection, team creation (create_team), accessible repositories, and API health/rate-limit diagnostics (system_health_check).webhooks, 4 actions): Audit repository event webhooks and manage repository topic tags.security, 1 action): Audit Dependabot vulnerability alerts by state and severity.npx (No installation needed)npx -y @sumirati/mcp-github
npm install -g @sumirati/mcp-github
mcp-github
git clone https://github.com/sumirati/mcp-github.git
cd mcp-github
npm install
npm test
npm start
Add to your MCP configuration file (mcp_config.json or claude_desktop_config.json):
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@sumirati/mcp-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-github-token>",
"GITHUB_READ_ONLY": "false"
}
}
}
}
{
"mcpServers": {
"github": {
"command": "node",
"args": ["/path/to/mcp-github/index.js"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-github-token>",
"GITHUB_READ_ONLY": "false"
}
}
}
}
All 83 actions feature strict Zod input validation and 2-tier output projection:
repositories — 12 actions)commits — 6 actions)pull-requests — 11 actions)issues — 8 actions)milestones — 4 actions)collaborators — 4 actions)variables — 6 actions)gists — 5 actions)actions — 10 actions)releases — 5 actions)user — 7 actions)webhooks — 4 actions)security — 1 action)test/benchmark-test.js)Grounded strictly in official GitHub REST API (2022-11-28) response schemas (test/fixtures/github-api-v3-fixtures.js) and verified on every npm test run via node test/benchmark-test.js:
ListTools schema footprint from 83 full tool schemas (23,112 tokens / 92,447 B) down to the 5-tool hybrid surface (1,125 tokens / 4,498 B).projectOutput): Automatically strips GitHub REST API v3 hypermedia template URLs (*_url RFC 6570 templates), avatar_url, gravatar_id, node_id, site_admin, _links, internal api.github.com self-links, and null/"" fields.package-lock.json, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock, *.min.js) via ignore_lockfiles: true by default. Pass ignore_lockfiles: false to inspect full lockfile diffs.per_page: 10 (max: 100).github_find_actions), execution (github_execute_action), and all 3 eager tools default to format: "markdown".max_lines) and commit (max_diff_lines) diffs default to 400 lines.tail_lines, default: 100) with ANSI escape sequence stripping.state, labels, assignee, creator, mentioned, milestone, since)maxDepth = 32), RFC 6570 hypermedia URL stripping, and empty collection preservationcreate_team, get_organization)get_job_logs (strip_ansi, smart_failure)get_file_contents (outline_only, start_line, end_line)create_commit, push_files) supporting file creation, updates, and deletions via GitHub Git Trees APIget_mergeability)_summary headers to facilitate multi-turn history pruning in LiteLLM / Eigent agent orchestrationThis project incorporates architectural concepts, schemas, and patterns from:
@modelcontextprotocol/sdk (MIT License) — Copyright (c) Anthropic, PBC.zod (MIT License) — Colin McDonnell.jmrplens/gitlab-mcp-server — Dynamic action discovery and meta-dispatcher pattern concepts.@sumirati/mcp-gitlab — Sibling project architecture, 3-tier read-only mode, and token projection standards.See NOTICE for complete third-party attribution details.
This project is licensed under the MIT License — Copyright (c) 2026 [email protected].
Developer-ready GitHub MCP server with 5-tool hybrid architecture and dynamic discovery.
{ "mcpServers": { "io.github.sumirati-mcp-github": { "command": "npx", "args": [ "-y", "@sumirati/[email protected]" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<secret>", "GITHUB_API_URL": "<value>", "GITHUB_READ_ONLY": "<value>", "GITHUB_EXPOSE_ALL_TOOLS": "<value>", "MCP_OUTPUT_FORMAT": "<value>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: GITHUB_PERSONAL_ACCESS_TOKEN, GITHUB_API_URL, GITHUB_READ_ONLY, GITHUB_EXPOSE_ALL_TOOLS, MCP_OUTPUT_FORMAT
GitHub MCP Server ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-10 Developer-ready GitHub MCP server with 5-tool hybrid architecture and dynamic discovery.