mcp-github-crunchtools
v2.2.0Secure 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).
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
labels | Comma-separated label names | |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 30) |
state | string | Filter by state (open, closed, all) |
get_issue_tool Get Issue Tool
Get a single GitHub issue by number.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | Issue number (e.g., #42) |
repo * | string | Repository name |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | Issue or pull request number |
repo * | string | Repository name |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 30) |
create_issue_tool Create Issue Tool
Create a new issue in a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
title * | string | Issue title (required, non-empty) |
body | string | Issue body (Markdown) |
labels | Optional list of label names to apply | |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment body (Markdown) |
issue_number * | integer | Issue or pull request number |
repo * | string | Repository name |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | Issue number |
repo * | string | Repository name |
body | New body (optional) | |
labels | Replacement list of label names (optional) | |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
state | "open" or "closed" | |
state_reason | "completed", "not_planned", or "reopened" | |
title | New title (optional) |
list_pull_requests_tool List Pull Requests Tool
List pull requests for a GitHub repository.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 30) |
state | string | Filter by state (open, closed, all) |
get_pull_request_tool Get Pull Request Tool
Get a single GitHub pull request by number.
| Parameter | Type | Description |
|---|---|---|
pull_number * | integer | Pull request number |
repo * | string | Repository name |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
pull_number * | integer | Pull request number |
repo * | string | Repository name |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
pull_number * | integer | Pull request number |
repo * | string | Repository name |
allow_no_required_checks | boolean | Treat a PR with no checks as ready; by default zero checks found gives ready_to_merge False with a reason |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
pull_number * | integer | Pull request number |
repo * | string | Repository name |
body | New body (optional) | |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
state | "open" or "closed" | |
title | New title (optional) |
create_pull_request_tool Create Pull Request Tool
Open a GitHub pull request.
| Parameter | Type | Description |
|---|---|---|
base * | string | Branch the changes should be merged into (e.g. "main") |
head * | string | Branch holding the changes; "owner:branch" for a fork |
repo * | string | Repository name |
title * | string | Pull request title (required, non-empty) |
body | string | Pull request description (Markdown) |
draft | boolean | Open the pull request as a draft (default: false) |
owner | Repository 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…
| Parameter | Type | Description |
|---|---|---|
pull_number * | integer | Pull request number |
repo * | string | Repository name |
allow_no_required_checks | boolean | Merge even if the base branch requires no status checks (default: False, refuse) |
merge_method | string | "merge", "squash", or "rebase" (default: merge) |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
sha | Full 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.
| Parameter | Type | Description |
|---|---|---|
pull_number * | integer | Pull request number |
repo * | string | Repository name |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | Reply body (Markdown) |
comment_id * | integer | ID of the review comment to reply to |
pull_number * | integer | Pull request number |
repo * | string | Repository name |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the file within the repository |
repo * | string | Repository name |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
ref | Branch, 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
recursive | boolean | Recurse into subtrees (default: false) |
tree_sha | string | Tree 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").
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string |
page | integer | Page number (default: 1) |
per_page | integer | Results 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").
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 30) |
list_workflow_runs_tool List Workflow Runs Tool
List GitHub Actions workflow runs for a repository.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
branch | Filter by head branch name | |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 20) |
status | Filter 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
workflow_id * | string | Workflow file name (e.g. "build.yml") or its numeric ID |
inputs | Optional workflow_dispatch inputs as name/value pairs | |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
ref | Git 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
run_id * | integer | Workflow run ID |
owner | Repository 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
run_id * | integer | Workflow run ID |
owner | Repository 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).
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
run_id * | integer | Workflow run ID |
owner | Repository 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…
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
run_id * | integer | Workflow run ID |
include_raw_log | boolean | Also return the full cleaned tail as ``log`` (default False); the raw tail may be withheld by a scanning gateway, the summary is not |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
tail_lines | integer | Lines 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.
| Parameter | Type | Description |
|---|---|---|
repo * | string | Repository name |
tag_name * | string | Tag of the release (e.g. "v1.2.0") |
body | string | Release notes (Markdown) |
draft | boolean | Create an unpublished draft (default: false) |
generate_release_notes | boolean | Let GitHub generate the notes, with ``body`` in front of them (default: false) |
name | Release title (default: the tag name) | |
owner | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) | |
prerelease | boolean | Mark the release as a prerelease (default: false) |
target_commitish | Branch 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.
| Parameter | Type | Description |
|---|---|---|
org * | string | Organization name |
set_org_fork_pr_approval_tool Set Org Fork Pr Approval Tool
Set which outside contributors need approval before fork PRs run workflows.
| Parameter | Type | Description |
|---|---|---|
approval_policy * | string | first_time_contributors_new_to_github, first_time_contributors, or all_external_contributors (every outside contributor needs approval) |
org * | string | Organization name |
list_org_actions_policies_tool List Org Actions Policies Tool
List an organization's Actions policies (allowed events and actors).
| Parameter | Type | Description |
|---|---|---|
org * | string | Organization name |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 30) |
get_org_actions_policy_tool Get Org Actions Policy Tool
Get one of an organization's Actions policies.
| Parameter | Type | Description |
|---|---|---|
org * | string | Organization name |
policy_id * | integer | Policy 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.
| Parameter | Type | Description |
|---|---|---|
enforcement * | string | disabled, active or evaluate (evaluate is Enterprise only) |
name * | string | Policy name |
org * | string | Organization name |
repository_name_include * | array | Repository name patterns; ["~ALL"] for all |
allowed_actors | Actors ({id, type}) that may trigger them | |
allowed_events | Events that may trigger the targeted workflows (GitHub event names such as pull_request_target, push) | |
repository_name_exclude | Repository name patterns to skip | |
repository_name_protected | Also match on rename protection | |
workflow_path_exclude | Workflow file paths or globs to skip | |
workflow_path_include | Workflow 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.
| Parameter | Type | Description |
|---|---|---|
org * | string | Organization name |
policy_id * | integer | Policy ID |
allowed_actors | Actors ({id, type}) that may trigger them | |
allowed_events | Events that may trigger the targeted workflows | |
enforcement | disabled, active or evaluate | |
name | New policy name | |
repository_name_exclude | Repository name patterns to skip | |
repository_name_include | Repository name patterns (required with any other repository_name field) | |
repository_name_protected | Also match on rename protection | |
workflow_path_exclude | Workflow file paths or globs to skip | |
workflow_path_include | Workflow file paths or globs |
list_rulesets_tool List Rulesets Tool
List an organization's rulesets, or one repository's.
| Parameter | Type | Description |
|---|---|---|
org * | string | Organization name (the repository owner when repo is given) |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 30) |
repo | Repository name; omit for the organization's rulesets | |
targets | Comma-separated filter: branch, tag, push, repository |
get_ruleset_tool Get Ruleset Tool
Get one ruleset with its conditions, rules and bypass actors.
| Parameter | Type | Description |
|---|---|---|
org * | string | Organization name (the repository owner when repo is given) |
ruleset_id * | integer | Ruleset ID |
repo | Repository 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).