mcp-github-crunchtools

v2.2.0
mcp-github-crunchtools Checked 23 hours ago Published 9 days ago

Secure MCP server for GitHub issues, pull requests, Actions, releases, files, and search

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_issues_tool List Issues Tool

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

ParameterTypeDescription
repo *stringRepository name
labelsComma-separated label names
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)
statestringFilter by state (open, closed, all)

get_issue_tool Get Issue Tool

Get a single GitHub issue by number.

ParameterTypeDescription
issue_number *integerIssue number (e.g., #42)
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

list_issue_comments_tool List Issue Comments Tool

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.

ParameterTypeDescription
issue_number *integerIssue or pull request number
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)

create_issue_tool Create Issue Tool

Create a new issue in a GitHub repository.

ParameterTypeDescription
repo *stringRepository name
title *stringIssue title (required, non-empty)
bodystringIssue body (Markdown)
labelsOptional list of label names to apply
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

create_issue_comment_tool Create Issue Comment Tool

Create a comment on a GitHub issue or pull request.

ParameterTypeDescription
body *stringComment body (Markdown)
issue_number *integerIssue or pull request number
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

update_issue_tool Update Issue Tool

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.

ParameterTypeDescription
issue_number *integerIssue number
repo *stringRepository name
bodyNew body (optional)
labelsReplacement list of label names (optional)
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
state"open" or "closed"
state_reason"completed", "not_planned", or "reopened"
titleNew title (optional)

list_pull_requests_tool List Pull Requests Tool

List pull requests for a GitHub repository.

ParameterTypeDescription
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)
statestringFilter by state (open, closed, all)

get_pull_request_tool Get Pull Request Tool

Get a single GitHub pull request by number.

ParameterTypeDescription
pull_number *integerPull request number
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

get_pull_request_diff_tool Get Pull Request Diff Tool

Get the unified diff for a GitHub pull request.

ParameterTypeDescription
pull_number *integerPull request number
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

get_pull_request_checks_tool Get Pull Request Checks Tool

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.

ParameterTypeDescription
pull_number *integerPull request number
repo *stringRepository name
allow_no_required_checksbooleanTreat a PR with no checks as ready; by default zero checks found gives ready_to_merge False with a reason
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

update_pull_request_tool Update Pull Request Tool

Update a GitHub pull request, including closing or reopening it. This does NOT merge. Set state="closed" to close a PR without merging.

ParameterTypeDescription
pull_number *integerPull request number
repo *stringRepository name
bodyNew body (optional)
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
state"open" or "closed"
titleNew title (optional)

create_pull_request_tool Create Pull Request Tool

Open a GitHub pull request.

ParameterTypeDescription
base *stringBranch the changes should be merged into (e.g. "main")
head *stringBranch holding the changes; "owner:branch" for a fork
repo *stringRepository name
title *stringPull request title (required, non-empty)
bodystringPull request description (Markdown)
draftbooleanOpen the pull request as a draft (default: false)
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

merge_pull_request_tool Merge Pull Request Tool

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…

ParameterTypeDescription
pull_number *integerPull request number
repo *stringRepository name
allow_no_required_checksbooleanMerge even if the base branch requires no status checks (default: False, refuse)
merge_methodstring"merge", "squash", or "rebase" (default: merge)
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
shaFull commit SHA the PR head must still be at (optional)

list_pull_request_comments_tool List Pull Request Comments Tool

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.

ParameterTypeDescription
pull_number *integerPull request number
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

reply_to_review_comment_tool Reply To Review Comment Tool

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.

ParameterTypeDescription
body *stringReply body (Markdown)
comment_id *integerID of the review comment to reply to
pull_number *integerPull request number
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

get_file_content_tool Get File Content Tool

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

ParameterTypeDescription
path *stringPath to the file within the repository
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
refBranch, tag, or commit SHA (default: the default branch)

list_repo_tree_tool List Repo Tree Tool

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

ParameterTypeDescription
repo *stringRepository name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
recursivebooleanRecurse into subtrees (default: false)
tree_shastringTree SHA, branch name, or "HEAD" (default: HEAD)

search_code_tool Search Code Tool

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

ParameterTypeDescription
query *stringSearch query string
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)

search_issues_tool Search Issues Tool

Search for issues and pull requests across GitHub. Uses GitHub issue search syntax (e.g., "is:open is:pr author:octocat").

ParameterTypeDescription
query *stringSearch query string
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)

list_workflow_runs_tool List Workflow Runs Tool

List GitHub Actions workflow runs for a repository.

ParameterTypeDescription
repo *stringRepository name
branchFilter by head branch name
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 20)
statusFilter by status or conclusion (e.g., "completed", "in_progress", "queued", "failure", "success")

trigger_workflow_tool Trigger Workflow Tool

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.

