GitHub MCP Server
v2.2.0Developer-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.
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format: 'markdown' (default, compact human/LLM-readable text table) or 'json' (structured object with parameter schemas) |
domain | string | Optional domain filter to restrict discovery to a specific functional category |
query | string | Search 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).
| Parameter | Type | Description |
|---|---|---|
action * | string | Exact name of the GitHub action to execute (e.g. 'create_pull_request', 'list_issues', 'trigger_workflow', 'create_branch') |
format * | string | Output format: 'markdown' (default, token-optimized compact table/text for LLM) or 'json' (structured JSON) |
parameters | object | Alias for params (for cross-client compatibility) |
params | object | Parameters 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.
| Parameter | Type | Description |
|---|---|---|
outline_only * | boolean | Extract top-level symbol signatures (functions, classes, interfaces, types) with line numbers to conserve tokens (default: false) |
owner * | string | Repository owner (user or organization, e.g. 'octocat' or 'buggycode') |
path * | string | Relative path to file or directory in repository (e.g. 'README.md', 'src/index.js', or '' for root) |
repo * | string | Repository name (e.g. 'Hello-World' or 'mcp-github') |
end_line | number | Optional 1-based end line to slice file contents |
ref | string | Git reference (branch name, tag, or commit SHA) to read from (default: default branch / HEAD) |
start_line | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format: 'markdown' (default) or 'json' |
owner * | string | Repository owner (user or organization, e.g. 'octocat' or 'buggycode') |
repo * | string | Repository 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).
| Parameter | Type | Description |
|---|---|---|
format * | string | Output format: 'markdown' (default) or 'json' |
ignore_lockfiles * | boolean | If true, automatically collapses diffs for lockfiles and minified assets (default: true) |
max_diff_lines * | number | Maximum unified diff lines to return across files to conserve LLM context tokens (default: 400) |
owner * | string | Repository owner (user or organization, e.g. 'octocat' or 'buggycode') |
ref * | string | Commit SHA, branch name, or tag reference to inspect |
repo * | string | Repository name (e.g. 'Hello-World' or 'mcp-github') |
path | string | Optional file path filter: only include diff and stats for this single file |