Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GITHUB_TOKENYesGitHub Personal Access Token
GITHUB_API_URLNoAPI base URL (set for GHES)https://api.github.com
GITHUB_DEFAULT_ORGNoDefault owner when a tool omits owner

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Secure MCP server for GitHub repositories: issues, pull requests (open, review discussion, diffs, CI checks, merge), Actions runs and failed-job logs, releases, repository files, and code/issue search. Works with github.com and GitHub Enterprise Server.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_issues_toolB

List issues for a GitHub repository (pull requests excluded).

get_issue_toolB

Get a single GitHub issue by number.

list_issue_comments_toolA

List the comments on a GitHub issue or pull request conversation, oldest first.

Works for plain issues, which list_pull_request_comments_tool does not. On a pull request it returns only the conversation comments; diff comments and reviews come from list_pull_request_comments_tool.

create_issue_toolC

Create a new issue in a GitHub repository.

create_issue_comment_toolC

Create a comment on a GitHub issue or pull request.

update_issue_toolA

Update a GitHub issue, including closing or reopening it.

Set state="closed" to close an issue. Set state="open" with state_reason="reopened" to reopen.

list_pull_requests_toolC

List pull requests for a GitHub repository.

get_pull_request_toolB

Get a single GitHub pull request by number.

get_pull_request_diff_toolB

Get the unified diff for a GitHub pull request.

get_pull_request_checks_toolA

Get a CI verdict for a PR that distinguishes skipped from failed.

Classifies every check-run and commit-status context into passed, failing, pending, or skipped. SKIPPED checks are NOT failures. Use the returned ready_to_merge boolean as the signal for whether the PR is clear to merge (True only when nothing is failing or pending and the PR is not known-unmergeable). A token that cannot read check-runs (any fine-grained token) gets the Actions jobs instead; checks_source says which, and only Actions-reported checks are then visible.

update_pull_request_toolA

Update a GitHub pull request, including closing or reopening it.

This does NOT merge. Set state="closed" to close a PR without merging.

create_pull_request_toolC

Open a GitHub pull request.

merge_pull_request_toolA

Merge a GitHub pull request, only once its required checks are green.

The tool enforces the base branch's required status checks itself before merging, because an organization owner's token (or one on a ruleset's bypass list) lets GitHub merge past failing required checks. It refuses, naming each offending check, when a required check run or status on the PR head is missing, pending or failed; when sha is not the current head; when branch protection cannot be read; and when the base branch requires no checks at all, unless allow_no_required_checks is True. Passing check runs conclude success, skipped or neutral. The merge is pinned to the head SHA that was checked. A token that cannot read check-runs (any fine-grained token) is judged on the Actions jobs, and a required check not reported by GitHub Actions is refused as missing.

list_pull_request_comments_toolA

List everything said on a GitHub pull request, in one list.

Combines the PR's conversation comments (kind "issue_comment"), comments on the diff (kind "review_comment", with path, line, review_id and in_reply_to_id) and submitted reviews (kind "review", with state), oldest first. Every item carries kind, id, author, created_at, body and html_url.

Each kind is capped at 300 items; truncated and truncated_kinds say when newer items were left out.

reply_to_review_comment_toolA

Reply in the thread of a pull request review comment.

comment_id is the id of a "review_comment" item from list_pull_request_comments_tool whose in_reply_to_id is empty; GitHub rejects a reply to a reply, so answer the comment that started the thread.

get_file_content_toolA

Get the decoded text content of a file in a GitHub repository.

list_repo_tree_toolC

List the git tree (files and directories) of a GitHub repository.

search_code_toolA

Search for code across GitHub.

Uses GitHub code search syntax (e.g., "addClass repo:jquery/jquery").

search_issues_toolB

Search for issues and pull requests across GitHub.

Uses GitHub issue search syntax (e.g., "is:open is:pr author:octocat").

list_workflow_runs_toolC

List GitHub Actions workflow runs for a repository.

trigger_workflow_toolA

Trigger a fresh GitHub Actions run via the workflow_dispatch event.

Use this to force a new build. Unlike rerun_workflow_run_tool (which re-runs an existing run and is rejected by GitHub for runs older than 30 days), this starts a brand-new run regardless of when the workflow last ran. The target workflow must declare an on: workflow_dispatch trigger.

rerun_workflow_run_toolB

Re-run all jobs in a GitHub Actions workflow run.

rerun_failed_jobs_toolB

Re-run only the failed jobs in a GitHub Actions workflow run.

get_workflow_run_toolA

Get one GitHub Actions workflow run and its jobs (no logs).

get_failed_job_logs_toolA

Get the failure summary of each failed job in a GitHub Actions run.

Returns, for every job that failed or timed out, a failure_summary: the log-tail lines that name the cause (error annotations, test failures, tracebacks, non-zero exits), with ANSI escapes and timestamps removed, plus the names of the steps that failed. Set include_raw_log to also get the full cleaned tail as log — it can be large and, for a repository whose CI output quotes attack corpora, a scanning gateway may flag and withhold it, where the small, signal-only summary is far more likely to pass.

Logs are fetched for at most 5 failed jobs and all log text together is capped at 256 KiB; truncated and failed_jobs_omitted say when something was cut. jobs_truncated means the run has more than the 300 jobs examined, so the failed-job counts cover only those.

create_release_toolA

Create a GitHub release, creating its tag if the tag does not exist.

Publishing a release (draft=false) fires the repository's on: release workflows, such as package and image publishing.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 26 tools

Disambiguation4/5

Most tools target clearly distinct resources and actions, and the descriptions actively disambiguate close cases such as workflow rerun variants and comment listings. There is some residual overlap between list_issue_comments_tool and list_pull_request_comments_tool on PR conversation comments, and between get_pull_request_checks_tool and merge_pull_request_tool's internal check enforcement, but these boundaries are mostly explained.

Naming Consistency5/5

All tool names use snake_case with a consistent _tool suffix and follow a predictable verb_noun pattern such as search_issues_tool, get_pull_request_tool, and merge_pull_request_tool. The few multiword actions like reply_to_review_comment_tool remain readable and consistent with the overall convention.

Tool Count3/5

At 26 tools this is above the ideal 3-15 range and feels heavy, though the broad GitHub surface across issues, PRs, Actions, file contents, and releases justifies many of them. Some granularity, such as separate rerun tools and multiple comment-listing tools, pushes the set toward borderline over-scoped rather than clearly well-scoped.

Completeness3/5

Core issue, pull request, and Actions workflows are reasonably covered, but there are notable lifecycle gaps: releases only have create_release_tool with no list/get/update, PR reviews lack a create/submit review operation, and workflow management lacks cancel or broader log access. These gaps are workable in some cases but will leave common GitHub workflows incomplete.

Maintenance

ActivityNo data
ResponsivenessOutdated data