ParameterTypeDescription
repo *stringRepository name
workflow_id *stringWorkflow file name (e.g. "build.yml") or its numeric ID
inputsOptional workflow_dispatch inputs as name/value pairs
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
refGit ref (branch or tag) to run on (default: the repo's default branch)

rerun_workflow_run_tool Rerun Workflow Run Tool

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

ParameterTypeDescription
repo *stringRepository name
run_id *integerWorkflow run ID
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

rerun_failed_jobs_tool Rerun Failed Jobs Tool

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

ParameterTypeDescription
repo *stringRepository name
run_id *integerWorkflow run ID
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

get_workflow_run_tool Get Workflow Run Tool

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

ParameterTypeDescription
repo *stringRepository name
run_id *integerWorkflow run ID
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)

get_failed_job_logs_tool Get Failed Job Logs Tool

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 fet…

ParameterTypeDescription
repo *stringRepository name
run_id *integerWorkflow run ID
include_raw_logbooleanAlso return the full cleaned tail as ``log`` (default False); the raw tail may be withheld by a scanning gateway, the summary is not
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
tail_linesintegerLines of the tail to scan for the summary, and to return as ``log`` when ``include_raw_log`` is set (default 200, max 1000)

create_release_tool Create Release Tool

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.

ParameterTypeDescription
repo *stringRepository name
tag_name *stringTag of the release (e.g. "v1.2.0")
bodystringRelease notes (Markdown)
draftbooleanCreate an unpublished draft (default: false)
generate_release_notesbooleanLet GitHub generate the notes, with ``body`` in front of them (default: false)
nameRelease title (default: the tag name)
ownerRepository owner (defaults to GITHUB_DEFAULT_ORG if unset)
prereleasebooleanMark the release as a prerelease (default: false)
target_commitishBranch or commit SHA to tag when the tag does not exist yet (default: the repository's default branch)

get_org_fork_pr_approval_tool Get Org Fork Pr Approval Tool

Get which outside contributors need approval before fork PRs run workflows.

ParameterTypeDescription
org *stringOrganization name

set_org_fork_pr_approval_tool Set Org Fork Pr Approval Tool

Set which outside contributors need approval before fork PRs run workflows.

ParameterTypeDescription
approval_policy *stringfirst_time_contributors_new_to_github, first_time_contributors, or all_external_contributors (every outside contributor needs approval)
org *stringOrganization name

list_org_actions_policies_tool List Org Actions Policies Tool

List an organization's Actions policies (allowed events and actors).

ParameterTypeDescription
org *stringOrganization name
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)

get_org_actions_policy_tool Get Org Actions Policy Tool

Get one of an organization's Actions policies.

ParameterTypeDescription
org *stringOrganization name
policy_id *integerPolicy ID

create_org_actions_policy_tool Create Org Actions Policy Tool

Create an organization Actions policy. GitHub blocks pull_request_target in public repositories by default unless an Actions event policy allows it; such a policy is made here with allowed_events ["pull_request_target", ...] and workflow_path_include naming the workflow files it covers.

ParameterTypeDescription
enforcement *stringdisabled, active or evaluate (evaluate is Enterprise only)
name *stringPolicy name
org *stringOrganization name
repository_name_include *arrayRepository name patterns; ["~ALL"] for all
allowed_actorsActors ({id, type}) that may trigger them
allowed_eventsEvents that may trigger the targeted workflows (GitHub event names such as pull_request_target, push)
repository_name_excludeRepository name patterns to skip
repository_name_protectedAlso match on rename protection
workflow_path_excludeWorkflow file paths or globs to skip
workflow_path_includeWorkflow file paths or globs, e.g. [".github/workflows/ci.yml"]; omitted means every workflow

update_org_actions_policy_tool Update Org Actions Policy Tool

Change an organization Actions policy; only the fields given are sent. Giving allowed_events or allowed_actors REPLACES the policy's stored rules: pass every rule to keep. Omitted workflow paths keep the stored workflow targeting.

ParameterTypeDescription
org *stringOrganization name
policy_id *integerPolicy ID
allowed_actorsActors ({id, type}) that may trigger them
allowed_eventsEvents that may trigger the targeted workflows
enforcementdisabled, active or evaluate
nameNew policy name
repository_name_excludeRepository name patterns to skip
repository_name_includeRepository name patterns (required with any other repository_name field)
repository_name_protectedAlso match on rename protection
workflow_path_excludeWorkflow file paths or globs to skip
workflow_path_includeWorkflow file paths or globs

list_rulesets_tool List Rulesets Tool

List an organization's rulesets, or one repository's.

ParameterTypeDescription
org *stringOrganization name (the repository owner when repo is given)
pageintegerPage number (default: 1)
per_pageintegerResults per page, max 100 (default: 30)
repoRepository name; omit for the organization's rulesets
targetsComma-separated filter: branch, tag, push, repository

get_ruleset_tool Get Ruleset Tool

Get one ruleset with its conditions, rules and bypass actors.

ParameterTypeDescription
org *stringOrganization name (the repository owner when repo is given)
ruleset_id *integerRuleset ID
repoRepository name; omit for an organization ruleset

create_ruleset_tool Create Ruleset Tool

Create a ruleset on an organization, or on one repository.

update_ruleset_tool Update Ruleset Tool

Change a ruleset; only the fields given are sent. Given rules, bypass_actors or conditions REPLACE the stored ones: pass the complete list, and both halves of the conditions (ref_name_include, and repository_name_include on an organization ruleset).