GitHub MCP Server

v2.2.0
io.github.sumirati/mcp-github Checked 16 hours ago Published 1 month ago

Developer-ready GitHub MCP server with 5-tool hybrid architecture and dynamic discovery.

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

github_find_actions Find GitHub Actions

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.

ParameterTypeDescription
format *stringOutput format: 'markdown' (default, compact human/LLM-readable text table) or 'json' (structured object with parameter schemas)
domainstringOptional domain filter to restrict discovery to a specific functional category
querystringSearch keyword query to match against action names, domains, or descriptions (e.g. 'pull request', 'issue comment', 'webhook', 'deploy', 'dependabot')

github_execute_action Execute GitHub Action

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).

ParameterTypeDescription
action *stringExact name of the GitHub action to execute (e.g. 'create_pull_request', 'list_issues', 'trigger_workflow', 'create_branch')
format *stringOutput format: 'markdown' (default, token-optimized compact table/text for LLM) or 'json' (structured JSON)
parametersobjectAlias for params (for cross-client compatibility)
paramsobjectParameters dictionary for the action matching its parameter schema

get_file_contents Get File Contents

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.

ParameterTypeDescription
outline_only *booleanExtract top-level symbol signatures (functions, classes, interfaces, types) with line numbers to conserve tokens (default: false)
owner *stringRepository owner (user or organization, e.g. 'octocat' or 'buggycode')
path *stringRelative path to file or directory in repository (e.g. 'README.md', 'src/index.js', or '' for root)
repo *stringRepository name (e.g. 'Hello-World' or 'mcp-github')
end_linenumberOptional 1-based end line to slice file contents
refstringGit reference (branch name, tag, or commit SHA) to read from (default: default branch / HEAD)
start_linenumberOptional 1-based start line to slice file contents

get_repository Get Repository

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.

ParameterTypeDescription
format *stringOutput format: 'markdown' (default) or 'json'
owner *stringRepository owner (user or organization, e.g. 'octocat' or 'buggycode')
repo *stringRepository name (e.g. 'Hello-World' or 'mcp-github')

get_commit Get Commit

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).

ParameterTypeDescription
format *stringOutput format: 'markdown' (default) or 'json'
ignore_lockfiles *booleanIf true, automatically collapses diffs for lockfiles and minified assets (default: true)
max_diff_lines *numberMaximum unified diff lines to return across files to conserve LLM context tokens (default: 400)
owner *stringRepository owner (user or organization, e.g. 'octocat' or 'buggycode')
ref *stringCommit SHA, branch name, or tag reference to inspect
repo *stringRepository name (e.g. 'Hello-World' or 'mcp-github')
pathstringOptional file path filter: only include diff and stats for this single file