@sumirati/mcp-github
Summary: @sumirati/mcp-github is an MCP server that gives AI agents full GitHub REST API (2022-11-28) access through a 5-tool hybrid surface backed by an on-demand catalog of 83 actions across 13 domains.
Discover actions —
github_find_actionssearches the 83-action catalog by keyword or domain filter, returning names, domains, mutating flags, and parameter signatures.Execute any action —
github_execute_actionruns any catalog action (e.g.create_pull_request,list_issues,trigger_workflow) with validated params, token-projected Markdown/JSON output, and read-only mode blocking mutations.Read files —
get_file_contentsfetches Base64-decoded file contents, symbol outlines (outline_only), line ranges, or directory listings at any ref without cloning.Inspect repositories —
get_repositoryreturns metadata, visibility, default branch, HTML URL, stars, forks, and open issue counts.Review commits —
get_commitreturns commit metadata, author info, and token-capped unified diffs (with lockfile collapsing).Manage repositories & branches — search/create repos, create/update/delete files, list/get/create/delete branches, branch protection rules, and fork repositories.
Handle commits & statuses — list commits, atomic multi-file commits via Git Trees API, and read/write commit status checks.
Work with pull requests — full PR lifecycle (create, update, merge), diffs, inline review comments, replies, and formal reviews.
Track issues & labels — list/get/create/update issues, comments, and repository labels.
Manage milestones, collaborators, variables, secrets — milestone tracking, collaborator permissions, Actions variables, and secret metadata.
Use gists, releases, tags — full gist lifecycle, release publishing, and lightweight/annotated tag creation.
Observe CI/CD — list workflows, runs, jobs, and artifacts; extract smart failure logs; trigger, cancel, or rerun workflows.
Access user/org/team data — authenticated user, public profiles, organizations, team creation, accessible repos, and API health/rate-limit diagnostics.
Audit webhooks, topics, and security — repository topics, webhook configuration, and Dependabot vulnerability alerts.
Save tokens by default — Markdown output, conservative pagination (
per_page: 10), diff truncation at 400 lines, log tailing, and recursive hypermedia-field stripping yield 91–99% reductions.
Provides tools for interacting with the GitHub REST API, enabling AI agents to manage repositories, files, branches, pull requests, issues, labels, comments, releases, and tags, as well as retrieve user and organization information.
Provides tools for interacting with GitHub Actions, enabling AI agents to list and inspect CI/CD workflows, workflow runs, and jobs, fetch job logs, and trigger, cancel, or rerun workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@sumirati/mcp-github list open pull requests in sumirati/mcp-github"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
What makes v2 Unique: The 2026 5-Tool Hybrid Standard
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:
Glama TDQS Coherence Tier A (5/5): By exposing exactly 5 tools to the client, the server sits in the ideal 3–15 tool coherence sweet spot.
Ultra-Lean System Prompt Tax: Drops schema overhead from 23,112 tokens (92,447 B) down to 1,125 tokens (4,498 B) (95.1% reduction), preserving context windows and maximizing LLM prompt-cache hits.
Zero-Hop Hourly Drivers: The 3 operations developers and agents use constantly (
get_file_contents,get_repository,get_commit) remain eager tools for instant zero-hop execution.100% Platform Access on Demand: The entire platform surface of 83 actions across 13 domains is accessible on-demand via dynamic action discovery (
github_find_actions$\rightarrow$github_execute_action), delivering 91%–99% token savings with default high-density Markdown tables and summaries (format: "markdown" | "json").Resilient Fallback: If an agent directly invokes any catalog action name (e.g.
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)Related MCP server: github-mcp-server
Core Capabilities Across 13 Domains
Repositories & Branch Governance (
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 & Commit Statuses (
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 & Code Reviews (
pull-requests, 11 actions): PR lifecycle (create,update,merge), review comments, inline diff reviews, and unified diff inspection with lockfile filtering.Issues & Labels (
issues, 8 actions): Issue tracking, upstream indexed filtering, conversation comments, and label management.Project Milestones (
milestones, 4 actions): Milestone creation, progress tracking, and deadline management.Collaborators & Permissions (
collaborators, 4 actions): Audit and manage repository collaborators and permission levels.Actions Variables & Secrets (
variables, 6 actions): Manage repository Actions configuration variables and inspect secret metadata.Gists & Code Snippets (
gists, 5 actions): Full gist lifecycle for sharing multi-file code snippets and configurations.GitHub Actions & CI/CD (
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 & Git Tags (
releases, 5 actions): Release publishing, lightweight/annotated tag creation, and release asset inspection.User, Organizations, Teams & Diagnostics (
user, 7 actions): Authenticated user identity, organization inspection, team creation (create_team), accessible repositories, and API health/rate-limit diagnostics (system_health_check).Webhooks & Repository Topics (
webhooks, 4 actions): Audit repository event webhooks and manage repository topic tags.Security & Dependabot (
security, 1 action): Audit Dependabot vulnerability alerts by state and severity.
Quickstart & Installation
Option 1: Run with npx (No installation needed)
npx -y @sumirati/mcp-githubOption 2: Install Globally
npm install -g @sumirati/mcp-github
mcp-githubOption 3: Local Clone
git clone https://github.com/sumirati/mcp-github.git
cd mcp-github
npm install
npm test
npm startEnvironment Configuration
Variable | Required | Default | Description |
| Yes | — | GitHub Personal Access Token (classic or fine-grained) |
| No | — | Alternative token variable name |
| No |
| Base API URL (or GitHub Enterprise Server) |
| No |
| Enable 3-tier read-only mode ( |
| No |
| Set to |
| No |
| Default output format for tool execution ( |
Client Configuration
Google Antigravity / Claude Desktop / Cursor
Add to your MCP configuration file (mcp_config.json or claude_desktop_config.json):
Using npm / npx (Recommended):
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@sumirati/mcp-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-github-token>",
"GITHUB_READ_ONLY": "false"
}
}
}
}Using local clone:
{
"mcpServers": {
"github": {
"command": "node",
"args": ["/path/to/mcp-github/index.js"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<your-github-token>",
"GITHUB_READ_ONLY": "false"
}
}
}
}Complete Action Catalog Reference (83 Actions)
All 83 actions feature strict Zod input validation and 2-tier output projection:
1. The 5 Client-Exposed Tools (Hybrid Mode)
Tool | Type | Description |
| Meta | Search and discover available GitHub operations across all 13 domains with compact parameter signatures |
| Meta | Execute any discovered GitHub platform action with input validation and token-optimized projection |
| Eager | Read raw file contents (auto Base64 decoded), symbol outlines, line ranges, or directory listings at any ref |
| Eager | Retrieve repository metadata, visibility, description, default branch, HTML URL, and counts |
| Eager | Inspect Git commit details, author info, and token-capped file diffs |
2. Repositories & Branches (repositories — 12 actions)
Action | Description | Mutating? |
| Search for repositories across GitHub or within an organization using query qualifiers (e.g. 'org:myorg language:typescript') with capped pagination (max 100). If owner and repository name are known, prefer 'get_repository' for exact O(1) lookup. | No |
| Get repository metadata, visibility, description, default branch, clone URL, and statistics for an exact owner/repo. Use when verifying repository settings or checking default branch name. | No |
| Create a new GitHub repository under the authenticated user account or a specified organization. Requires write permissions and GITHUB_READ_ONLY=false. Auto-initializes with a default README commit unless auto_init is false. | Yes |
| Read current file contents, extract symbol outlines ('outline_only: true'), slice line ranges, or list directory entries at a specified git ref. Automatically decodes Base64 into UTF-8. Use 'outline_only: true' first to inspect structure in ~50-100 tokens, then request specific line ranges. | No |
| Create a new file or overwrite an existing file on a branch in a single atomic commit. If updating, provide the file's current blob SHA in 'sha' (or leave empty to auto-resolve). Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Delete an existing file from a branch in a git commit. Requires the current blob SHA to guard against concurrent overwrites. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| List branches in a repository with protection status and head commit SHAs. Supports upstream filtering by protected status and capped pagination (max 100). If branch name is already known, prefer 'get_branch'. | No |
| Get detailed status of a specific branch, including branch protection rules and latest commit details. Use to verify branch existence or protection policies before merging or deleting. | No |
| Retrieve comprehensive branch protection rules for a specific Git branch, including required status checks, required reviews, admin enforcement, and force-push / deletion restrictions. | No |
| Create a new git branch pointing to a commit SHA or branched from an existing branch (defaults to 'main'). Use before committing changes or opening a pull request. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Delete a branch from a repository. Protected: explicitly rejects requests to delete the default branch (e.g. 'main') to prevent repository breakage. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Fork a repository into the authenticated user's account or a specified organization namespace. Use when contributing to upstream projects where direct push access is restricted. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
3. Git Commits & Statuses (commits — 6 actions)
Action | Description | Mutating? |
| List repository commit history chronologically with upstream filtering (sha, path, author, since, until) and capped pagination (max 100). For viewing actual line-by-line diffs of a commit, use get_commit instead. | No |
| Get detailed commit metadata, file modification statistics, and unified diffs for a specific commit SHA or ref. Use when reviewing code changes in a commit or debugging regressions. Diffs are token-budget optimized and truncated at max_diff_lines (default: 400 lines). | No |
| Create an atomic Git commit with multiple created, updated, or deleted files using the GitHub Git Trees API. Use when refactoring, applying multi-file code changes, or updating code and docs together. Avoids multiple individual single-file commits and does not require local git cloning. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Alias for 'create_commit': atomically commit additions, modifications, or deletions to multiple files in a single Git commit via the GitHub Git Database API. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Get the combined status check state (pending, success, failure) and individual check runs for a commit SHA or branch ref. | No |
| Set or update a commit status check (pending, success, failure, error) on a specific commit SHA. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
4. Pull Requests & Code Reviews (pull-requests — 11 actions)
Action | Description | Mutating? |
| List and filter pull requests with upstream indexed parameters (state, head, base) and capped pagination (max 100). To inspect a known PR, prefer 'get_pull_request' with pull_number; for diffs, use get_pull_request_diff. | No |
| Get detailed status of a specific pull request including mergeability (clean, dirty, unstable), head/base branch refs, author, and assignees. Use to check if a PR is ready to merge or blocked. Do NOT use to read code changes; use get_pull_request_diff instead. | No |
| Retrieve unified git diff for a pull request to review code modifications. Use this tool when analyzing code changes, reviewing patches, or preparing inline comments. Do NOT use for checking PR mergeability or metadata (use get_pull_request instead). Diffs are token-optimized and automatically truncated at max_lines (default: 400 lines) to prevent LLM context overflows. | No |
| Create a new pull request from a head branch into a base branch. Requires write permissions and GITHUB_READ_ONLY=false. The head branch must already exist and have at least one commit difference from the base branch. | Yes |
| Update an existing pull request's title, body, open/closed state, or base branch. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Merge a pull request into its base branch using merge, squash, or rebase method. Requires write/admin permissions and GITHUB_READ_ONLY=false. Ensure the PR mergeable state is clean before merging. | Yes |
| List inline code review comments anchored to specific diff lines of a pull request. Use when inspecting line-by-line review feedback. For overall PR review approvals or change requests, use list_pull_request_reviews instead. | No |
| Post an inline review comment anchored to a specific file and line number in the pull request. Requires commit_id, path, and line number in the file. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Reply to an existing pull request review comment thread. Requires comment_id of the parent comment. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| List formal code reviews (approvals, change requests, comment summaries) submitted on a pull request. Use to check reviewer decisions and approval gates before merging. | No |
| Submit a formal code review on a pull request with an approval decision (APPROVE, REQUEST_CHANGES, or COMMENT) and optional summary body or inline comments. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
5. Issues & Labels (issues — 8 actions)
Action | Description | Mutating? |
| Search and filter repository issue tickets with upstream indexed parameters (state, labels, assignee, creator, mentioned, milestone, since) and capped pagination (max 100). Filters out pull requests. If the issue number is already known, prefer 'get_issue' for exact O(1) lookup. | No |
| Get full details of a specific issue ticket, including markdown body, assignees, milestone, state reason, and comment count. Use when investigating a bug report or reading issue specifications. | No |
| Create a new issue ticket in a repository with optional labels, assignees, and milestone. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Update an existing issue's title, body, state ('open'/'closed'), state reason ('completed'/'not_planned'), labels, assignees, or milestone. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| List discussion comments on an issue ticket chronologically. Use to read conversation history, debugging updates, or user feedback on an issue. | No |
| Add a markdown comment to an issue ticket. Use to reply to discussions, log progress, or provide resolution details. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| List all labels configured in a repository with their names, descriptions, and hex color codes. Use to discover available tags before creating or updating issues. | No |
| Create a new label in a repository with a name, description, and 6-character hex color code. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
6. Project Milestones (milestones — 4 actions)
Action | Description | Mutating? |
| List project milestones in a repository with open/closed issue counts and due dates. Use to monitor release roadmaps or locate milestone numbers before associating them with issues or PRs. | No |
| Get detailed status of a specific milestone, including title, open/closed issues count, creation date, and deadline. Use when reviewing milestone progress or inspecting milestone deadlines. | No |
| Create a new project milestone with a title, description, and optional due date. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Update an existing milestone's title, description, state ('open'/'closed'), or due date. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
7. Collaborators & Roles (collaborators — 4 actions)
Action | Description | Mutating? |
| List collaborators who have access to a repository along with their assigned roles and permissions. Use to audit team access or check user memberships. | No |
| Check a specific user's exact permission level ('admin', 'maintain', 'write', 'triage', 'read', or 'none') on a repository. Use to verify authorization before attempting privileged operations. | No |
| Add or invite a GitHub user to collaborate on a repository with a specified permission level. If the user is not an organization member, this sends a collaboration invitation. Requires admin permissions and GITHUB_READ_ONLY=false. | Yes |
| Remove a collaborator from a repository, revoking their direct access. Requires admin permissions and GITHUB_READ_ONLY=false. | Yes |
8. Actions Variables & Secrets (variables — 6 actions)
Action | Description | Mutating? |
| List non-sensitive GitHub Actions configuration variables defined on a repository with their values and timestamps. Use for inspecting build environment parameters. | No |
| Get the plain text value and last updated timestamp of a specific GitHub Actions repository variable by name. | No |
| Create a non-sensitive configuration variable for GitHub Actions workflows. Requires write/admin permissions and GITHUB_READ_ONLY=false. For sensitive credentials, use repository secrets instead. | Yes |
| Update the value of an existing non-sensitive GitHub Actions configuration variable. Requires write/admin permissions and GITHUB_READ_ONLY=false. | Yes |
| Delete a non-sensitive configuration variable from GitHub Actions. Requires write/admin permissions and GITHUB_READ_ONLY=false. | Yes |
| List GitHub Actions repository secret names and timestamps. Behavioral safety: secret values are permanently masked by GitHub and never returned in plaintext. | No |
9. Gists & Code Snippets (gists — 5 actions)
Action | Description | Mutating? |
| List code snippets and gists owned by the authenticated user with file summaries. Use to locate code snippet IDs before reading or editing. | No |
| Get full source code contents, files, and description of a specific GitHub gist by ID. Use to inspect standalone code snippets or configuration templates. | No |
| Create a new public or secret GitHub gist with one or more files. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Update an existing gist's description or modify/rename/delete individual files within the gist. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Permanently delete a gist by its identifier. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
10. GitHub Actions & CI/CD Observability (actions — 10 actions)
Action | Description | Mutating? |
| List GitHub Actions CI/CD workflow files configured in a repository (.github/workflows). Use to discover workflow names and IDs before triggering or inspecting runs. | No |
| List artifacts produced by a specific GitHub Actions workflow run, including file size, download archive URLs, and expiration timestamps. Use to discover generated build outputs, test logs, or release binaries. | No |
| Retrieve metadata and download archive URL for a specific GitHub Actions build artifact by its numeric artifact ID. Use when downloading build deliverables or inspecting individual artifacts. | No |
| List workflow execution runs with status, conclusion ('success', 'failure'), triggering event, and commit SHA. Use to check CI/CD pipeline health or find run IDs. | No |
| Get detailed status, timing, and conclusion for a specific workflow execution run. Use when monitoring CI pipeline completion. | No |
| List all individual jobs and step breakdown within a workflow run. Use to identify which specific job or step failed during a build. | No |
| Fetch plain text execution logs for an Actions job with smart failure extraction and ANSI stripping. Behavioral safety: scans for errors/panics to extract failure blocks and trims massive logs to preserve LLM token context. | No |
| Dispatch a workflow run on a branch or tag via workflow_dispatch event with custom inputs. Requires write permissions and GITHUB_READ_ONLY=false. The target workflow file must define a workflow_dispatch trigger. | Yes |
| Cancel a queued or currently executing GitHub Actions workflow run. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| Re-execute all jobs in a completed or failed GitHub Actions workflow run. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
11. Releases & Git Tags (releases — 5 actions)
Action | Description | Mutating? |
| List published and draft releases in a repository with release titles, asset download counts, and published dates. Use to check release history or download URLs. | No |
| Get full details of a specific release by tag name or numeric release ID, including changelog body and asset links. | No |
| Publish a formal GitHub release for a tag, with title, markdown release notes/changelog, and pre-release/draft flags. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| List git tags in a repository with tag names and commit SHAs. Use to inspect available version tags before publishing a release. | No |
| Create a git tag (lightweight reference or annotated tag object when message is provided) pointing to a specific commit SHA. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
12. User, Organizations & Teams (user — 7 actions)
Action | Description | Mutating? |
| Perform end-to-end connectivity, latency, rate limit quota, and permission diagnostics against the GitHub API. Verifies token validity, authenticated account details, remaining rate limits, and active read-only policy. | No |
| Retrieve profile metadata (login, name, email, public_repos, followers) for the currently authenticated GitHub token. Use to verify token identity and scope. | No |
| Retrieve public profile information (login, name, company, bio, public_repos count) for any specified GitHub user by username. | No |
| List GitHub organizations that the authenticated user belongs to. Use to discover org namespaces for creating or querying repositories. | No |
| Retrieve comprehensive details for a specific GitHub organization (name, description, email, blog, public/private repos). Use when verifying organization access or inspecting org settings. | No |
| Create a new team in a GitHub organization. Supports parent_team_id to establish nested child teams. Requires organization owner/admin privileges and GITHUB_READ_ONLY=false. | Yes |
| List repositories accessible to the authenticated user (owned, collaborated on, or member of). Use to discover available repositories across accounts. | No |
13. Webhooks & Topics (webhooks — 4 actions)
Action | Description | Mutating? |
| Get all topic tags associated with a GitHub repository. Use to inspect project categories and discoverability keywords. | No |
| Replace all topic tags on a repository with a new array of topic strings. Requires write permissions and GITHUB_READ_ONLY=false. | Yes |
| List configured event webhooks on a repository with target URLs, active status, and subscribed event triggers. | No |
| Get detailed configuration of a specific repository webhook by ID, including delivery URL and subscribed events. | No |
14. Security & Dependabot (security — 1 action)
Action | Description | Mutating? |
| List Dependabot vulnerability alerts for a repository, including affected package, severity (critical, high, medium, low), and patch advisory. | No |
Benchmarks: Reproducible Token Economy Proof (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:
Operation | Raw GitHub API ( | Projected JSON ( | Default Markdown ( | Verified Reduction |
System Prompt Tax (83 tools vs 5 hybrid tools) | 23,112 tokens (92,447 B) | — | 1,125 tokens (4,498 B) | 95.1% savings |
| 1,321 tokens (5,283 B) | 104 tokens (414 B) | 85 tokens (340 B) | 93.6% savings |
| 15,375 tokens (61,499 B) | 1,567 tokens (6,267 B) | 313 tokens (1,250 B) | 98.0% savings |
| 46,536 tokens (186,141 B) | 1,586 tokens (6,341 B) | 330 tokens (1,317 B) | 99.3% savings |
| 14,957 tokens (59,826 B) | 839 tokens (3,356 B) | 212 tokens (846 B) | 98.6% savings |
| 3,589 tokens (14,355 B) | 331 tokens (1,323 B) | 314 tokens (1,255 B) | 91.3% savings |
How Token Compression Works
System Prompt Tax Reduction (95.1% savings): Shrinks MCP
ListToolsschema 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).Recursive Output Projection Filter (
projectOutput): Automatically strips GitHub REST API v3 hypermedia template URLs (*_urlRFC 6570 templates),avatar_url,gravatar_id,node_id,site_admin,_links, internalapi.github.comself-links, andnull/""fields.Smart Diff & Lockfile Truncation: Commit and PR diffs automatically collapse dependency lockfiles (
package-lock.json,pnpm-lock.yaml,yarn.lock,go.sum,Cargo.lock,*.min.js) viaignore_lockfiles: trueby default. Passignore_lockfiles: falseto inspect full lockfile diffs.Conservative Default Pagination: All list actions default to
per_page: 10(max: 100).Default High-Density Markdown Format: Discovery (
github_find_actions), execution (github_execute_action), and all 3 eager tools default toformat: "markdown".Unified Diff Truncation: PR (
max_lines) and commit (max_diff_lines) diffs default to 400 lines.Safe Log Tailing: CI workflow job logs extract the failure block and teardown tail (
tail_lines, default: 100) with ANSI escape sequence stripping.
Roadmap
Completed in v2.1
Upstream indexed filtering & strict pagination caps (
state,labels,assignee,creator,mentioned,milestone,since)Client error resilience (Secondary rate limit / abuse detection, 403/404 scope diagnostics, empty-body 201/202 handling)
Hardened output projection with recursion depth guard (
maxDepth = 32), RFC 6570 hypermedia URL stripping, and empty collection preservationNested child team & organization management (
create_team,get_organization)Smart CI/CD failure log extraction & ANSI sequence stripping in
get_job_logs(strip_ansi,smart_failure)Outline-first code symbol extraction & line range slicing in
get_file_contents(outline_only,start_line,end_line)Atomic multi-file commits (
create_commit,push_files) supporting file creation, updates, and deletions via GitHub Git Trees APIPre-flight mergeability & conflict verification (
get_mergeability)Token scope self-auditing & permission pre-flight
Future Horizons (v2.x)
Standardized collection
_summaryheaders to facilitate multi-turn history pruning in LiteLLM / Eigent agent orchestrationRemote Transports: Streamable SSE and HTTP remote server modes
Scoped GraphQL query engine for relational deep inspections
DevSecOps code scanning & secret scanning alert queries
Scoped & rate-guarded code search within project repositories
Acknowledgements & Lineage
This project incorporates architectural concepts, schemas, and patterns from:
@modelcontextprotocol/sdk(MIT License) — Copyright (c) Anthropic, PBC.zod(MIT License) — Colin McDonnell.GitHub REST API Specifications — GitHub, Inc.
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.
License
This project is licensed under the MIT License — Copyright (c) 2026 sumirati@buggycode.net.
Available Tools
5 toolsget_commitGet CommitARead-onlyIdempotent
Get detailed commit metadata, author information, message, and unified git diffs for a specific commit SHA or reference. Eager daily driver tool for reviewing code modifications, patches, or investigating regressions. Output diffs are token-optimized and automatically truncated to max_diff_lines (default: 400 lines).
Inputs: ref (required), repo (required), owner (required), format (required), +3 more.
get_file_contentsGet File ContentsARead-onlyIdempotent
Read current file contents, extract symbol outlines, slice line ranges, or list directory entries from a repository at a specified git ref without cloning. Automatically decodes Base64 file contents into plain text UTF-8. Eager daily driver tool for inspecting source code, configuration files, and directory layouts.
Inputs: path (required), repo (required), owner (required), outline_only (required), +3 more.
get_repositoryGet RepositoryARead-onlyIdempotent
Get comprehensive repository metadata, visibility, description, default branch, HTML URL, star count, fork count, and open issues count for an owner/repo. Eager daily driver tool for verifying repository configuration and existence.
Inputs: repo (required), owner (required), format (required).
github_execute_actionExecute GitHub ActionA
Execute any supported GitHub action from the 83-action catalog by action name with parameters. Requires the exact action name (discovered via github_find_actions) and its corresponding argument dictionary. Output is automatically compressed with strict token projection filters (stripping hypermedia URL templates, avatar links, empty fields, node_ids) and formatted as compact Markdown by default. Mutating actions are blocked when running in read-only mode (GITHUB_READ_ONLY=true).
Inputs: action (required), format (required), params, parameters.
github_find_actionsFind GitHub ActionsARead-onlyIdempotent
Search and discover available GitHub actions in the 83-action catalog by keyword query or domain filter. Use this discovery tool first whenever you need to perform an action outside the 3 eager daily drivers (e.g. managing PRs, issues, releases, workflows, collaborators, webhooks, variables, security alerts). Returns matching action names, domain categories, mutating flags, descriptions, and parameter signatures so you can construct the call for github_execute_action.
Inputs: format (required), query, domain.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The three eager tools (get_repository, get_file_contents, get_commit) each target a distinct resource, and the find/execute pair has a clear discover-then-run relationship. Minor overlap exists because repo/file/commit reads are also reachable through github_execute_action, but the descriptions clearly frame the get_ tools as fast-path shortcuts.
Two coherent families exist: snake_case get_noun for the eager daily drivers and github_verb_noun for the catalog tools, each internally consistent. The split prefix conventions are a minor deviation but deliberate and readable.
Five visible tools is lean, but the find/execute meta-tools compress an 83-action surface into two entries, which is efficient rather than thin. The design is well-scoped, though direct-operation coverage is intentionally minimal.
The 83-action catalog spans PRs, issues, releases, workflows, collaborators, webhooks, variables, and security alerts, giving broad lifecycle coverage through github_execute_action. The eager tools alone lack full CRUD, but agents can work around this via the catalog.
Maintenance
Related MCP Connectors
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Unofficial GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables AI agents to interact with GitHub repositories through the GitHub REST API for managing files, issues, and repository metadata. It supports both read operations like searching code and write operations such as creating repositories and updating issue comments.9-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub repositories and issues through MCP tools, supporting listing repositories, listing and searching issues, and retrieving specific issues via the GitHub REST API.-
- FlicenseNot gradedqualityCmaintenanceEnables large language models to explore, inspect, and analyze GitHub repositories through natural-language queries, using MCP tools to retrieve repository data, file structures, file contents, and code search results from the GitHub REST API.-
- AlicenseAqualityBmaintenanceEnables AI coding agents to read GitHub repositories, files, commits, issues, pull requests, releases, Actions, and search results through 18 read-only MCP tools. It reuses existing credentials, routes around unreliable networks, and caches responses on disk to stay within rate limits.41403 npmMIT