Home · Skills · Development · Agent

Github MCP server

GitHub's official server: read repos, open and review pull requests, manage issues and Actions from your AI.

How to install

How to install

  1. This server is hosted — nothing to install on your machine.
  2. Claude Code: run the line below. Claude (web or desktop): Customize → Connectors → Add → Add custom connector → paste the URL. Cursor: add the JSON to ~/.cursor/mcp.json.
  3. Ask something that needs the tool. Sign in if the app asks you to.
Claude Code
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ --header "Authorization: Bearer YOUR_GITHUB_PAT"
Claude Desktop — custom connector URL
https://api.githubcopilot.com/mcp/
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer YOUR_GITHUB_PAT"
      }
    }
  }
}

Hosted by GitHub. Make a personal access token at github.com/settings/tokens and put it in place of YOUR_GITHUB_PAT. The README has a separate Claude install guide and a Docker option.

This one runs on your machine and can reach your files. Read the README below before you connect it.

Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text1786 lines
github/README.md1786 lines110.5 KBpushed 6d agoRawView on GitHub

Go Report Card

GitHub MCP Server

The GitHub MCP Server connects AI tools directly to GitHub's platform. This gives AI agents, assistants, and chatbots the ability to read repositories and code files, manage issues and PRs, analyze code, and automate workflows. All through natural language interactions.

Use Cases

  • Repository Management: Browse and query code, search files, analyze commits, and understand project structure across any repository you have access to.
  • Issue & PR Automation: Create, update, and manage issues and pull requests. Let AI help triage bugs, review code changes, and maintain project boards.
  • CI/CD & Workflow Intelligence: Monitor GitHub Actions workflow runs, analyze build failures, manage releases, and get insights into your development pipeline.
  • Code Analysis: Examine security findings, review Dependabot alerts, understand code patterns, and get comprehensive insights into your codebase.
  • Team Collaboration: Access discussions, manage notifications, analyze team activity, and streamline processes for your team.

Built for developers who want to connect their AI tools to GitHub context and capabilities, from simple natural language queries to complex multi-step agent workflows.


Remote GitHub MCP Server

Install in VS Code Install in VS Code Insiders Install in Visual Studio

The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the local version of the GitHub MCP Server instead.

Prerequisites

  1. A compatible MCP host with remote server support (VS Code 1.101+, Claude Desktop, Cursor, Windsurf, etc.)
  2. Any applicable policies enabled

Install in VS Code

For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start. Make sure you're using VS Code 1.101 or later for remote MCP and OAuth support.

Alternatively, to manually configure VS Code, choose the appropriate JSON block from the examples below and add it to your host configuration:

Using OAuthUsing a GitHub PAT VS Code (version 1.101 or greater)

{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer ${input:github_mcp_pat}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "github_mcp_pat",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ]
}

Install in other MCP hosts

  • Copilot CLI - Installation guide for GitHub Copilot CLI
  • GitHub Copilot in other IDEs - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
  • Claude Applications - Installation guide for Claude Desktop and Claude Code CLI
  • Codex - Installation guide for OpenAI Codex
  • Cursor - Installation guide for Cursor IDE
  • OpenCode - Installation guide for the OpenCode terminal agent
  • Windsurf - Installation guide for Windsurf IDE
  • Zed - Installation guide for Zed editor
  • Rovo Dev CLI - Installation guide for Rovo Dev CLI

Note: Each MCP host application needs to configure a GitHub App or OAuth App to support remote access via OAuth. Any host application that supports remote MCP servers should support the remote GitHub server with PAT authentication. Configuration details and support levels vary by host. Make sure to refer to the host application's documentation for more info.

Configuration

Toolset configuration

See Remote Server Documentation for full details on remote server configuration, toolsets, headers, and advanced usage. This file provides comprehensive instructions and examples for connecting, customizing, and installing the remote GitHub MCP Server in VS Code and other MCP hosts.

When no toolsets are specified, default toolsets are used.

Insiders Mode

Try new features early! The remote server offers an insiders version with early access to new features and experimental tools.

Using URL PathUsing Header

{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/insiders"
    }
  }
}
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "X-MCP-Insiders": "true"
      }
    }
  }
}

See Remote Server Documentation for more details and examples, and Insiders Features for a full list of what's available.

GitHub Enterprise

GitHub Enterprise Cloud with data residency (ghe.com)

GitHub Enterprise Cloud can also make use of the remote server.

Example for https://octocorp.ghe.com with GitHub PAT token:

{
    ...
    "github-octocorp": {
      "type": "http",
      "url": "https://copilot-api.octocorp.ghe.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:github_mcp_pat}"
      }
    },
    ...
}

Note: When using OAuth with GitHub Enterprise with VS Code and GitHub Copilot, you also need to configure your VS Code settings to point to your GitHub Enterprise instance - see Authenticate from VS Code

GitHub Enterprise Server

GitHub Enterprise Server does not support remote server hosting. Please refer to GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com) from the local server configuration.


Local GitHub MCP Server

Install with Docker in VS Code Install with Docker in VS Code Insiders Install with Docker in Visual Studio

Prerequisites

  1. To run the server in a container, you will need to have Docker installed.

  2. Once Docker is installed, you will also need to ensure Docker is running. The Docker image is available at ghcr.io/github/github-mcp-server. The image is public; if you get errors on pull, you may have an expired token and need to docker logout ghcr.io.

  3. Authentication. On github.com you don't need to create anything up front — the one-click buttons above log you in with OAuth on first use (a browser-based flow; the token is kept in memory only). The Docker buttons publish a fixed callback port (127.0.0.1:8085) so the container's login callback is reachable. See Local Server OAuth Login for how it works, headless/device-code fallback, and bringing your own OAuth or GitHub App (required for GitHub Enterprise Server and ghe.com).

    Prefer a token? You can still authenticate with a GitHub Personal Access Token by setting GITHUB_PERSONAL_ACCESS_TOKEN instead (it takes precedence over OAuth). The MCP server can use many of the GitHub APIs, so enable the permissions that you feel comfortable granting your AI tools (to learn more about access tokens, please check out the documentation).

Handling PATs Securely

Environment Variables (Recommended)

To keep your GitHub PAT secure and reusable across different MCP hosts:

  1. Store your PAT in environment variables

    export GITHUB_PAT=your_token_here
    

    Or create a .env file:

    GITHUB_PAT=your_token_here
    
  2. Protect your .env file

    # Add to .gitignore to prevent accidental commits
    echo ".env" >> .gitignore
    
  3. Reference the token in configurations

    # CLI usage
    claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
    
    # In config files (where supported)
    "env": {
      "GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
    }
    

Note: Environment variable support varies by host app and IDE. Some applications (like Windsurf) require hardcoded tokens in config files.

Token Security Best Practices

  • Minimum scopes: Only grant necessary permissions

    • repo - Repository operations
    • read:packages - Docker image access
    • read:org - Organization team access
  • Separate tokens: Use different PATs for different projects/environments

  • Regular rotation: Update tokens periodically

  • Never commit: Keep tokens out of version control

  • File permissions: Restrict access to config files containing tokens

    chmod 600 ~/.your-app/config.json
    

GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)

The flag --gh-host and the environment variable GITHUB_HOST can be used to set the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency.

  • For GitHub Enterprise Server, prefix the hostname with the https:// URI scheme. HTTPS is required and enforced: non-HTTPS hosts are refused so that credentials are never sent over cleartext (the only exception is a loopback host such as http://localhost for local development).
  • For GitHub Enterprise Cloud with data residency, use https://YOURSUBDOMAIN.ghe.com as the hostname.
"github": {
    "command": "docker",
    "args": [
    "run",
    "-i",
    "--rm",
    "-e",
    "GITHUB_PERSONAL_ACCESS_TOKEN",
    "-e",
    "GITHUB_HOST",
    "ghcr.io/github/github-mcp-server"
    ],
    "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}",
        "GITHUB_HOST": "https://<your GHES or ghe.com domain name>"
    }
}

Installation

Install in GitHub Copilot on VS Code

For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start.

More about using MCP server tools in VS Code's agent mode documentation.

Install in GitHub Copilot on other IDEs (JetBrains, Visual Studio, Eclipse, etc.)

Add one of the following JSON blocks to your IDE's MCP settings.

Log in with OAuth (no token to create or store). On github.com the official image already includes the app credentials, so you provide none yourself: it runs a browser-based login on first use and keeps the resulting token in memory only. In Docker this needs a fixed callback port published to loopback so the container's login callback is reachable:

{
  "mcp": {
    "servers": {
      "github": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-p",
          "127.0.0.1:8085:8085",
          "-e",
          "GITHUB_OAUTH_CALLBACK_PORT",
          "ghcr.io/github/github-mcp-server"
        ],
        "env": {
          "GITHUB_OAUTH_CALLBACK_PORT": "8085"
        }
      }
    }
  }
}

See Local Server OAuth Login for the native-binary flow (no fixed port needed), the headless/device-code fallback, GitHub Enterprise Server / ghe.com, and bringing your own OAuth or GitHub App.

For non-interactive stdio deployments, see GitHub App Authentication.

Or authenticate with a Personal Access Token. Set GITHUB_PERSONAL_ACCESS_TOKEN instead (it takes precedence over OAuth):

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "github_token",
        "description": "GitHub Personal Access Token",
        "password": true
      }
    ],
    "servers": {
      "github": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "GITHUB_PERSONAL_ACCESS_TOKEN",
          "ghcr.io/github/github-mcp-server"
        ],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
        }
      }
    }
  }
}

Optionally, you can add a similar example (i.e. without the mcp key) to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with other host applications that accept the same format.

Example JSON block without the MCP key included

{
  "inputs": [
    {
      "type": "promptString",
      "id": "github_token",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ],
  "servers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
      }
    }
  }
}

Install in Other MCP Hosts

For other MCP host applications, please refer to our installation guides:

  • Copilot CLI - Installation guide for GitHub Copilot CLI
  • GitHub Copilot in other IDEs - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
  • Claude Code & Claude Desktop - Installation guide for Claude Code and Claude Desktop
  • Cursor - Installation guide for Cursor IDE
  • Google Gemini CLI - Installation guide for Google Gemini CLI
  • OpenCode - Installation guide for the OpenCode terminal agent
  • Windsurf - Installation guide for Windsurf IDE
  • Zed - Installation guide for Zed editor

For a complete overview of all installation options, see our Installation Guides Index.

Note: Any host application that supports local MCP servers should be able to access the local GitHub MCP server. However, the specific configuration process, syntax and stability of the integration will vary by host application. While many may follow a similar format to the examples above, this is not guaranteed. Please refer to your host application's documentation for the correct MCP configuration syntax and setup process.

Build from source

If you don't have Docker, you can use go build to build the binary in the cmd/github-mcp-server directory, and use the github-mcp-server stdio command with the GITHUB_PERSONAL_ACCESS_TOKEN environment variable set to your token. To specify the output location of the build, use the -o flag. You should configure your server to use the built executable as its command. For example:

{
  "mcp": {
    "servers": {
      "github": {
        "command": "/path/to/github-mcp-server",
        "args": ["stdio"],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
        }
      }
    }
  }
}

Tool Configuration

The GitHub MCP Server supports enabling or disabling specific groups of functionalities via the --toolsets flag. This allows you to control which GitHub API capabilities are available to your AI tools. Enabling only the toolsets that you need can help the LLM with tool choice and reduce the context size.

Toolsets are not limited to Tools. Relevant MCP Resources and Prompts are also included where applicable.

When no toolsets are specified, default toolsets are used.

Looking for examples? See the Server Configuration Guide for common recipes like minimal setups, read-only mode, and combining tools with toolsets.

Specifying Toolsets

To specify toolsets you want available to the LLM, you can pass an allow-list in two ways:

  1. Using Command Line Argument:

    github-mcp-server --toolsets repos,issues,pull_requests,actions,code_security
    
  2. Using Environment Variable:

    GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" ./github-mcp-server
    

The environment variable GITHUB_TOOLSETS takes precedence over the command line argument if both are provided.

Specifying Individual Tools

You can also configure specific tools using the --tools flag. Tools can be used independently or combined with toolsets for fine-grained control.

  1. Using Command Line Argument:

    github-mcp-server --tools get_file_contents,issue_read,create_pull_request
    
  2. Using Environment Variable:

    GITHUB_TOOLS="get_file_contents,issue_read,create_pull_request" ./github-mcp-server
    
  3. Combining with Toolsets (additive):

    github-mcp-server --toolsets repos,issues --tools get_gist
    

    This registers all tools from repos and issues toolsets, plus get_gist.

Important Notes:

  • Tools and toolsets can be used together
  • Read-only mode takes priority: write tools are skipped if --read-only is set, even if explicitly requested via --tools
  • Tool names must match exactly (e.g., get_file_contents, not getFileContents). Invalid tool names will cause the server to fail at startup with an error message
  • When tools are renamed, old names are preserved as aliases for backward compatibility. See Tool Renaming for details.

Using Toolsets With Docker

When using Docker, you can pass the toolsets as environment variables:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" \
  ghcr.io/github/github-mcp-server

Using Tools With Docker

When using Docker, you can pass specific tools as environment variables. You can also combine tools with toolsets:

# Tools only
docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_TOOLS="get_file_contents,issue_read,create_pull_request" \
  ghcr.io/github/github-mcp-server

# Tools combined with toolsets (additive)
docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_TOOLSETS="repos,issues" \
  -e GITHUB_TOOLS="get_gist" \
  ghcr.io/github/github-mcp-server

Special toolsets

"all" toolset

The special toolset all can be provided to enable all available toolsets regardless of any other configuration:

./github-mcp-server --toolsets all

Or using the environment variable:

GITHUB_TOOLSETS="all" ./github-mcp-server

"default" toolset

The default toolset default is the configuration that gets passed to the server if no toolsets are specified.

The default configuration is:

  • context
  • repos
  • issues
  • pull_requests
  • users

To keep the default configuration and add additional toolsets:

GITHUB_TOOLSETS="default,stargazers" ./github-mcp-server

Insiders Mode

The local GitHub MCP Server offers an insiders version with early access to new features and experimental tools.

  1. Using Command Line Argument:

    ./github-mcp-server --insiders
    
  2. Using Environment Variable:

    GITHUB_INSIDERS=true ./github-mcp-server
    

When using Docker:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_INSIDERS=true \
  ghcr.io/github/github-mcp-server

Available Toolsets

The following sets of tools are available:

<!-- START AUTOMATED TOOLSETS -->
Toolset Description
context Strongly recommended: Tools that provide context about the current user and GitHub context you are operating in
actions GitHub Actions workflows and CI/CD operations
code_quality GitHub Code Quality related tools
code_security Code security related tools, such as GitHub Code Scanning
copilot Copilot related tools
copilot_issue_intents Opt-in Copilot issue assignment tools that carry intent metadata (rationale, confidence, suggestion)
dependabot Dependabot tools
discussions GitHub Discussions related tools
gists GitHub Gist related tools
git GitHub Git API related tools for low-level Git operations
governance Repository governance tools for managing rulesets and custom properties at the repository, organization, and enterprise levels
issues GitHub Issues related tools
labels GitHub Labels related tools
notifications GitHub Notifications related tools
orgs GitHub Organization related tools
projects GitHub Projects related tools
pull_requests GitHub Pull Request related tools
repos GitHub Repository related tools
secret_protection Secret protection related tools, such as GitHub Secret Scanning
security_advisories Security advisories related tools
stargazers GitHub Stargazers related tools
users GitHub User related tools
<!-- END AUTOMATED TOOLSETS -->

Additional Toolsets in Remote GitHub MCP Server

Toolset Description
copilot Copilot related tools (e.g. Copilot Coding Agent)
copilot_spaces Copilot Spaces related tools
github_support_docs_search Search docs to answer GitHub product and support questions

Tools

<!-- START AUTOMATED TOOLS -->

Actions

  • actions_get - Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts)

    • OAuth Challenge Scopes: repo
    • method: The method to execute (string, required)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
    • resource_id: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
      • Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'get_workflow' method.
      • Provide a workflow run ID for 'get_workflow_run', 'get_workflow_run_usage', and 'get_workflow_run_logs_url' methods.
      • Provide an artifact ID for 'download_workflow_run_artifact' method.
      • Provide a job ID for 'get_workflow_job' method. (string, required)
  • actions_list - List GitHub Actions workflows in a repository

    • OAuth Challenge Scopes: repo
    • method: The action to perform (string, required)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (default: 1) (number, optional)
    • perPage: Results per page for pagination (default: 30, max: 100) (number, optional)
    • repo: Repository name (string, required)
    • resource_id: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
      • Do not provide any resource ID for 'list_workflows' method.
      • Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'list_workflow_runs' method, or omit to list all workflow runs in the repository.
      • Provide a workflow run ID for 'list_workflow_jobs' and 'list_workflow_run_artifacts' methods. (string, optional)
    • workflow_jobs_filter: Filters for workflow jobs. ONLY used when method is 'list_workflow_jobs' (object, optional)
    • workflow_runs_filter: Filters for workflow runs. ONLY used when method is 'list_workflow_runs' (object, optional)
  • actions_run_trigger - Trigger GitHub Actions workflow actions

    • OAuth Challenge Scopes: repo
    • inputs: Inputs the workflow accepts. Only used for 'run_workflow' method. (object, optional)
    • method: The method to execute (string, required)
    • owner: Repository owner (string, required)
    • ref: The git reference for the workflow. The reference can be a branch or tag name. Required for 'run_workflow' method. (string, optional)
    • repo: Repository name (string, required)
    • run_id: The ID of the workflow run. Required for all methods except 'run_workflow'. (number, optional)
    • workflow_id: The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'run_workflow' method. (string, optional)
  • get_job_logs - Get GitHub Actions workflow job logs

    • OAuth Challenge Scopes: repo
    • failed_only: When true, gets logs for all failed jobs in the workflow run specified by run_id. Requires run_id to be provided. (boolean, optional)
    • job_id: The unique identifier of the workflow job. Required when getting logs for a single job. (number, optional)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
    • return_content: Returns actual log content instead of URLs (boolean, optional)
    • run_id: The unique identifier of the workflow run. Required when failed_only is true to get logs for all failed jobs in the run. (number, optional)
    • tail_lines: Number of lines to return from the end of the log (number, optional)

Code Quality

  • get_code_quality_finding - Get code quality finding
    • OAuth Challenge Scopes: repo
    • findingNumber: The number of the finding. (number, required)
    • owner: The owner of the repository. (string, required)
    • repo: The name of the repository. (string, required)

Code Security

  • get_code_scanning_alert - Get code scanning alert

    • OAuth Challenge Scopes: security_events
    • alertNumber: The number of the alert. (number, required)
    • owner: The owner of the repository. (string, required)
    • repo: The name of the repository. (string, required)
  • list_code_scanning_alerts - List code scanning alerts

    • OAuth Challenge Scopes: security_events
    • owner: The owner of the repository. (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • ref: The Git reference for the results you want to list. (string, optional)
    • repo: The name of the repository. (string, required)
    • severity: Filter code scanning alerts by severity (string, optional)
    • state: Filter code scanning alerts by state. Defaults to open (string, optional)
    • tool_name: The name of the tool used for code scanning. (string, optional)

Context

  • get_me - Get my user profile

    • No parameters required
  • get_team_members - Get team members

    • OAuth Challenge Scopes: read:org
    • org: Organization login (owner) that contains the team. (string, required)
    • team_slug: Team slug (string, required)
  • get_teams - Get teams

    • OAuth Challenge Scopes: read:org
    • user: Username to get teams for. If not provided, uses the authenticated user. (string, optional)

Copilot

  • assign_copilot_to_issue - Assign Copilot to issue

    • OAuth Challenge Scopes: repo
    • base_ref: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)
    • custom_instructions: Optional custom instructions to guide the agent beyond the issue body. Use this to provide additional context, constraints, or guidance that is not captured in the issue description (string, optional)
    • issue_number: Issue number (number, required)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • request_copilot_review - Request Copilot review

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • pullNumber: Pull request number (number, required)
    • repo: Repository name (string, required)

Copilot Issue Intents

  • assign_copilot_to_issue_with_intent - Assign Copilot to issue with intent
    • OAuth Challenge Scopes: repo
    • base_ref: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch. Ignored when is_suggestion is true (string, optional)
    • confidence: How confident you are in this choice. 'HIGH' for clear signal or explicit user request, 'MEDIUM' for reasonable inference with some ambiguity, 'LOW' for best guess with limited signal. (string, required)
    • custom_instructions: Optional custom instructions to guide the agent beyond the issue body. Ignored when is_suggestion is true (string, optional)
    • is_suggestion: If true, records a pending Copilot assignment intent rather than launching the agent. Approval later supplies the launch context; base_ref and custom_instructions are ignored in this case. (boolean, required)
    • issue_number: Issue number (number, required)
    • owner: Repository owner (string, required)
    • rationale: One concise sentence explaining what specifically about the issue led to choosing Copilot. State the concrete signal (e.g. 'Well-scoped task with clear acceptance criteria'). (string, required)
    • repo: Repository name (string, required)

Dependabot

  • get_dependabot_alert - Get dependabot alert

    • OAuth Challenge Scopes: security_events
    • alertNumber: The number of the alert. (number, required)
    • owner: The owner of the repository. (string, required)
    • repo: The name of the repository. (string, required)
  • list_dependabot_alerts - List dependabot alerts

    • OAuth Challenge Scopes: security_events
    • after: Cursor for pagination. Use the cursor from the previous response. (string, optional)
    • owner: The owner of the repository. (string, required)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: The name of the repository. (string, required)
    • severity: Filter dependabot alerts by severity (string, optional)
    • state: Filter dependabot alerts by state. Defaults to open (string, optional)

Discussions

  • discussion_comment_write - Manage discussion comments

    • OAuth Challenge Scopes: repo
    • body: Comment content (required for 'add', 'reply', and 'update' methods) (string, optional)
    • commentNodeID: The Node ID of the discussion comment (required for 'reply', 'update', 'delete', 'mark_answer', and 'unmark_answer' methods). For 'reply', this is the top-level comment to reply to; GitHub Discussions only support one level of nesting. (string, optional)
    • discussionNumber: Discussion number (required for 'add' and 'reply' methods) (number, optional)
    • method: Write operation to perform on a discussion comment. Options are:
      • 'add' - adds a new top-level comment to a discussion.
      • 'reply' - replies to a top-level discussion comment (GitHub Discussions only support one level of nesting).
      • 'update' - updates an existing discussion comment.
      • 'delete' - deletes a discussion comment.
      • 'mark_answer' - marks a discussion comment as the answer (Q&A only).
      • 'unmark_answer' - unmarks a discussion comment as the answer (Q&A only). (string, required)
    • owner: Repository owner (required for 'add' and 'reply' methods) (string, optional)
    • repo: Repository name (required for 'add' and 'reply' methods) (string, optional)
  • get_discussion - Get discussion

    • OAuth Challenge Scopes: repo
    • discussionNumber: Discussion Number (number, required)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • get_discussion_comments - Get discussion comments

    • OAuth Challenge Scopes: repo
    • after: Cursor for pagination. Use the cursor from the previous response. (string, optional)
    • discussionNumber: Discussion Number (number, required)
    • includeReplies: When true, each top-level comment will include its replies nested within it (up to 100 replies per comment, which is the GitHub API maximum). Defaults to false. (boolean, optional)
    • owner: Repository owner (string, required)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
  • list_discussion_categories - List discussion categories

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • repo: Repository name. If not provided, discussion categories will be queried at the organisation level. (string, optional)
  • list_discussions - List discussions

    • OAuth Challenge Scopes: repo
    • after: Cursor for pagination. Use the cursor from the previous response. (string, optional)
    • category: Optional filter by discussion category ID. If provided, only discussions with this category are listed. (string, optional)
    • direction: Order direction. (string, optional)
    • orderBy: Order discussions by field. If provided, the 'direction' also needs to be provided. (string, optional)
    • owner: Repository owner (string, required)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name. If not provided, discussions will be queried at the organisation level. (string, optional)

Gists

  • create_gist - Create Gist

    • OAuth Challenge Scopes: gist
    • content: Content for simple single-file gist creation (string, required)
    • description: Description of the gist (string, optional)
    • filename: Filename for simple single-file gist creation (string, required)
    • public: Whether the gist is public (boolean, optional)
  • get_gist - Get Gist Content

    • gist_id: The ID of the gist (string, required)
  • list_gists - List Gists

    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • since: Only gists updated after this time (ISO 8601 timestamp) (string, optional)
    • username: GitHub username (omit for authenticated user's gists) (string, optional)
  • update_gist - Update Gist

    • OAuth Challenge Scopes: gist
    • content: Content for the file (string, required)
    • description: Updated description of the gist (string, optional)
    • filename: Filename to update or create (string, required)
    • gist_id: ID of the gist to update (string, required)

Git

  • get_repository_tree - Get repository tree
    • OAuth Challenge Scopes: repo
    • owner: Repository owner (username or organization) (string, required)
    • path_filter: Optional path prefix to filter the tree results (e.g., 'src/' to only show files in the src directory) (string, optional)
    • recursive: Setting this parameter to true returns the objects or subtrees referenced by the tree. Default is false (boolean, optional)
    • repo: Repository name (string, required)
    • tree_sha: The SHA1 value or ref (branch or tag) name of the tree. Defaults to the repository's default branch (string, optional)

Governance

  • create_repository_ruleset - Create repository ruleset

    • OAuth Challenge Scopes: repo, admin:org, admin:enterprise
    • bypass_actors: The actors that can bypass the rules in this ruleset (object[], optional)
    • conditions: Conditions for when this ruleset applies, e.g. {"ref_name": {"include": ["refs/heads/main"], "exclude": []}} (object, optional)
    • enforcement: The enforcement level of the ruleset. 'evaluate' allows admins to test rules before enforcing them (string, required)
    • enterprise: Enterprise slug. Required when level is 'enterprise'. (string, optional)
    • level: The level at which the ruleset is configured:
      • 'repository': A ruleset on a single repository (requires 'owner' and 'repo').
      • 'organization': A ruleset covering repositories in an organization (requires 'org').
      • 'enterprise': A ruleset covering repositories across an enterprise (requires 'enterprise'). (string, required)
    • name: The name of the ruleset (string, required)
    • org: Organization name. Required when level is 'organization'. (string, optional)
    • owner: Repository owner. Required when level is 'repository'. (string, optional)
    • repo: Repository name. Required when level is 'repository'. (string, optional)
    • rules: An array of rules within the ruleset. Each rule is an object with a 'type' (e.g. 'creation', 'deletion', 'non_fast_forward', 'required_signatures', 'pull_request', 'required_status_checks') and, for rules that need configuration, a 'parameters' object (object[], required)
    • target: The target of the ruleset. Defaults to 'branch'. 'repository' is only valid for 'organization' and 'enterprise' level rulesets. (string, optional)
  • custom_properties_read - Read custom properties

    • OAuth Challenge Scopes: repo, read:org, read:enterprise
    • enterprise: Enterprise slug. Required when level is 'enterprise'. (string, optional)
    • level: The level at which custom properties are managed:
      • 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').
      • 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').
      • 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise'). (string, required)
    • org: Organization name. Required when level is 'organization'. (string, optional)
    • owner: Repository owner. Required when level is 'repository'. (string, optional)
    • repo: Repository name. Required when level is 'repository'. (string, optional)
  • custom_properties_write - Set custom properties

    • OAuth Challenge Scopes: repo, admin:org, admin:enterprise
    • enterprise: Enterprise slug. Required when level is 'enterprise'. (string, optional)
    • level: The level at which custom properties are managed:
      • 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').
      • 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').
      • 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise'). (string, required)
    • org: Organization name. Required when level is 'organization'. (string, optional)
    • owner: Repository owner. Required when level is 'repository'. (string, optional)
    • properties: The custom properties to create or update. At the repository level each item assigns a value ('property_name' and 'value'); at the organization and enterprise levels each item defines the schema ('property_name' and 'value_type', plus optional definition fields). (object[], required)
    • repo: Repository name. Required when level is 'repository'. (string, optional)
  • repository_ruleset_read - Read repository rulesets

    • OAuth Challenge Scopes: repo, read:org, read:enterprise
    • actor_name: The handle for the GitHub user account to filter rule suites on. Used by the 'list_rule_suites' method. (string, optional)
    • branch: Branch name. Required for the 'get_rules_for_branch' method. (string, optional)
    • enterprise: Enterprise slug. Required when level is 'enterprise'. (string, optional)
    • evaluate_status: Filter rule suites by ruleset evaluation mode. Used by the 'list_rule_suites' method. (string, optional)
    • includes_parents: Include rulesets configured at higher levels that also apply. Defaults to true. Used by the 'get' and 'list' methods at the repository level. (boolean, optional)
    • level: The level at which the ruleset is configured:
      • 'repository': A ruleset on a single repository (requires 'owner' and 'repo').
      • 'organization': A ruleset covering repositories in an organization (requires 'org').
      • 'enterprise': A ruleset covering repositories across an enterprise (requires 'enterprise'). (string, required)
    • method: Operation to perform:
      • 'get': Get a specific ruleset by ID (requires 'ruleset_id'). Supported at every level.
      • 'list': List all rulesets. Supported at every level.
      • 'get_rules_for_branch': Get all rules that apply to a branch (requires 'branch'). Repository level only.
      • 'list_rule_suites': List rule suites, the evaluations of rules against pushes. Repository and organization levels only.
      • 'get_rule_suite': Get a specific rule suite by ID (requires 'rule_suite_id'). Repository and organization levels only. (string, required)
    • org: Organization name. Required when level is 'organization'. (string, optional)
    • owner: Repository owner. Required when level is 'repository'. (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • ref: The name of the ref (branch, tag, etc.) to filter rule suites by. Used by the 'list_rule_suites' method. (string, optional)
    • repo: Repository name. Required when level is 'repository'. (string, optional)
    • repository_name: Repository name to filter rule suites by. Used by the 'list_rule_suites' method at the organization level. (string, optional)
    • rule_suite_id: Rule suite ID. Required for the 'get_rule_suite' method. (number, optional)
    • rule_suite_result: The rule suite result to filter by. Used by the 'list_rule_suites' method. (string, optional)
    • ruleset_id: Ruleset ID. Required for the 'get' method. (number, optional)
    • time_period: The time period to filter rule suites by. Used by the 'list_rule_suites' method. (string, optional)

Issues

  • add_issue_comment - Add comment to issue or pull request

    • OAuth Challenge Scopes: repo
    • body: Comment content. Required unless reaction is provided. (string, optional)
    • comment_id: The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself. Cannot be combined with body. (integer, optional)
    • issue_number: Issue or pull request number to comment on or react to. (number, required)
    • owner: Repository owner (string, required)
    • reaction: Emoji reaction to add. Required unless body is provided. (string, optional)
    • repo: Repository name (string, required)
  • get_label - Get a specific label from a repository

    • OAuth Challenge Scopes: repo
    • name: Label name. (string, required)
    • owner: Repository owner (username or organization name) (string, required)
    • repo: Repository name (string, required)
  • issue_read - Get issue details

    • OAuth Challenge Scopes: repo
    • issue_number: The number of the issue (number, required)
    • method: The read operation to perform on a single issue. Options are:
      1. get - Get issue details. Also returns best-effort hierarchy flags (has_parent, has_children); parent and sub_issues_summary are optional relationship summaries, and closed_by_pull_requests summarizes the pull requests configured to close the issue as total_count plus up to 5 references.
      2. get_comments - Get issue comments.
      3. get_sub_issues - Get sub-issues (children) of the issue.
      4. get_parent - Get the parent issue, if this issue is a sub-issue of another.
      5. get_labels - Get labels assigned to the issue. (string, required)
    • owner: The owner of the repository (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: The name of the repository (string, required)
  • issue_write - Create or update issue/pull request

    • OAuth Challenge Scopes: repo
    • assignees: Usernames to assign to this issue (string[], optional)
    • body: Issue body content (string, optional)
    • duplicate_of: Issue number that this issue is a duplicate of. Required when state_reason is 'duplicate'. (number, optional)
    • issue_fields: Issue field values to set or clear. Each item requires 'field_name' and exactly one of 'value', 'field_option_name', or 'delete: true'. (object[], optional)
    • issue_number: Issue number to update (number, optional)
    • labels: Labels to apply to this issue (string[], optional)
    • method: Write operation to perform on a single issue. Options are:
      • 'create' - creates a new issue.
      • 'update' - updates an existing issue. (string, required)
    • milestone: Milestone number (number, optional)
    • owner: Repository owner (string, required)
    • parent_issue_number: Issue number of the parent issue. Only used when method is 'create' and cannot be combined with issue_fields. The new issue is created and attached to this parent in the same operation. (number, optional)
    • parent_owner: Repository owner of the parent issue. Must be provided with parent_repo. Omit both to use owner and repo. Only used when method is 'create' and parent_issue_number is provided. (string, optional)
    • parent_repo: Repository name of the parent issue. Must be provided with parent_owner. Omit both to use owner and repo. Only used when method is 'create' and parent_issue_number is provided. (string, optional)
    • repo: Repository name (string, required)
    • state: New state (string, optional)
    • state_reason: Reason for the state change. Ignored unless state is changed. (string, optional)
    • title: Issue title (string, optional)
    • type: Type of this issue. For updates, pass null to remove the current type. Only use if issue types are enabled for this repository. Use list_issue_types to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string | null, optional)
  • list_issue_fields - List issue fields

    • OAuth Challenge Scopes: repo, read:org
    • owner: The account owner of the repository or organization. The name is not case sensitive. (string, required)
    • repo: The name of the repository. When provided, returns fields for this specific repository (inherited from its organization). When omitted, returns org-level fields directly. (string, optional)
  • list_issue_types - List available issue types

    • OAuth Challenge Scopes: repo, read:org
    • owner: The account owner of the repository or organization. (string, required)
    • repo: The name of the repository. When provided, returns issue types for this specific repository. When omitted, returns org-level issue types directly. (string, optional)
  • list_issues - List issues

    • OAuth Challenge Scopes: repo
    • after: Cursor for pagination. Use the cursor from the previous response. (string, optional)
    • direction: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
    • field_filters: Filter by custom issue field values. Each entry takes a field_name and a value; the server looks up the field and coerces the value to its type (single-select option name, text, number, or YYYY-MM-DD date). (object[], optional)
    • fields: Subset of fields to return for each issue. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body' and 'field_values' in particular drops the largest per-result data. (string[], optional)
    • labels: Filter by labels (string[], optional)
    • orderBy: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
    • owner: Repository owner (string, required)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
    • since: Filter by date (ISO 8601 timestamp) (string, optional)
    • state: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
  • search_issues - Search issues

    • OAuth Challenge Scopes: repo
    • fields: Subset of fields to return for each issue result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body', 'reactions', and 'labels' in particular drops the largest per-result data. (string[], optional)
    • order: Sort order (string, optional)
    • owner: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR. (string, required)
    • repo: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
    • sort: Sort field by number of matches of categories, defaults to best match (string, optional)
  • sub_issue_write - Change sub-issue

    • OAuth Challenge Scopes: repo
    • after_id: The ID of the sub-issue to be prioritized after (either after_id OR before_id should be specified) (number, optional)
    • before_id: The ID of the sub-issue to be prioritized before (either after_id OR before_id should be specified) (number, optional)
    • issue_number: The number of the parent issue (number, required)
    • method: The action to perform on a single sub-issue Options are:
      • 'add' - add a sub-issue to a parent issue in a GitHub repository.
      • 'remove' - remove a sub-issue from a parent issue in a GitHub repository.
      • 'reprioritize' - change the order of sub-issues within a parent issue in a GitHub repository. Use either 'after_id' or 'before_id' to specify the new position. Writes issue hierarchy. To move a sub-issue to a new parent, use add with replace_parent=true; there is no writable parent field. (string, required)
    • owner: Repository owner (string, required)
    • replace_parent: When true, replaces the sub-issue's current parent issue. Use with 'add' method only. (boolean, optional)
    • repo: Repository name (string, required)
    • sub_issue_id: The ID of the sub-issue to add. ID is not the same as issue number (number, required)
  • update_issue_comment - Update issue comment

    • OAuth Challenge Scopes: repo
    • body: New comment content (string, required)
    • comment_id: The numeric ID of the issue or pull request conversation comment to update. Do not use a pull request review comment ID. (integer, required)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)

Labels

  • get_label - Get a specific label from a repository

    • OAuth Challenge Scopes: repo
    • name: Label name. (string, required)
    • owner: Repository owner (username or organization name) (string, required)
    • repo: Repository name (string, required)
  • label_write - Write operations on repository labels

    • OAuth Challenge Scopes: repo
    • color: Label color as 6-character hex code without '#' prefix (e.g., 'f29513'). Required for 'create', optional for 'update'. (string, optional)
    • description: Label description text. Optional for 'create' and 'update'. (string, optional)
    • method: Operation to perform: 'create', 'update', or 'delete' (string, required)
    • name: Label name - required for all operations (string, required)
    • new_name: New name for the label (used only with 'update' method to rename) (string, optional)
    • owner: Repository owner (username or organization name) (string, required)
    • repo: Repository name (string, required)
  • list_label - List labels from a repository

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (username or organization name) - required for all operations (string, required)
    • repo: Repository name - required for all operations (string, required)

Notifications

  • dismiss_notification - Dismiss notification

    • OAuth Challenge Scopes: notifications
    • state: The new state of the notification (read/done) (string, required)
    • threadID: The ID of the notification thread (string, required)
  • get_notification_details - Get notification details

    • OAuth Challenge Scopes: notifications
    • notificationID: The ID of the notification (string, required)
  • list_notifications - List notifications

    • OAuth Challenge Scopes: notifications
    • before: Only show notifications updated before the given time (ISO 8601 format) (string, optional)
    • filter: Filter notifications to, use default unless specified. Read notifications are ones that have already been acknowledged by the user. Participating notifications are those that the user is directly involved in, such as issues or pull requests they have commented on or created. (string, optional)
    • owner: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
    • since: Only show notifications updated after the given time (ISO 8601 format) (string, optional)
  • manage_notification_subscription - Manage notification subscription

    • OAuth Challenge Scopes: notifications
    • action: Action to perform: ignore, watch, or delete the notification subscription. (string, required)
    • notificationID: The ID of the notification thread. (string, required)
  • manage_repository_notification_subscription - Manage repository notification subscription

    • OAuth Challenge Scopes: notifications
    • action: Action to perform: ignore, watch, or delete the repository notification subscription. (string, required)
    • owner: The account owner of the repository. (string, required)
    • repo: The name of the repository. (string, required)
  • mark_all_notifications_read - Mark all notifications as read

    • OAuth Challenge Scopes: notifications
    • lastReadAt: Describes the last point that notifications were checked (optional). Default: Now (string, optional)
    • owner: Optional repository owner. If provided with repo, only notifications for this repository are marked as read. (string, optional)
    • repo: Optional repository name. If provided with owner, only notifications for this repository are marked as read. (string, optional)

Organizations

  • search_orgs - Search organizations
    • OAuth Challenge Scopes: read:org
    • order: Sort order (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: Organization search query. Examples: 'microsoft', 'location:california', 'created:>=2025-01-01'. Search is automatically scoped to type:org. (string, required)
    • sort: Sort field by category (string, optional)

Projects

  • projects_get - Get details of GitHub Projects resources

    • OAuth Challenge Scopes: read:project
    • field_id: The field's ID. Required for 'get_project_field' method. (number, optional)
    • field_names: Specific list of field names to include in the response when getting a project item (e.g. ["Status", "Priority"]). Resolved server-side to field IDs — pass this instead of 'fields' when you only know the human-readable names. Mutually exclusive with 'fields' — provide one, not both. Only used for 'get_project_item' method. (string[], optional)
    • fields: Specific list of field IDs to include in the response when getting a project item (e.g. ["102589", "985201", "169875"]). If neither 'fields' nor 'field_names' is provided, only the title field is included. Mutually exclusive with 'field_names' — provide one, not both. Only used for 'get_project_item' method. (string[], optional)
    • item_id: The item's ID. Required for 'get_project_item' method. (number, optional)
    • method: The method to execute (string, required)
    • owner: The owner (user or organization login). The name is not case sensitive. (string, optional)
    • owner_type: Owner type (user or org). If not provided, will be automatically detected. (string, optional)
    • project_number: The project's number. (number, optional)
    • status_update_id: The node ID of the project status update. Required for 'get_project_status_update' method. (string, optional)
    • view_id: The node ID of the project view. Required for 'get_project_view' method. (string, optional)
  • projects_list - List GitHub Projects resources

    • OAuth Challenge Scopes: read:project
    • after: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
    • before: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
    • field_names: Field names to include when listing project items (e.g. ["Status", "Priority"]). Resolved server-side to field IDs — pass this instead of 'fields' when you only know the human-readable names. Names that fail to resolve return a structured error. Mutually exclusive with 'fields' — provide one, not both. Only used for 'list_project_items' method. (string[], optional)
    • fields: Field IDs to include when listing project items (e.g. ["102589", "985201"]). CRITICAL: Always provide to get field values. Without this (and without 'field_names'), only titles returned. Mutually exclusive with 'field_names' — provide one, not both. Only used for 'list_project_items' method. (string[], optional)
    • method: The action to perform (string, required)
    • owner: The owner (user or organization login). The name is not case sensitive. (string, required)
    • owner_type: Owner type (user or org). If not provided, will automatically try both. (string, optional)
    • perPage: Results per page (max 50) (number, optional)
    • project_number: The project's number. Required for 'list_project_fields', 'list_project_items', 'list_project_views', and 'list_project_status_updates' methods. (number, optional)
    • query: Filter/query string. For list_projects: filter by title text and state (e.g. "roadmap is:open"). For list_project_items: advanced filtering using GitHub's project filtering syntax. (string, optional)
  • projects_write - Manage GitHub Projects

    • OAuth Challenge Scopes: project
    • body: The body of the status update (markdown). Used for 'create_project_status_update' method. (string, optional)
    • field_name: The name of the iteration field (e.g. 'Sprint'). Required for 'create_iteration_field' method. (string, optional)
    • filter: Saved view filter; omit on update to preserve it, or pass null to clear it. (string | null, optional)
    • issue_number: The issue number. Required for 'add_project_item' when item_type is 'issue'. Also accepted by 'update_project_item' to resolve the item by issue number (combine with item_owner and item_repo). (number, optional)
    • item_id: The project item ID. Required for 'delete_project_item'. For 'update_project_item', provide either item_id, or (item_owner + item_repo + issue_number) to resolve the item by issue. (number, optional)
    • item_owner: The owner (user or organization) of the repository containing the issue or pull request. Required for 'add_project_item' method. Also accepted by 'update_project_item' when resolving the item by issue number. (string, optional)
    • item_repo: The name of the repository containing the issue or pull request. Required for 'add_project_item' method. Also accepted by 'update_project_item' when resolving the item by issue number. (string, optional)
    • item_type: The item's type, either issue or pull_request. Required for 'add_project_item' method. (string, optional)
    • items: The items to update with the top-level 'updated_field'. Required for 'update_project_items'; prefer it over calling 'update_project_item' in a loop. Each entry must match exactly one reference variant: 'node_id', numeric 'item_id', or 'item_owner' + 'item_repo' + 'issue_number'. Limit: 50 items per call. (object[], optional)
    • iteration_duration: Duration in days for iterations of the field (e.g. 7 for weekly, 14 for bi-weekly). Required for 'create_iteration_field' method. (number, optional)
    • iterations: Custom iterations for 'create_iteration_field' method. Only set this when you need iterations with varying durations, breaks between them, or specific titles. Otherwise omit it: GitHub auto-creates three iterations of 'iteration_duration' days starting on 'start_date', which is the right choice for most cases. (object[], optional)
    • layout: View layout; required when creating a view. (string, optional)
    • method: The method to execute (string, required)
    • name: View name; required when creating a view. (string, optional)
    • owner: The project owner (user or organization login). The name is not case sensitive. (string, required)
    • owner_type: Owner type (user or org). Required for 'create_project' method. If not provided for other methods, will be automatically detected. (string, optional)
    • project_number: The project's number. Required for all methods except 'create_project'. (number, optional)
    • pull_request_number: The pull request number (use when item_type is 'pull_request' for 'add_project_item' method). Provide either issue_number or pull_request_number. (number, optional)
    • start_date: Start date in YYYY-MM-DD format. Used for 'create_project_status_update' and 'create_iteration_field' methods. (string, optional)
    • status: The status of the project. Used for 'create_project_status_update' method. (string, optional)
    • target_date: The target date of the status update in YYYY-MM-DD format. Used for 'create_project_status_update' method. (string, optional)
    • title: The project title. Required for 'create_project' method. (string, optional)
    • updated_field: The field/value to apply, using {"id": 123, "value": ...} or {"name": "Status", "value": ...}; null clears the field. Required for 'update_project_item' and 'update_project_items', where one top-level field/value applies to every item in a batch. For 'update_project_item' SINGLE_SELECT fields, the name form accepts option names; the ID form expects an option ID. (object, optional)
    • view_id: Project view node ID for update or delete; must belong to owner/project_number. (string, optional)
    • visible_field_names: Ordered project field names to show on create or replace on update; omit on update to preserve, or pass [] to reset. Mutually exclusive with visible_fields. Roadmap accepts only []. (string[], optional)
    • visible_fields: Ordered project field database IDs to show on create or replace on update; omit on update to preserve, or pass [] to reset. Mutually exclusive with visible_field_names. Roadmap accepts only []. (string[], optional)

Pull Requests

  • add_comment_to_pending_review - Add review comment to the requester's latest pending pull request review

    • OAuth Challenge Scopes: repo
    • body: The text of the review comment (string, required)
    • line: The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range (number, optional)
    • owner: Repository owner (string, required)
    • path: The relative path to the file that necessitates a comment (string, required)
    • pullNumber: Pull request number (number, required)
    • repo: Repository name (string, required)
    • side: The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
    • startLine: For multi-line comments, the first line of the range that the comment applies to (number, optional)
    • startSide: For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
    • subjectType: The level at which the comment is targeted (string, required)
  • add_reply_to_pull_request_comment - Add reply to pull request comment

    • OAuth Challenge Scopes: repo
    • body: The text of the reply. Required unless reaction is provided. (string, optional)
    • commentId: The numeric ID of the pull request review comment to reply or react to. Use the number from a #discussion_r... anchor, not the GraphQL thread node ID (PRRT_...). (number, required)
    • owner: Repository owner (string, required)
    • pullNumber: Pull request number. Required when body is provided. (number, optional)
    • reaction: Emoji reaction to add. Required unless body is provided. (string, optional)
    • repo: Repository name (string, required)
  • create_pull_request - Open new pull request

    • OAuth Challenge Scopes: repo
    • base: Branch to merge into (string, required)
    • body: PR description (string, optional)
    • draft: Create as draft PR (boolean, optional)
    • head: Branch containing changes (string, required)
    • maintainer_can_modify: Allow maintainer edits (boolean, optional)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
    • reviewers: GitHub usernames or ORG/team-slug team reviewers to request reviews from (string[], optional)
    • title: PR title (string, required)
  • list_pull_requests - List pull requests

    • OAuth Challenge Scopes: repo
    • base: Filter by base branch (string, optional)
    • direction: Sort direction (string, optional)
    • fields: Subset of fields to return for each pull request. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body' in particular drops the largest per-result data. (string[], optional)
    • head: Filter by head user/org and branch (string, optional)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
    • sort: Sort by (string, optional)
    • state: Filter by state (string, optional)
  • merge_pull_request - Merge pull request

    • OAuth Challenge Scopes: repo
    • commit_message: Extra detail for merge commit (string, optional)
    • commit_title: Title for merge commit (string, optional)
    • expectedHeadSha: The expected SHA of the pull request's HEAD ref (string, optional)
    • merge_method: Merge method (string, optional)
    • owner: Repository owner (string, required)
    • pullNumber: Pull request number (number, required)
    • repo: Repository name (string, required)
  • pull_request_read - Get details for a single pull request

    • OAuth Challenge Scopes: repo
    • after: Cursor for pagination, used only by the get_review_comments method. Pass the endCursor from the previous page's PageInfo to fetch the next page. (string, optional)
    • method: Action to specify what pull request data needs to be retrieved from GitHub. Possible options:
      1. get - Get details of a specific pull request.
      2. get_diff - Get the diff of a pull request.
      3. get_status - Get combined commit status of a head commit in a pull request.
      4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.
      5. get_commits - Get the list of commits on a pull request. Use with pagination parameters to control the number of results returned.
      6. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns thread metadata and comments with nullable current and original line-range coordinates (line, start_line, original_line, original_start_line). Current coordinates are omitted when unavailable, such as for outdated comments. Use cursor-based pagination (perPage, after) to control results.
      7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.
      8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
      9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR. (string, required)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • pullNumber: Pull request number (number, required)
    • repo: Repository name (string, required)
  • pull_request_review_write - Write operations (create, submit, delete) on pull request reviews

    • OAuth Challenge Scopes: repo
    • body: Review comment text (string, optional)
    • commitID: SHA of commit to review (string, optional)
    • event: Review action to perform. (string, optional)
    • method: The write operation to perform on pull request review. (string, required)
    • owner: Repository owner (string, required)
    • pullNumber: Pull request number (number, required)
    • repo: Repository name (string, required)
    • threadId: The node ID of the review thread (e.g., PRRT_kwDOxxx). Required for resolve_thread and unresolve_thread methods. Get thread IDs from pull_request_read with method get_review_comments. (string, optional)
  • search_pull_requests - Search pull requests

    • OAuth Challenge Scopes: repo
    • fields: Subset of fields to return for each pull request result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body', 'reactions', and 'labels' in particular drops the largest per-result data. (string[], optional)
    • order: Sort order (string, optional)
    • owner: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: Search query using GitHub pull request search syntax (string, required)
    • repo: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
    • sort: Sort field by number of matches of categories, defaults to best match (string, optional)
  • update_pull_request - Edit pull request

    • OAuth Challenge Scopes: repo
    • base: New base branch name (string, optional)
    • body: New description (string, optional)
    • draft: Mark pull request as draft (true) or ready for review (false) (boolean, optional)
    • maintainer_can_modify: Allow maintainer edits (boolean, optional)
    • owner: Repository owner (string, required)
    • pullNumber: Pull request number to update (number, required)
    • repo: Repository name (string, required)
    • reviewers: GitHub usernames or ORG/team-slug team reviewers to request reviews from (string[], optional)
    • state: New state (string, optional)
    • title: New title (string, optional)
  • update_pull_request_branch - Update pull request branch

    • OAuth Challenge Scopes: repo
    • expectedHeadSha: The expected SHA of the pull request's HEAD ref (string, optional)
    • owner: Repository owner (string, required)
    • pullNumber: Pull request number (number, required)
    • repo: Repository name (string, required)

Repositories

  • create_branch - Create branch

    • OAuth Challenge Scopes: repo
    • branch: Name for new branch (string, required)
    • from_branch: Source branch (defaults to repo default) (string, optional)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • create_or_update_file - Create or update file

    • OAuth Challenge Scopes: repo, workflow
    • allow_symlink_write: Set true to update a symbolic link itself; content must be its new target path. (boolean, optional)
    • branch: Branch to create/update the file in (string, required)
    • content: Content of the file, exactly as it should appear once written. Do not base64-encode it; this server does that before calling the REST API. (string, required)
    • message: Commit message (string, required)
    • owner: Repository owner (username or organization) (string, required)
    • path: Path where to create/update the file (string, required)
    • repo: Repository name (string, required)
    • sha: The blob SHA of the file being replaced. Required if the file already exists. Retrieve it with get_file_contents using the same owner, repo, and path, with ref set to this tool's branch value. (string, optional)
  • create_repository - Create repository

    • OAuth Challenge Scopes: repo
    • autoInit: Initialize with README (boolean, optional)
    • description: Repository description (string, optional)
    • name: Repository name (string, required)
    • organization: Organization to create the repository in (omit to create in your personal account) (string, optional)
    • private: Whether the repository should be private. Defaults to true (private) when omitted. (boolean, optional)
  • delete_file - Delete file

    • OAuth Challenge Scopes: repo, workflow
    • branch: Branch to delete the file from (string, required)
    • message: Commit message (string, required)
    • owner: Repository owner (username or organization) (string, required)
    • path: Path to the file to delete (string, required)
    • repo: Repository name (string, required)
  • delete_repository - Delete repository

    • OAuth Challenge Scopes: delete_repo, repo
    • owner: Repository owner (username or organization) (string, required)
    • repo: Repository name (string, required)
  • fork_repository - Fork repository

    • OAuth Challenge Scopes: repo
    • organization: Organization to fork to (string, optional)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • get_commit - Get commit details

    • OAuth Challenge Scopes: repo
    • detail: Level of detail to include for changed files. "none" omits stats and files entirely. "stats" (default) includes per-file metadata: filename, status, and lines-of-code counts (additions, deletions, changes), with no patch content. "full_patch" additionally includes the unified diff content for each file and can be very large. (string, optional)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
    • sha: Commit SHA, branch name, or tag name (string, required)
  • get_file_contents - Get file or directory contents

    • OAuth Challenge Scopes: repo
    • fields: Subset of fields to return for each entry when the path is a directory. If omitted, all fields are returned. Ignored when the path is a single file. Use this to reduce response size when listing directories and you only need specific fields, e.g. just 'name' and 'type'. (string[], optional)
    • owner: Repository owner (username or organization) (string, required)
    • path: Path to file/directory (string, optional)
    • ref: Accepts optional git refs such as refs/tags/{tag}, refs/heads/{branch} or refs/pull/{pr_number}/head (string, optional)
    • repo: Repository name (string, required)
    • sha: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
  • get_latest_release - Get latest release

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • get_release_by_tag - Get a release by tag name

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
    • tag: Tag name (e.g., 'v1.0.0') (string, required)
  • get_tag - Get tag details

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
    • tag: Tag name (string, required)
  • list_branches - List branches

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
  • list_commits - List commits

    • OAuth Challenge Scopes: repo
    • author: Author username or email address to filter commits by (string, optional)
    • fields: Subset of fields to return for each commit. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields, e.g. just 'sha' and 'html_url'. (string[], optional)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • path: Only commits containing this file path will be returned (string, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
    • sha: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
    • since: Only commits after this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD) (string, optional)
    • until: Only commits before this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD) (string, optional)
  • list_releases - List releases

    • OAuth Challenge Scopes: repo
    • fields: Subset of fields to return for each release. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body' in particular drops the largest per-release data. (string[], optional)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
  • list_repository_collaborators - List repository collaborators

    • OAuth Challenge Scopes: repo
    • affiliation: Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all' (string, optional)
    • owner: Repository owner (string, required)
    • page: Page number for pagination (default 1, min 1) (number, optional)
    • perPage: Results per page for pagination (default 30, min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
  • list_tags - List tags

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: Repository name (string, required)
  • push_files - Push files to repository

    • OAuth Challenge Scopes: repo, workflow
    • branch: Branch to push to (string, required)
    • files: Array of file objects to push, each object with path (string) and content (string) (object[], required)
    • message: Commit message (string, required)
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • search_code - Search code

    • OAuth Challenge Scopes: repo
    • fields: Subset of fields to return for each code search result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'repository' and 'text_matches' in particular drops the largest per-result data. (string[], optional)
    • order: Sort order for results (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: Search query (GitHub code search REST). Implicit AND between terms; supports OR, NOT, and "quoted phrase" for exact match. Qualifiers: repo:owner/repo, org:, user:, language:, path:dir (prefix match), filename:exact.ext, extension:, in:file, in:path, size:, is:archived, is:fork. Max 256 chars. Examples: WithContext language:go org:github; "package main" repo:o/r; func extension:go path:cmd repo:o/r; NOT TODO language:go repo:o/r. (string, required)
    • sort: Sort field ('indexed' only) (string, optional)
  • search_commits - Search commits

    • OAuth Challenge Scopes: repo
    • order: Sort order (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: Commit search query (GitHub commit search REST). Searches commit messages on the default branch only. Scope the search with repo:owner/repo, org:, or user: (queries without a scope qualifier match across all of GitHub and are usually not what you want). Other qualifiers: author:, committer:, author-name:, committer-name:, author-email:, committer-email:, author-date:, committer-date: (supports >, <, >=, <=, and YYYY-MM-DD..YYYY-MM-DD ranges), merge:true|false, hash:, tree:, parent:, is:public. Examples: repo:owner/repo fix panic; org:github author:defunkt committer-date:>=2024-01-01; "refactor cache" repo:o/r; hash:abc1234 repo:o/r. (string, required)
    • sort: Sort by author or committer date (defaults to best match) (string, optional)
  • search_repositories - Search repositories

    • OAuth Challenge Scopes: repo
    • minimal_output: Return minimal repository information (default: true). When false, returns full GitHub API repository objects. (boolean, optional)
    • order: Sort order (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
    • sort: Sort repositories by field, defaults to best match (string, optional)

Secret Protection

  • get_secret_scanning_alert - Get secret scanning alert

    • OAuth Challenge Scopes: security_events
    • alertNumber: The number of the alert. (number, required)
    • owner: The owner of the repository. (string, required)
    • repo: The name of the repository. (string, required)
  • list_secret_scanning_alerts - List secret scanning alerts

    • OAuth Challenge Scopes: security_events
    • owner: The owner of the repository. (string, required)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • repo: The name of the repository. (string, required)
    • resolution: Filter by resolution (string, optional)
    • secret_type: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. (string, optional)
    • state: Filter by state (string, optional)

Security Advisories

  • get_global_security_advisory - Get a global security advisory

    • OAuth Challenge Scopes: security_events
    • ghsaId: GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx). (string, required)
  • list_global_security_advisories - List global security advisories

    • OAuth Challenge Scopes: security_events
    • affects: Filter advisories by affected package or version (e.g. "package1,[email protected]"). (string, optional)
    • cveId: Filter by CVE ID. (string, optional)
    • cwes: Filter by Common Weakness Enumeration IDs (e.g. ["79", "284", "22"]). (string[], optional)
    • ecosystem: Filter by package ecosystem. (string, optional)
    • ghsaId: Filter by GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx). (string, optional)
    • isWithdrawn: Whether to only return withdrawn advisories. (boolean, optional)
    • modified: Filter by publish or update date or date range (ISO 8601 date or range). (string, optional)
    • published: Filter by publish date or date range (ISO 8601 date or range). (string, optional)
    • severity: Filter by severity. (string, optional)
    • type: Advisory type. (string, optional)
    • updated: Filter by update date or date range (ISO 8601 date or range). (string, optional)
  • list_org_repository_security_advisories - List org repository security advisories

    • OAuth Challenge Scopes: security_events
    • direction: Sort direction. (string, optional)
    • org: The organization login. (string, required)
    • sort: Sort field. (string, optional)
    • state: Filter by advisory state. (string, optional)
  • list_repository_security_advisories - List repository security advisories

    • OAuth Challenge Scopes: security_events
    • direction: Sort direction. (string, optional)
    • owner: The owner of the repository. (string, required)
    • repo: The name of the repository. (string, required)
    • sort: Sort field. (string, optional)
    • state: Filter by advisory state. (string, optional)

Stargazers

  • list_starred_repositories - List starred repositories

    • OAuth Challenge Scopes: repo
    • direction: The direction to sort the results by. (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • sort: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
    • username: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
  • star_repository - Star repository

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)
  • unstar_repository - Unstar repository

    • OAuth Challenge Scopes: repo
    • owner: Repository owner (string, required)
    • repo: Repository name (string, required)

Users

  • search_users - Search users
    • OAuth Challenge Scopes: repo
    • order: Sort order (string, optional)
    • page: Page number for pagination (min 1) (number, optional)
    • perPage: Results per page for pagination (min 1, max 100) (number, optional)
    • query: User search query. Examples: 'john smith', 'location:seattle', 'followers:>100'. Search is automatically scoped to type:user. (string, required)
    • sort: Sort users by number of followers or repositories, or when the person joined GitHub. (string, optional)
<!-- END AUTOMATED TOOLS -->

Additional Tools in Remote GitHub MCP Server

Copilot

  • create_pull_request_with_copilot - Perform task with GitHub Copilot coding agent
    • owner: Repository owner. You can guess the owner, but confirm it with the user before proceeding. (string, required)
    • repo: Repository name. You can guess the repository name, but confirm it with the user before proceeding. (string, required)
    • problem_statement: Detailed description of the task to be performed (e.g., 'Implement a feature that does X', 'Fix bug Y', etc.) (string, required)
    • title: Title for the pull request that will be created (string, required)
    • base_ref: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)

Copilot Spaces

  • Authentication note

    • Fine-grained PATs are not hidden by classic PAT scope filtering, so these tools may still appear even when the token cannot use them.
    • For org-owned spaces, fine-grained PATs must be installed on the owning organization and include organization_copilot_spaces: read.
    • If an org-owned space contains repository-backed resources, the token must also have access to every referenced repository or the space may be treated as not found.
  • get_copilot_space - Get Copilot Space

    • owner: The owner of the space. (string, required)
    • name: The name of the space. (string, required)
  • list_copilot_spaces - List Copilot Spaces

GitHub Support Docs Search

  • github_support_docs_search - Retrieve documentation relevant to answer GitHub product and support questions. Support topics include: GitHub Actions Workflows, Authentication, GitHub Support Inquiries, Pull Request Practices, Repository Maintenance, GitHub Pages, GitHub Packages, GitHub Discussions, Copilot Spaces
    • query: Input from the user about the question they need answered. This is the latest raw unedited user message. You should ALWAYS leave the user message as it is, you should never modify it. (string, required)

Read-Only Mode

To run the server in read-only mode, you can use the --read-only flag. This will only offer read-only tools, preventing any modifications to repositories, issues, pull requests, etc.

./github-mcp-server --read-only

When using Docker, you can pass the read-only mode as an environment variable:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_READ_ONLY=1 \
  ghcr.io/github/github-mcp-server

Lockdown Mode

Lockdown mode limits the content that the server will surface from public repositories. When enabled, the server checks whether the author of each item has push access to the repository. Private repositories are unaffected, and collaborators keep full access to their own content.

Lockdown mode is a best-effort content filter intended to reduce the risk of prompt injection from untrusted repository content (issues, pull requests, comments, commits, etc.). It is not an authorization boundary: it does not change what the underlying GitHub credential can read or write, and content withheld from a filtered tool response may still be reachable through other tools or direct GitHub API access with the same credential.

As an intentional exception, content authored by a small set of trusted bot accounts (currently github-actions[bot] and copilot) is always treated as safe, regardless of push access. This avoids filtering routine automation output (e.g. CI-generated commits or comments) that would otherwise be withheld under lockdown mode.

./github-mcp-server --lockdown-mode

When running with Docker, set the corresponding environment variable:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_LOCKDOWN_MODE=1 \
  ghcr.io/github/github-mcp-server

In HTTP mode, this flag (or GITHUB_LOCKDOWN_MODE) is an upper bound: the X-MCP-Lockdown request header can enable lockdown mode when the operator has not, but it cannot disable lockdown mode the operator has already enabled. See the Server Configuration Guide for details.

The behavior of lockdown mode depends on the tool invoked.

Following tools will return an error when the author lacks the push access:

  • issue_read:get
  • pull_request_read:get
  • pull_request_read:get_diff
  • pull_request_read:get_files
  • pull_request_read:get_commits

Following tools will filter out content from users lacking the push access:

  • issue_read:get_comments
  • issue_read:get_sub_issues
  • pull_request_read:get_comments
  • pull_request_read:get_review_comments
  • pull_request_read:get_reviews

i18n / Overriding Descriptions

The descriptions of the tools can be overridden by creating a github-mcp-server-config.json file in the same directory as the binary.

The file should contain a JSON object with the tool names as keys and the new descriptions as values. For example:

{
  "TOOL_ADD_ISSUE_COMMENT_DESCRIPTION": "an alternative description",
  "TOOL_CREATE_BRANCH_DESCRIPTION": "Create a new branch in a GitHub repository"
}

You can create an export of the current translations by running the binary with the --export-translations flag.

This flag will preserve any translations/overrides you have made, while adding any new translations that have been added to the binary since the last time you exported.

./github-mcp-server --export-translations
cat github-mcp-server-config.json

You can also use ENV vars to override the descriptions. The environment variable names are the same as the keys in the JSON file, prefixed with GITHUB_MCP_ and all uppercase.

For example, to override the TOOL_ADD_ISSUE_COMMENT_DESCRIPTION tool, you can set the following environment variable:

export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"

Overriding Server Name and Title

The same override mechanism can be used to customize the MCP server's name and title fields in the initialization response. This is useful when running multiple GitHub MCP Server instances (e.g., one for github.com and one for GitHub Enterprise Server) so that agents can distinguish between them.

Key Environment Variable Default
SERVER_NAME GITHUB_MCP_SERVER_NAME github-mcp-server
SERVER_TITLE GITHUB_MCP_SERVER_TITLE GitHub MCP Server

For example, to configure a server instance for GitHub Enterprise Server:

{
  "SERVER_NAME": "ghes-mcp-server",
  "SERVER_TITLE": "GHES MCP Server"
}

Or using environment variables:

export GITHUB_MCP_SERVER_NAME="ghes-mcp-server"
export GITHUB_MCP_SERVER_TITLE="GHES MCP Server"

Library Usage

The exported Go API of this module should currently be considered unstable, and subject to breaking changes. In the future, we may offer stability; please file an issue if there is a use case where this would be valuable.

Contributing

Contributions are welcome. Before opening a pull request, please read the contributing guide for setup, testing, linting, and documentation generation instructions.

Support

For help using the GitHub MCP Server, see the support guide. If you have found a bug or want to request a feature, please search existing issues before opening a new one.

Security

Please do not report security vulnerabilities through public issues. Follow the instructions in the security policy to report vulnerabilities responsibly.

License

This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.

1[![Go Report Card](https://goreportcard.com/badge/github.com/github/github-mcp-server)](https://goreportcard.com/report/github.com/github/github-mcp-server)
2 
3# GitHub MCP Server
4 
5The GitHub MCP Server connects AI tools directly to GitHub's platform. This gives AI agents, assistants, and chatbots the ability to read repositories and code files, manage issues and PRs, analyze code, and automate workflows. All through natural language interactions.
6 
7### Use Cases
8 
9- Repository Management: Browse and query code, search files, analyze commits, and understand project structure across any repository you have access to.
10- Issue & PR Automation: Create, update, and manage issues and pull requests. Let AI help triage bugs, review code changes, and maintain project boards.
11- CI/CD & Workflow Intelligence: Monitor GitHub Actions workflow runs, analyze build failures, manage releases, and get insights into your development pipeline.
12- Code Analysis: Examine security findings, review Dependabot alerts, understand code patterns, and get comprehensive insights into your codebase.
13- Team Collaboration: Access discussions, manage notifications, analyze team activity, and streamline processes for your team.
14 
15Built for developers who want to connect their AI tools to GitHub context and capabilities, from simple natural language queries to complex multi-step agent workflows.
16 
17---
18 
19## Remote GitHub MCP Server
20 
21[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D&quality=insiders) [![Install in Visual Studio](https://img.shields.io/badge/Visual_Studio-Install_Server-C16FDE?style=flat-square&logo=visualstudio&logoColor=white)](https://aka.ms/vs/mcp-install?%7B%22name%22%3A%22github%22%2C%22gallery%22%3Atrue%2C%22url%22%3A%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D)
22 
23The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the [local version of the GitHub MCP Server](https://github.com/github/github-mcp-server?tab=readme-ov-file#local-github-mcp-server) instead.
24 
25### Prerequisites
26 
271. A compatible MCP host with remote server support (VS Code 1.101+, Claude Desktop, Cursor, Windsurf, etc.)
282. Any applicable [policies enabled](https://github.com/github/github-mcp-server/blob/main/docs/policies-and-governance.md)
29 
30### Install in VS Code
31 
32For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start. Make sure you're using [VS Code 1.101](https://code.visualstudio.com/updates/v1_101) or [later](https://code.visualstudio.com/updates) for remote MCP and OAuth support.
33 
34Alternatively, to manually configure VS Code, choose the appropriate JSON block from the examples below and add it to your host configuration:
35 
36<table>
37<tr><th>Using OAuth</th><th>Using a GitHub PAT</th></tr>
38<tr><th align=left colspan=2>VS Code (version 1.101 or greater)</th></tr>
39<tr valign=top>
40<td>
41 
42```json
43{
44 "servers": {
45 "github": {
46 "type": "http",
47 "url": "https://api.githubcopilot.com/mcp/"
48 }
49 }
50}
51```
52 
53</td>
54<td>
55 
56```json
57{
58 "servers": {
59 "github": {
60 "type": "http",
61 "url": "https://api.githubcopilot.com/mcp/",
62 "headers": {
63 "Authorization": "Bearer ${input:github_mcp_pat}"
64 }
65 }
66 },
67 "inputs": [
68 {
69 "type": "promptString",
70 "id": "github_mcp_pat",
71 "description": "GitHub Personal Access Token",
72 "password": true
73 }
74 ]
75}
76```
77 
78</td>
79</tr>
80</table>
81 
82### Install in other MCP hosts
83 
84- **[Copilot CLI](/docs/installation-guides/install-copilot-cli.md)** - Installation guide for GitHub Copilot CLI
85- **[GitHub Copilot in other IDEs](/docs/installation-guides/install-other-copilot-ides.md)** - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
86- **[Claude Applications](/docs/installation-guides/install-claude.md)** - Installation guide for Claude Desktop and Claude Code CLI
87- **[Codex](/docs/installation-guides/install-codex.md)** - Installation guide for OpenAI Codex
88- **[Cursor](/docs/installation-guides/install-cursor.md)** - Installation guide for Cursor IDE
89- **[OpenCode](/docs/installation-guides/install-opencode.md)** - Installation guide for the OpenCode terminal agent
90- **[Windsurf](/docs/installation-guides/install-windsurf.md)** - Installation guide for Windsurf IDE
91- **[Zed](/docs/installation-guides/install-zed.md)** - Installation guide for Zed editor
92- **[Rovo Dev CLI](/docs/installation-guides/install-rovo-dev-cli.md)** - Installation guide for Rovo Dev CLI
93 
94> **Note:** Each MCP host application needs to configure a GitHub App or OAuth App to support remote access via OAuth. Any host application that supports remote MCP servers should support the remote GitHub server with PAT authentication. Configuration details and support levels vary by host. Make sure to refer to the host application's documentation for more info.
95 
96### Configuration
97 
98#### Toolset configuration
99 
100See [Remote Server Documentation](docs/remote-server.md) for full details on remote server configuration, toolsets, headers, and advanced usage. This file provides comprehensive instructions and examples for connecting, customizing, and installing the remote GitHub MCP Server in VS Code and other MCP hosts.
101 
102When no toolsets are specified, [default toolsets](#default-toolset) are used.
103 
104#### Insiders Mode
105 
106> **Try new features early!** The remote server offers an insiders version with early access to new features and experimental tools.
107 
108<table>
109<tr><th>Using URL Path</th><th>Using Header</th></tr>
110<tr valign=top>
111<td>
112 
113```json
114{
115 "servers": {
116 "github": {
117 "type": "http",
118 "url": "https://api.githubcopilot.com/mcp/insiders"
119 }
120 }
121}
122```
123 
124</td>
125<td>
126 
127```json
128{
129 "servers": {
130 "github": {
131 "type": "http",
132 "url": "https://api.githubcopilot.com/mcp/",
133 "headers": {
134 "X-MCP-Insiders": "true"
135 }
136 }
137 }
138}
139```
140 
141</td>
142</tr>
143</table>
144 
145See [Remote Server Documentation](docs/remote-server.md#insiders-mode) for more details and examples, and [Insiders Features](docs/insiders-features.md) for a full list of what's available.
146 
147#### GitHub Enterprise
148 
149##### GitHub Enterprise Cloud with data residency (ghe.com)
150 
151GitHub Enterprise Cloud can also make use of the remote server.
152 
153Example for `https://octocorp.ghe.com` with GitHub PAT token:
154 
155```
156{
157 ...
158 "github-octocorp": {
159 "type": "http",
160 "url": "https://copilot-api.octocorp.ghe.com/mcp",
161 "headers": {
162 "Authorization": "Bearer ${input:github_mcp_pat}"
163 }
164 },
165 ...
166}
167```
168 
169> **Note:** When using OAuth with GitHub Enterprise with VS Code and GitHub Copilot, you also need to configure your VS Code settings to point to your GitHub Enterprise instance - see [Authenticate from VS Code](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/configure-personal-settings/authenticate-to-ghecom)
170 
171##### GitHub Enterprise Server
172 
173GitHub Enterprise Server does not support remote server hosting. Please refer to [GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)](#github-enterprise-server-and-enterprise-cloud-with-data-residency-ghecom) from the local server configuration.
174 
175---
176 
177## Local GitHub MCP Server
178 
179[![Install with Docker in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22-p%22%2C%22127.0.0.1%3A8085%3A8085%22%2C%22-e%22%2C%22GITHUB_OAUTH_CALLBACK_PORT%22%2C%22ghcr.io%2Fgithub%2Fgithub-mcp-server%22%5D%2C%22env%22%3A%7B%22GITHUB_OAUTH_CALLBACK_PORT%22%3A%228085%22%7D%7D) [![Install with Docker in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22-p%22%2C%22127.0.0.1%3A8085%3A8085%22%2C%22-e%22%2C%22GITHUB_OAUTH_CALLBACK_PORT%22%2C%22ghcr.io%2Fgithub%2Fgithub-mcp-server%22%5D%2C%22env%22%3A%7B%22GITHUB_OAUTH_CALLBACK_PORT%22%3A%228085%22%7D%7D&quality=insiders) [![Install with Docker in Visual Studio](https://img.shields.io/badge/Visual_Studio-Install_Server-C16FDE?style=flat-square&logo=visualstudio&logoColor=white)](https://aka.ms/vs/mcp-install?%7B%22name%22%3A%22github%22%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22-p%22%2C%22127.0.0.1%3A8085%3A8085%22%2C%22-e%22%2C%22GITHUB_OAUTH_CALLBACK_PORT%3D8085%22%2C%22ghcr.io%2Fgithub%2Fgithub-mcp-server%22%5D%7D)
180 
181### Prerequisites
182 
1831. To run the server in a container, you will need to have [Docker](https://www.docker.com/) installed.
1842. Once Docker is installed, you will also need to ensure Docker is running. The Docker image is available at `ghcr.io/github/github-mcp-server`. The image is public; if you get errors on pull, you may have an expired token and need to `docker logout ghcr.io`.
1853. **Authentication.** On github.com you don't need to create anything up front — the one-click buttons above log you in with OAuth on first use (a browser-based flow; the token is kept in memory only). The Docker buttons publish a fixed callback port (`127.0.0.1:8085`) so the container's login callback is reachable. See **[Local Server OAuth Login](docs/oauth-login.md)** for how it works, headless/device-code fallback, and bringing your own OAuth or GitHub App (required for GitHub Enterprise Server and `ghe.com`).
186 
187 Prefer a token? You can still authenticate with a [GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new) by setting `GITHUB_PERSONAL_ACCESS_TOKEN` instead (it takes precedence over OAuth). The MCP server can use many of the GitHub APIs, so enable the permissions that you feel comfortable granting your AI tools (to learn more about access tokens, please check out the [documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)).
188 
189<details><summary><b>Handling PATs Securely</b></summary>
190 
191### Environment Variables (Recommended)
192 
193To keep your GitHub PAT secure and reusable across different MCP hosts:
194 
1951. **Store your PAT in environment variables**
196 
197 ```bash
198 export GITHUB_PAT=your_token_here
199 ```
200 
201 Or create a `.env` file:
202 
203 ```env
204 GITHUB_PAT=your_token_here
205 ```
206 
2072. **Protect your `.env` file**
208 
209 ```bash
210 # Add to .gitignore to prevent accidental commits
211 echo ".env" >> .gitignore
212 ```
213 
2143. **Reference the token in configurations**
215 
216 ```bash
217 # CLI usage
218 claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
219 
220 # In config files (where supported)
221 "env": {
222 "GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
223 }
224 ```
225 
226> **Note**: Environment variable support varies by host app and IDE. Some applications (like Windsurf) require hardcoded tokens in config files.
227 
228### Token Security Best Practices
229 
230- **Minimum scopes**: Only grant necessary permissions
231 - `repo` - Repository operations
232 - `read:packages` - Docker image access
233 - `read:org` - Organization team access
234- **Separate tokens**: Use different PATs for different projects/environments
235- **Regular rotation**: Update tokens periodically
236- **Never commit**: Keep tokens out of version control
237- **File permissions**: Restrict access to config files containing tokens
238 
239 ```bash
240 chmod 600 ~/.your-app/config.json
241 ```
242 
243</details>
244 
245### GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)
246 
247The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set
248the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency.
249 
250- For GitHub Enterprise Server, prefix the hostname with the `https://` URI scheme. HTTPS is required and enforced: non-HTTPS hosts are refused so that credentials are never sent over cleartext (the only exception is a loopback host such as `http://localhost` for local development).
251- For GitHub Enterprise Cloud with data residency, use `https://YOURSUBDOMAIN.ghe.com` as the hostname.
252 
253``` json
254"github": {
255 "command": "docker",
256 "args": [
257 "run",
258 "-i",
259 "--rm",
260 "-e",
261 "GITHUB_PERSONAL_ACCESS_TOKEN",
262 "-e",
263 "GITHUB_HOST",
264 "ghcr.io/github/github-mcp-server"
265 ],
266 "env": {
267 "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}",
268 "GITHUB_HOST": "https://<your GHES or ghe.com domain name>"
269 }
270}
271```
272 
273## Installation
274 
275### Install in GitHub Copilot on VS Code
276 
277For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start.
278 
279More about using MCP server tools in VS Code's [agent mode documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
280 
281Install in GitHub Copilot on other IDEs (JetBrains, Visual Studio, Eclipse, etc.)
282 
283Add one of the following JSON blocks to your IDE's MCP settings.
284 
285**Log in with OAuth (no token to create or store).** On github.com the official image already includes the app credentials, so you provide none yourself: it runs a browser-based login on first use and keeps the resulting token **in memory only**. In Docker this needs a fixed callback port published to loopback so the container's login callback is reachable:
286 
287```json
288{
289 "mcp": {
290 "servers": {
291 "github": {
292 "command": "docker",
293 "args": [
294 "run",
295 "-i",
296 "--rm",
297 "-p",
298 "127.0.0.1:8085:8085",
299 "-e",
300 "GITHUB_OAUTH_CALLBACK_PORT",
301 "ghcr.io/github/github-mcp-server"
302 ],
303 "env": {
304 "GITHUB_OAUTH_CALLBACK_PORT": "8085"
305 }
306 }
307 }
308 }
309}
310```
311 
312See **[Local Server OAuth Login](docs/oauth-login.md)** for the native-binary flow (no fixed port needed), the headless/device-code fallback, GitHub Enterprise Server / `ghe.com`, and bringing your own OAuth or GitHub App.
313 
314For non-interactive stdio deployments, see **[GitHub App Authentication](docs/github-app-auth.md)**.
315 
316**Or authenticate with a Personal Access Token.** Set `GITHUB_PERSONAL_ACCESS_TOKEN` instead (it takes precedence over OAuth):
317 
318```json
319{
320 "mcp": {
321 "inputs": [
322 {
323 "type": "promptString",
324 "id": "github_token",
325 "description": "GitHub Personal Access Token",
326 "password": true
327 }
328 ],
329 "servers": {
330 "github": {
331 "command": "docker",
332 "args": [
333 "run",
334 "-i",
335 "--rm",
336 "-e",
337 "GITHUB_PERSONAL_ACCESS_TOKEN",
338 "ghcr.io/github/github-mcp-server"
339 ],
340 "env": {
341 "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
342 }
343 }
344 }
345 }
346}
347```
348 
349Optionally, you can add a similar example (i.e. without the mcp key) to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with other host applications that accept the same format.
350 
351<details>
352<summary><b>Example JSON block without the MCP key included</b></summary>
353<br>
354 
355```json
356{
357 "inputs": [
358 {
359 "type": "promptString",
360 "id": "github_token",
361 "description": "GitHub Personal Access Token",
362 "password": true
363 }
364 ],
365 "servers": {
366 "github": {
367 "command": "docker",
368 "args": [
369 "run",
370 "-i",
371 "--rm",
372 "-e",
373 "GITHUB_PERSONAL_ACCESS_TOKEN",
374 "ghcr.io/github/github-mcp-server"
375 ],
376 "env": {
377 "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
378 }
379 }
380 }
381}
382```
383 
384</details>
385 
386### Install in Other MCP Hosts
387 
388For other MCP host applications, please refer to our installation guides:
389 
390- **[Copilot CLI](docs/installation-guides/install-copilot-cli.md)** - Installation guide for GitHub Copilot CLI
391- **[GitHub Copilot in other IDEs](/docs/installation-guides/install-other-copilot-ides.md)** - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
392- **[Claude Code & Claude Desktop](docs/installation-guides/install-claude.md)** - Installation guide for Claude Code and Claude Desktop
393- **[Cursor](docs/installation-guides/install-cursor.md)** - Installation guide for Cursor IDE
394- **[Google Gemini CLI](docs/installation-guides/install-gemini-cli.md)** - Installation guide for Google Gemini CLI
395- **[OpenCode](docs/installation-guides/install-opencode.md)** - Installation guide for the OpenCode terminal agent
396- **[Windsurf](docs/installation-guides/install-windsurf.md)** - Installation guide for Windsurf IDE
397- **[Zed](docs/installation-guides/install-zed.md)** - Installation guide for Zed editor
398 
399For a complete overview of all installation options, see our **[Installation Guides Index](docs/installation-guides)**.
400 
401> **Note:** Any host application that supports local MCP servers should be able to access the local GitHub MCP server. However, the specific configuration process, syntax and stability of the integration will vary by host application. While many may follow a similar format to the examples above, this is not guaranteed. Please refer to your host application's documentation for the correct MCP configuration syntax and setup process.
402 
403### Build from source
404 
405If you don't have Docker, you can use `go build` to build the binary in the
406`cmd/github-mcp-server` directory, and use the `github-mcp-server stdio` command with the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable set to your token. To specify the output location of the build, use the `-o` flag. You should configure your server to use the built executable as its `command`. For example:
407 
408```JSON
409{
410 "mcp": {
411 "servers": {
412 "github": {
413 "command": "/path/to/github-mcp-server",
414 "args": ["stdio"],
415 "env": {
416 "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
417 }
418 }
419 }
420 }
421}
422```
423 
424## Tool Configuration
425 
426The GitHub MCP Server supports enabling or disabling specific groups of functionalities via the `--toolsets` flag. This allows you to control which GitHub API capabilities are available to your AI tools. Enabling only the toolsets that you need can help the LLM with tool choice and reduce the context size.
427 
428_Toolsets are not limited to Tools. Relevant MCP Resources and Prompts are also included where applicable._
429 
430When no toolsets are specified, [default toolsets](#default-toolset) are used.
431 
432> **Looking for examples?** See the [Server Configuration Guide](./docs/server-configuration.md) for common recipes like minimal setups, read-only mode, and combining tools with toolsets.
433 
434#### Specifying Toolsets
435 
436To specify toolsets you want available to the LLM, you can pass an allow-list in two ways:
437 
4381. **Using Command Line Argument**:
439 
440 ```bash
441 github-mcp-server --toolsets repos,issues,pull_requests,actions,code_security
442 ```
443 
4442. **Using Environment Variable**:
445 
446 ```bash
447 GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" ./github-mcp-server
448 ```
449 
450The environment variable `GITHUB_TOOLSETS` takes precedence over the command line argument if both are provided.
451 
452#### Specifying Individual Tools
453 
454You can also configure specific tools using the `--tools` flag. Tools can be used independently or combined with toolsets for fine-grained control.
455 
4561. **Using Command Line Argument**:
457 
458 ```bash
459 github-mcp-server --tools get_file_contents,issue_read,create_pull_request
460 ```
461 
4622. **Using Environment Variable**:
463 
464 ```bash
465 GITHUB_TOOLS="get_file_contents,issue_read,create_pull_request" ./github-mcp-server
466 ```
467 
4683. **Combining with Toolsets** (additive):
469 
470 ```bash
471 github-mcp-server --toolsets repos,issues --tools get_gist
472 ```
473 
474 This registers all tools from `repos` and `issues` toolsets, plus `get_gist`.
475 
476**Important Notes:**
477 
478- Tools and toolsets can be used together
479- Read-only mode takes priority: write tools are skipped if `--read-only` is set, even if explicitly requested via `--tools`
480- Tool names must match exactly (e.g., `get_file_contents`, not `getFileContents`). Invalid tool names will cause the server to fail at startup with an error message
481- When tools are renamed, old names are preserved as aliases for backward compatibility. See [Tool Renaming](docs/tool-renaming.md) for details.
482 
483### Using Toolsets With Docker
484 
485When using Docker, you can pass the toolsets as environment variables:
486 
487```bash
488docker run -i --rm \
489 -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
490 -e GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" \
491 ghcr.io/github/github-mcp-server
492```
493 
494### Using Tools With Docker
495 
496When using Docker, you can pass specific tools as environment variables. You can also combine tools with toolsets:
497 
498```bash
499# Tools only
500docker run -i --rm \
501 -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
502 -e GITHUB_TOOLS="get_file_contents,issue_read,create_pull_request" \
503 ghcr.io/github/github-mcp-server
504 
505# Tools combined with toolsets (additive)
506docker run -i --rm \
507 -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
508 -e GITHUB_TOOLSETS="repos,issues" \
509 -e GITHUB_TOOLS="get_gist" \
510 ghcr.io/github/github-mcp-server
511```
512 
513### Special toolsets
514 
515#### "all" toolset
516 
517The special toolset `all` can be provided to enable all available toolsets regardless of any other configuration:
518 
519```bash
520./github-mcp-server --toolsets all
521```
522 
523Or using the environment variable:
524 
525```bash
526GITHUB_TOOLSETS="all" ./github-mcp-server
527```
528 
529#### "default" toolset
530 
531The default toolset `default` is the configuration that gets passed to the server if no toolsets are specified.
532 
533The default configuration is:
534 
535- context
536- repos
537- issues
538- pull_requests
539- users
540 
541To keep the default configuration and add additional toolsets:
542 
543```bash
544GITHUB_TOOLSETS="default,stargazers" ./github-mcp-server
545```
546 
547### Insiders Mode
548 
549The local GitHub MCP Server offers an insiders version with early access to new features and experimental tools.
550 
5511. **Using Command Line Argument**:
552 
553 ```bash
554 ./github-mcp-server --insiders
555 ```
556 
5572. **Using Environment Variable**:
558 
559 ```bash
560 GITHUB_INSIDERS=true ./github-mcp-server
561 ```
562 
563When using Docker:
564 
565```bash
566docker run -i --rm \
567 -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
568 -e GITHUB_INSIDERS=true \
569 ghcr.io/github/github-mcp-server
570```
571 
572### Available Toolsets
573 
574The following sets of tools are available:
575 
576<!-- START AUTOMATED TOOLSETS -->
577| | Toolset | Description |
578| --- | ----------------------- | ------------------------------------------------------------- |
579| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/person-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/person-light.png"><img src="pkg/octicons/icons/person-light.png" width="20" height="20" alt="person"></picture> | `context` | **Strongly recommended**: Tools that provide context about the current user and GitHub context you are operating in |
580| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/workflow-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/workflow-light.png"><img src="pkg/octicons/icons/workflow-light.png" width="20" height="20" alt="workflow"></picture> | `actions` | GitHub Actions workflows and CI/CD operations |
581| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/code-square-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/code-square-light.png"><img src="pkg/octicons/icons/code-square-light.png" width="20" height="20" alt="code-square"></picture> | `code_quality` | GitHub Code Quality related tools |
582| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/codescan-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/codescan-light.png"><img src="pkg/octicons/icons/codescan-light.png" width="20" height="20" alt="codescan"></picture> | `code_security` | Code security related tools, such as GitHub Code Scanning |
583| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/copilot-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/copilot-light.png"><img src="pkg/octicons/icons/copilot-light.png" width="20" height="20" alt="copilot"></picture> | `copilot` | Copilot related tools |
584| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/copilot-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/copilot-light.png"><img src="pkg/octicons/icons/copilot-light.png" width="20" height="20" alt="copilot"></picture> | `copilot_issue_intents` | Opt-in Copilot issue assignment tools that carry intent metadata (rationale, confidence, suggestion) |
585| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/dependabot-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/dependabot-light.png"><img src="pkg/octicons/icons/dependabot-light.png" width="20" height="20" alt="dependabot"></picture> | `dependabot` | Dependabot tools |
586| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/comment-discussion-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/comment-discussion-light.png"><img src="pkg/octicons/icons/comment-discussion-light.png" width="20" height="20" alt="comment-discussion"></picture> | `discussions` | GitHub Discussions related tools |
587| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/logo-gist-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/logo-gist-light.png"><img src="pkg/octicons/icons/logo-gist-light.png" width="20" height="20" alt="logo-gist"></picture> | `gists` | GitHub Gist related tools |
588| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/git-branch-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/git-branch-light.png"><img src="pkg/octicons/icons/git-branch-light.png" width="20" height="20" alt="git-branch"></picture> | `git` | GitHub Git API related tools for low-level Git operations |
589| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/law-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/law-light.png"><img src="pkg/octicons/icons/law-light.png" width="20" height="20" alt="law"></picture> | `governance` | Repository governance tools for managing rulesets and custom properties at the repository, organization, and enterprise levels |
590| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/issue-opened-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/issue-opened-light.png"><img src="pkg/octicons/icons/issue-opened-light.png" width="20" height="20" alt="issue-opened"></picture> | `issues` | GitHub Issues related tools |
591| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/tag-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/tag-light.png"><img src="pkg/octicons/icons/tag-light.png" width="20" height="20" alt="tag"></picture> | `labels` | GitHub Labels related tools |
592| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/bell-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/bell-light.png"><img src="pkg/octicons/icons/bell-light.png" width="20" height="20" alt="bell"></picture> | `notifications` | GitHub Notifications related tools |
593| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/organization-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/organization-light.png"><img src="pkg/octicons/icons/organization-light.png" width="20" height="20" alt="organization"></picture> | `orgs` | GitHub Organization related tools |
594| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/project-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/project-light.png"><img src="pkg/octicons/icons/project-light.png" width="20" height="20" alt="project"></picture> | `projects` | GitHub Projects related tools |
595| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/git-pull-request-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/git-pull-request-light.png"><img src="pkg/octicons/icons/git-pull-request-light.png" width="20" height="20" alt="git-pull-request"></picture> | `pull_requests` | GitHub Pull Request related tools |
596| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/repo-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/repo-light.png"><img src="pkg/octicons/icons/repo-light.png" width="20" height="20" alt="repo"></picture> | `repos` | GitHub Repository related tools |
597| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/shield-lock-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/shield-lock-light.png"><img src="pkg/octicons/icons/shield-lock-light.png" width="20" height="20" alt="shield-lock"></picture> | `secret_protection` | Secret protection related tools, such as GitHub Secret Scanning |
598| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/shield-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/shield-light.png"><img src="pkg/octicons/icons/shield-light.png" width="20" height="20" alt="shield"></picture> | `security_advisories` | Security advisories related tools |
599| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/star-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/star-light.png"><img src="pkg/octicons/icons/star-light.png" width="20" height="20" alt="star"></picture> | `stargazers` | GitHub Stargazers related tools |
600| <picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/people-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/people-light.png"><img src="pkg/octicons/icons/people-light.png" width="20" height="20" alt="people"></picture> | `users` | GitHub User related tools |
601<!-- END AUTOMATED TOOLSETS -->
602 
603### Additional Toolsets in Remote GitHub MCP Server
604 
605| Toolset | Description |
606| ----------------------- | ------------------------------------------------------------- |
607| `copilot` | Copilot related tools (e.g. Copilot Coding Agent) |
608| `copilot_spaces` | Copilot Spaces related tools |
609| `github_support_docs_search` | Search docs to answer GitHub product and support questions |
610 
611## Tools
612 
613<!-- START AUTOMATED TOOLS -->
614<details>
615 
616<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/workflow-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/workflow-light.png"><img src="pkg/octicons/icons/workflow-light.png" width="20" height="20" alt="workflow"></picture> Actions</summary>
617 
618- **actions_get** - Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts)
619 - **OAuth Challenge Scopes**: `repo`
620 - `method`: The method to execute (string, required)
621 - `owner`: Repository owner (string, required)
622 - `repo`: Repository name (string, required)
623 - `resource_id`: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
624 - Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'get_workflow' method.
625 - Provide a workflow run ID for 'get_workflow_run', 'get_workflow_run_usage', and 'get_workflow_run_logs_url' methods.
626 - Provide an artifact ID for 'download_workflow_run_artifact' method.
627 - Provide a job ID for 'get_workflow_job' method.
628 (string, required)
629 
630- **actions_list** - List GitHub Actions workflows in a repository
631 - **OAuth Challenge Scopes**: `repo`
632 - `method`: The action to perform (string, required)
633 - `owner`: Repository owner (string, required)
634 - `page`: Page number for pagination (default: 1) (number, optional)
635 - `perPage`: Results per page for pagination (default: 30, max: 100) (number, optional)
636 - `repo`: Repository name (string, required)
637 - `resource_id`: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
638 - Do not provide any resource ID for 'list_workflows' method.
639 - Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'list_workflow_runs' method, or omit to list all workflow runs in the repository.
640 - Provide a workflow run ID for 'list_workflow_jobs' and 'list_workflow_run_artifacts' methods.
641 (string, optional)
642 - `workflow_jobs_filter`: Filters for workflow jobs. **ONLY** used when method is 'list_workflow_jobs' (object, optional)
643 - `workflow_runs_filter`: Filters for workflow runs. **ONLY** used when method is 'list_workflow_runs' (object, optional)
644 
645- **actions_run_trigger** - Trigger GitHub Actions workflow actions
646 - **OAuth Challenge Scopes**: `repo`
647 - `inputs`: Inputs the workflow accepts. Only used for 'run_workflow' method. (object, optional)
648 - `method`: The method to execute (string, required)
649 - `owner`: Repository owner (string, required)
650 - `ref`: The git reference for the workflow. The reference can be a branch or tag name. Required for 'run_workflow' method. (string, optional)
651 - `repo`: Repository name (string, required)
652 - `run_id`: The ID of the workflow run. Required for all methods except 'run_workflow'. (number, optional)
653 - `workflow_id`: The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'run_workflow' method. (string, optional)
654 
655- **get_job_logs** - Get GitHub Actions workflow job logs
656 - **OAuth Challenge Scopes**: `repo`
657 - `failed_only`: When true, gets logs for all failed jobs in the workflow run specified by run_id. Requires run_id to be provided. (boolean, optional)
658 - `job_id`: The unique identifier of the workflow job. Required when getting logs for a single job. (number, optional)
659 - `owner`: Repository owner (string, required)
660 - `repo`: Repository name (string, required)
661 - `return_content`: Returns actual log content instead of URLs (boolean, optional)
662 - `run_id`: The unique identifier of the workflow run. Required when failed_only is true to get logs for all failed jobs in the run. (number, optional)
663 - `tail_lines`: Number of lines to return from the end of the log (number, optional)
664 
665</details>
666 
667<details>
668 
669<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/code-square-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/code-square-light.png"><img src="pkg/octicons/icons/code-square-light.png" width="20" height="20" alt="code-square"></picture> Code Quality</summary>
670 
671- **get_code_quality_finding** - Get code quality finding
672 - **OAuth Challenge Scopes**: `repo`
673 - `findingNumber`: The number of the finding. (number, required)
674 - `owner`: The owner of the repository. (string, required)
675 - `repo`: The name of the repository. (string, required)
676 
677</details>
678 
679<details>
680 
681<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/codescan-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/codescan-light.png"><img src="pkg/octicons/icons/codescan-light.png" width="20" height="20" alt="codescan"></picture> Code Security</summary>
682 
683- **get_code_scanning_alert** - Get code scanning alert
684 - **OAuth Challenge Scopes**: `security_events`
685 - `alertNumber`: The number of the alert. (number, required)
686 - `owner`: The owner of the repository. (string, required)
687 - `repo`: The name of the repository. (string, required)
688 
689- **list_code_scanning_alerts** - List code scanning alerts
690 - **OAuth Challenge Scopes**: `security_events`
691 - `owner`: The owner of the repository. (string, required)
692 - `page`: Page number for pagination (min 1) (number, optional)
693 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
694 - `ref`: The Git reference for the results you want to list. (string, optional)
695 - `repo`: The name of the repository. (string, required)
696 - `severity`: Filter code scanning alerts by severity (string, optional)
697 - `state`: Filter code scanning alerts by state. Defaults to open (string, optional)
698 - `tool_name`: The name of the tool used for code scanning. (string, optional)
699 
700</details>
701 
702<details>
703 
704<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/person-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/person-light.png"><img src="pkg/octicons/icons/person-light.png" width="20" height="20" alt="person"></picture> Context</summary>
705 
706- **get_me** - Get my user profile
707 - No parameters required
708 
709- **get_team_members** - Get team members
710 - **OAuth Challenge Scopes**: `read:org`
711 - `org`: Organization login (owner) that contains the team. (string, required)
712 - `team_slug`: Team slug (string, required)
713 
714- **get_teams** - Get teams
715 - **OAuth Challenge Scopes**: `read:org`
716 - `user`: Username to get teams for. If not provided, uses the authenticated user. (string, optional)
717 
718</details>
719 
720<details>
721 
722<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/copilot-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/copilot-light.png"><img src="pkg/octicons/icons/copilot-light.png" width="20" height="20" alt="copilot"></picture> Copilot</summary>
723 
724- **assign_copilot_to_issue** - Assign Copilot to issue
725 - **OAuth Challenge Scopes**: `repo`
726 - `base_ref`: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)
727 - `custom_instructions`: Optional custom instructions to guide the agent beyond the issue body. Use this to provide additional context, constraints, or guidance that is not captured in the issue description (string, optional)
728 - `issue_number`: Issue number (number, required)
729 - `owner`: Repository owner (string, required)
730 - `repo`: Repository name (string, required)
731 
732- **request_copilot_review** - Request Copilot review
733 - **OAuth Challenge Scopes**: `repo`
734 - `owner`: Repository owner (string, required)
735 - `pullNumber`: Pull request number (number, required)
736 - `repo`: Repository name (string, required)
737 
738</details>
739 
740<details>
741 
742<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/copilot-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/copilot-light.png"><img src="pkg/octicons/icons/copilot-light.png" width="20" height="20" alt="copilot"></picture> Copilot Issue Intents</summary>
743 
744- **assign_copilot_to_issue_with_intent** - Assign Copilot to issue with intent
745 - **OAuth Challenge Scopes**: `repo`
746 - `base_ref`: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch. Ignored when is_suggestion is true (string, optional)
747 - `confidence`: How confident you are in this choice. 'HIGH' for clear signal or explicit user request, 'MEDIUM' for reasonable inference with some ambiguity, 'LOW' for best guess with limited signal. (string, required)
748 - `custom_instructions`: Optional custom instructions to guide the agent beyond the issue body. Ignored when is_suggestion is true (string, optional)
749 - `is_suggestion`: If true, records a pending Copilot assignment intent rather than launching the agent. Approval later supplies the launch context; base_ref and custom_instructions are ignored in this case. (boolean, required)
750 - `issue_number`: Issue number (number, required)
751 - `owner`: Repository owner (string, required)
752 - `rationale`: One concise sentence explaining what specifically about the issue led to choosing Copilot. State the concrete signal (e.g. 'Well-scoped task with clear acceptance criteria'). (string, required)
753 - `repo`: Repository name (string, required)
754 
755</details>
756 
757<details>
758 
759<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/dependabot-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/dependabot-light.png"><img src="pkg/octicons/icons/dependabot-light.png" width="20" height="20" alt="dependabot"></picture> Dependabot</summary>
760 
761- **get_dependabot_alert** - Get dependabot alert
762 - **OAuth Challenge Scopes**: `security_events`
763 - `alertNumber`: The number of the alert. (number, required)
764 - `owner`: The owner of the repository. (string, required)
765 - `repo`: The name of the repository. (string, required)
766 
767- **list_dependabot_alerts** - List dependabot alerts
768 - **OAuth Challenge Scopes**: `security_events`
769 - `after`: Cursor for pagination. Use the cursor from the previous response. (string, optional)
770 - `owner`: The owner of the repository. (string, required)
771 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
772 - `repo`: The name of the repository. (string, required)
773 - `severity`: Filter dependabot alerts by severity (string, optional)
774 - `state`: Filter dependabot alerts by state. Defaults to open (string, optional)
775 
776</details>
777 
778<details>
779 
780<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/comment-discussion-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/comment-discussion-light.png"><img src="pkg/octicons/icons/comment-discussion-light.png" width="20" height="20" alt="comment-discussion"></picture> Discussions</summary>
781 
782- **discussion_comment_write** - Manage discussion comments
783 - **OAuth Challenge Scopes**: `repo`
784 - `body`: Comment content (required for 'add', 'reply', and 'update' methods) (string, optional)
785 - `commentNodeID`: The Node ID of the discussion comment (required for 'reply', 'update', 'delete', 'mark_answer', and 'unmark_answer' methods). For 'reply', this is the top-level comment to reply to; GitHub Discussions only support one level of nesting. (string, optional)
786 - `discussionNumber`: Discussion number (required for 'add' and 'reply' methods) (number, optional)
787 - `method`: Write operation to perform on a discussion comment.
788 Options are:
789 - 'add' - adds a new top-level comment to a discussion.
790 - 'reply' - replies to a top-level discussion comment (GitHub Discussions only support one level of nesting).
791 - 'update' - updates an existing discussion comment.
792 - 'delete' - deletes a discussion comment.
793 - 'mark_answer' - marks a discussion comment as the answer (Q&A only).
794 - 'unmark_answer' - unmarks a discussion comment as the answer (Q&A only).
795 (string, required)
796 - `owner`: Repository owner (required for 'add' and 'reply' methods) (string, optional)
797 - `repo`: Repository name (required for 'add' and 'reply' methods) (string, optional)
798 
799- **get_discussion** - Get discussion
800 - **OAuth Challenge Scopes**: `repo`
801 - `discussionNumber`: Discussion Number (number, required)
802 - `owner`: Repository owner (string, required)
803 - `repo`: Repository name (string, required)
804 
805- **get_discussion_comments** - Get discussion comments
806 - **OAuth Challenge Scopes**: `repo`
807 - `after`: Cursor for pagination. Use the cursor from the previous response. (string, optional)
808 - `discussionNumber`: Discussion Number (number, required)
809 - `includeReplies`: When true, each top-level comment will include its replies nested within it (up to 100 replies per comment, which is the GitHub API maximum). Defaults to false. (boolean, optional)
810 - `owner`: Repository owner (string, required)
811 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
812 - `repo`: Repository name (string, required)
813 
814- **list_discussion_categories** - List discussion categories
815 - **OAuth Challenge Scopes**: `repo`
816 - `owner`: Repository owner (string, required)
817 - `repo`: Repository name. If not provided, discussion categories will be queried at the organisation level. (string, optional)
818 
819- **list_discussions** - List discussions
820 - **OAuth Challenge Scopes**: `repo`
821 - `after`: Cursor for pagination. Use the cursor from the previous response. (string, optional)
822 - `category`: Optional filter by discussion category ID. If provided, only discussions with this category are listed. (string, optional)
823 - `direction`: Order direction. (string, optional)
824 - `orderBy`: Order discussions by field. If provided, the 'direction' also needs to be provided. (string, optional)
825 - `owner`: Repository owner (string, required)
826 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
827 - `repo`: Repository name. If not provided, discussions will be queried at the organisation level. (string, optional)
828 
829</details>
830 
831<details>
832 
833<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/logo-gist-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/logo-gist-light.png"><img src="pkg/octicons/icons/logo-gist-light.png" width="20" height="20" alt="logo-gist"></picture> Gists</summary>
834 
835- **create_gist** - Create Gist
836 - **OAuth Challenge Scopes**: `gist`
837 - `content`: Content for simple single-file gist creation (string, required)
838 - `description`: Description of the gist (string, optional)
839 - `filename`: Filename for simple single-file gist creation (string, required)
840 - `public`: Whether the gist is public (boolean, optional)
841 
842- **get_gist** - Get Gist Content
843 - `gist_id`: The ID of the gist (string, required)
844 
845- **list_gists** - List Gists
846 - `page`: Page number for pagination (min 1) (number, optional)
847 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
848 - `since`: Only gists updated after this time (ISO 8601 timestamp) (string, optional)
849 - `username`: GitHub username (omit for authenticated user's gists) (string, optional)
850 
851- **update_gist** - Update Gist
852 - **OAuth Challenge Scopes**: `gist`
853 - `content`: Content for the file (string, required)
854 - `description`: Updated description of the gist (string, optional)
855 - `filename`: Filename to update or create (string, required)
856 - `gist_id`: ID of the gist to update (string, required)
857 
858</details>
859 
860<details>
861 
862<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/git-branch-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/git-branch-light.png"><img src="pkg/octicons/icons/git-branch-light.png" width="20" height="20" alt="git-branch"></picture> Git</summary>
863 
864- **get_repository_tree** - Get repository tree
865 - **OAuth Challenge Scopes**: `repo`
866 - `owner`: Repository owner (username or organization) (string, required)
867 - `path_filter`: Optional path prefix to filter the tree results (e.g., 'src/' to only show files in the src directory) (string, optional)
868 - `recursive`: Setting this parameter to true returns the objects or subtrees referenced by the tree. Default is false (boolean, optional)
869 - `repo`: Repository name (string, required)
870 - `tree_sha`: The SHA1 value or ref (branch or tag) name of the tree. Defaults to the repository's default branch (string, optional)
871 
872</details>
873 
874<details>
875 
876<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/law-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/law-light.png"><img src="pkg/octicons/icons/law-light.png" width="20" height="20" alt="law"></picture> Governance</summary>
877 
878- **create_repository_ruleset** - Create repository ruleset
879 - **OAuth Challenge Scopes**: `repo`, `admin:org`, `admin:enterprise`
880 - `bypass_actors`: The actors that can bypass the rules in this ruleset (object[], optional)
881 - `conditions`: Conditions for when this ruleset applies, e.g. {"ref_name": {"include": ["refs/heads/main"], "exclude": []}} (object, optional)
882 - `enforcement`: The enforcement level of the ruleset. 'evaluate' allows admins to test rules before enforcing them (string, required)
883 - `enterprise`: Enterprise slug. Required when level is 'enterprise'. (string, optional)
884 - `level`: The level at which the ruleset is configured:
885 - 'repository': A ruleset on a single repository (requires 'owner' and 'repo').
886 - 'organization': A ruleset covering repositories in an organization (requires 'org').
887 - 'enterprise': A ruleset covering repositories across an enterprise (requires 'enterprise'). (string, required)
888 - `name`: The name of the ruleset (string, required)
889 - `org`: Organization name. Required when level is 'organization'. (string, optional)
890 - `owner`: Repository owner. Required when level is 'repository'. (string, optional)
891 - `repo`: Repository name. Required when level is 'repository'. (string, optional)
892 - `rules`: An array of rules within the ruleset. Each rule is an object with a 'type' (e.g. 'creation', 'deletion', 'non_fast_forward', 'required_signatures', 'pull_request', 'required_status_checks') and, for rules that need configuration, a 'parameters' object (object[], required)
893 - `target`: The target of the ruleset. Defaults to 'branch'. 'repository' is only valid for 'organization' and 'enterprise' level rulesets. (string, optional)
894 
895- **custom_properties_read** - Read custom properties
896 - **OAuth Challenge Scopes**: `repo`, `read:org`, `read:enterprise`
897 - `enterprise`: Enterprise slug. Required when level is 'enterprise'. (string, optional)
898 - `level`: The level at which custom properties are managed:
899 - 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').
900 - 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').
901 - 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise'). (string, required)
902 - `org`: Organization name. Required when level is 'organization'. (string, optional)
903 - `owner`: Repository owner. Required when level is 'repository'. (string, optional)
904 - `repo`: Repository name. Required when level is 'repository'. (string, optional)
905 
906- **custom_properties_write** - Set custom properties
907 - **OAuth Challenge Scopes**: `repo`, `admin:org`, `admin:enterprise`
908 - `enterprise`: Enterprise slug. Required when level is 'enterprise'. (string, optional)
909 - `level`: The level at which custom properties are managed:
910 - 'repository': The custom property VALUES assigned to a repository (requires 'owner' and 'repo').
911 - 'organization': The custom property DEFINITIONS (schema) for an organization (requires 'org').
912 - 'enterprise': The custom property DEFINITIONS (schema) for an enterprise (requires 'enterprise'). (string, required)
913 - `org`: Organization name. Required when level is 'organization'. (string, optional)
914 - `owner`: Repository owner. Required when level is 'repository'. (string, optional)
915 - `properties`: The custom properties to create or update. At the repository level each item assigns a value ('property_name' and 'value'); at the organization and enterprise levels each item defines the schema ('property_name' and 'value_type', plus optional definition fields). (object[], required)
916 - `repo`: Repository name. Required when level is 'repository'. (string, optional)
917 
918- **repository_ruleset_read** - Read repository rulesets
919 - **OAuth Challenge Scopes**: `repo`, `read:org`, `read:enterprise`
920 - `actor_name`: The handle for the GitHub user account to filter rule suites on. Used by the 'list_rule_suites' method. (string, optional)
921 - `branch`: Branch name. Required for the 'get_rules_for_branch' method. (string, optional)
922 - `enterprise`: Enterprise slug. Required when level is 'enterprise'. (string, optional)
923 - `evaluate_status`: Filter rule suites by ruleset evaluation mode. Used by the 'list_rule_suites' method. (string, optional)
924 - `includes_parents`: Include rulesets configured at higher levels that also apply. Defaults to true. Used by the 'get' and 'list' methods at the repository level. (boolean, optional)
925 - `level`: The level at which the ruleset is configured:
926 - 'repository': A ruleset on a single repository (requires 'owner' and 'repo').
927 - 'organization': A ruleset covering repositories in an organization (requires 'org').
928 - 'enterprise': A ruleset covering repositories across an enterprise (requires 'enterprise'). (string, required)
929 - `method`: Operation to perform:
930 - 'get': Get a specific ruleset by ID (requires 'ruleset_id'). Supported at every level.
931 - 'list': List all rulesets. Supported at every level.
932 - 'get_rules_for_branch': Get all rules that apply to a branch (requires 'branch'). Repository level only.
933 - 'list_rule_suites': List rule suites, the evaluations of rules against pushes. Repository and organization levels only.
934 - 'get_rule_suite': Get a specific rule suite by ID (requires 'rule_suite_id'). Repository and organization levels only. (string, required)
935 - `org`: Organization name. Required when level is 'organization'. (string, optional)
936 - `owner`: Repository owner. Required when level is 'repository'. (string, optional)
937 - `page`: Page number for pagination (min 1) (number, optional)
938 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
939 - `ref`: The name of the ref (branch, tag, etc.) to filter rule suites by. Used by the 'list_rule_suites' method. (string, optional)
940 - `repo`: Repository name. Required when level is 'repository'. (string, optional)
941 - `repository_name`: Repository name to filter rule suites by. Used by the 'list_rule_suites' method at the organization level. (string, optional)
942 - `rule_suite_id`: Rule suite ID. Required for the 'get_rule_suite' method. (number, optional)
943 - `rule_suite_result`: The rule suite result to filter by. Used by the 'list_rule_suites' method. (string, optional)
944 - `ruleset_id`: Ruleset ID. Required for the 'get' method. (number, optional)
945 - `time_period`: The time period to filter rule suites by. Used by the 'list_rule_suites' method. (string, optional)
946 
947</details>
948 
949<details>
950 
951<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/issue-opened-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/issue-opened-light.png"><img src="pkg/octicons/icons/issue-opened-light.png" width="20" height="20" alt="issue-opened"></picture> Issues</summary>
952 
953- **add_issue_comment** - Add comment to issue or pull request
954 - **OAuth Challenge Scopes**: `repo`
955 - `body`: Comment content. Required unless reaction is provided. (string, optional)
956 - `comment_id`: The numeric ID of the issue or pull request comment to react to. Use this for reactions to comments; omit it to react to the issue or pull request itself. Cannot be combined with body. (integer, optional)
957 - `issue_number`: Issue or pull request number to comment on or react to. (number, required)
958 - `owner`: Repository owner (string, required)
959 - `reaction`: Emoji reaction to add. Required unless body is provided. (string, optional)
960 - `repo`: Repository name (string, required)
961 
962- **get_label** - Get a specific label from a repository
963 - **OAuth Challenge Scopes**: `repo`
964 - `name`: Label name. (string, required)
965 - `owner`: Repository owner (username or organization name) (string, required)
966 - `repo`: Repository name (string, required)
967 
968- **issue_read** - Get issue details
969 - **OAuth Challenge Scopes**: `repo`
970 - `issue_number`: The number of the issue (number, required)
971 - `method`: The read operation to perform on a single issue.
972 Options are:
973 1. get - Get issue details. Also returns best-effort hierarchy flags (`has_parent`, `has_children`); `parent` and `sub_issues_summary` are optional relationship summaries, and `closed_by_pull_requests` summarizes the pull requests configured to close the issue as `total_count` plus up to 5 `references`.
974 2. get_comments - Get issue comments.
975 3. get_sub_issues - Get sub-issues (children) of the issue.
976 4. get_parent - Get the parent issue, if this issue is a sub-issue of another.
977 5. get_labels - Get labels assigned to the issue.
978 (string, required)
979 - `owner`: The owner of the repository (string, required)
980 - `page`: Page number for pagination (min 1) (number, optional)
981 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
982 - `repo`: The name of the repository (string, required)
983 
984- **issue_write** - Create or update issue/pull request
985 - **OAuth Challenge Scopes**: `repo`
986 - `assignees`: Usernames to assign to this issue (string[], optional)
987 - `body`: Issue body content (string, optional)
988 - `duplicate_of`: Issue number that this issue is a duplicate of. Required when state_reason is 'duplicate'. (number, optional)
989 - `issue_fields`: Issue field values to set or clear. Each item requires 'field_name' and exactly one of 'value', 'field_option_name', or 'delete: true'. (object[], optional)
990 - `issue_number`: Issue number to update (number, optional)
991 - `labels`: Labels to apply to this issue (string[], optional)
992 - `method`: Write operation to perform on a single issue.
993 Options are:
994 - 'create' - creates a new issue.
995 - 'update' - updates an existing issue.
996 (string, required)
997 - `milestone`: Milestone number (number, optional)
998 - `owner`: Repository owner (string, required)
999 - `parent_issue_number`: Issue number of the parent issue. Only used when method is 'create' and cannot be combined with issue_fields. The new issue is created and attached to this parent in the same operation. (number, optional)
1000 - `parent_owner`: Repository owner of the parent issue. Must be provided with parent_repo. Omit both to use owner and repo. Only used when method is 'create' and parent_issue_number is provided. (string, optional)
1001 - `parent_repo`: Repository name of the parent issue. Must be provided with parent_owner. Omit both to use owner and repo. Only used when method is 'create' and parent_issue_number is provided. (string, optional)
1002 - `repo`: Repository name (string, required)
1003 - `state`: New state (string, optional)
1004 - `state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
1005 - `title`: Issue title (string, optional)
1006 - `type`: Type of this issue. For updates, pass null to remove the current type. Only use if issue types are enabled for this repository. Use list_issue_types to get valid type values for this repository or its owner organization. If the repository doesn't support issue types, omit this parameter. (string | null, optional)
1007 
1008- **list_issue_fields** - List issue fields
1009 - **OAuth Challenge Scopes**: `repo`, `read:org`
1010 - `owner`: The account owner of the repository or organization. The name is not case sensitive. (string, required)
1011 - `repo`: The name of the repository. When provided, returns fields for this specific repository (inherited from its organization). When omitted, returns org-level fields directly. (string, optional)
1012 
1013- **list_issue_types** - List available issue types
1014 - **OAuth Challenge Scopes**: `repo`, `read:org`
1015 - `owner`: The account owner of the repository or organization. (string, required)
1016 - `repo`: The name of the repository. When provided, returns issue types for this specific repository. When omitted, returns org-level issue types directly. (string, optional)
1017 
1018- **list_issues** - List issues
1019 - **OAuth Challenge Scopes**: `repo`
1020 - `after`: Cursor for pagination. Use the cursor from the previous response. (string, optional)
1021 - `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
1022 - `field_filters`: Filter by custom issue field values. Each entry takes a field_name and a value; the server looks up the field and coerces the value to its type (single-select option name, text, number, or YYYY-MM-DD date). (object[], optional)
1023 - `fields`: Subset of fields to return for each issue. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body' and 'field_values' in particular drops the largest per-result data. (string[], optional)
1024 - `labels`: Filter by labels (string[], optional)
1025 - `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
1026 - `owner`: Repository owner (string, required)
1027 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1028 - `repo`: Repository name (string, required)
1029 - `since`: Filter by date (ISO 8601 timestamp) (string, optional)
1030 - `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
1031 
1032- **search_issues** - Search issues
1033 - **OAuth Challenge Scopes**: `repo`
1034 - `fields`: Subset of fields to return for each issue result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body', 'reactions', and 'labels' in particular drops the largest per-result data. (string[], optional)
1035 - `order`: Sort order (string, optional)
1036 - `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
1037 - `page`: Page number for pagination (min 1) (number, optional)
1038 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1039 - `query`: The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR. (string, required)
1040 - `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
1041 - `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
1042 
1043- **sub_issue_write** - Change sub-issue
1044 - **OAuth Challenge Scopes**: `repo`
1045 - `after_id`: The ID of the sub-issue to be prioritized after (either after_id OR before_id should be specified) (number, optional)
1046 - `before_id`: The ID of the sub-issue to be prioritized before (either after_id OR before_id should be specified) (number, optional)
1047 - `issue_number`: The number of the parent issue (number, required)
1048 - `method`: The action to perform on a single sub-issue
1049 Options are:
1050 - 'add' - add a sub-issue to a parent issue in a GitHub repository.
1051 - 'remove' - remove a sub-issue from a parent issue in a GitHub repository.
1052 - 'reprioritize' - change the order of sub-issues within a parent issue in a GitHub repository. Use either 'after_id' or 'before_id' to specify the new position.
1053 Writes issue hierarchy. To move a sub-issue to a new parent, use `add` with `replace_parent=true`; there is no writable parent field.
1054 (string, required)
1055 - `owner`: Repository owner (string, required)
1056 - `replace_parent`: When true, replaces the sub-issue's current parent issue. Use with 'add' method only. (boolean, optional)
1057 - `repo`: Repository name (string, required)
1058 - `sub_issue_id`: The ID of the sub-issue to add. ID is not the same as issue number (number, required)
1059 
1060- **update_issue_comment** - Update issue comment
1061 - **OAuth Challenge Scopes**: `repo`
1062 - `body`: New comment content (string, required)
1063 - `comment_id`: The numeric ID of the issue or pull request conversation comment to update. Do not use a pull request review comment ID. (integer, required)
1064 - `owner`: Repository owner (string, required)
1065 - `repo`: Repository name (string, required)
1066 
1067</details>
1068 
1069<details>
1070 
1071<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/tag-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/tag-light.png"><img src="pkg/octicons/icons/tag-light.png" width="20" height="20" alt="tag"></picture> Labels</summary>
1072 
1073- **get_label** - Get a specific label from a repository
1074 - **OAuth Challenge Scopes**: `repo`
1075 - `name`: Label name. (string, required)
1076 - `owner`: Repository owner (username or organization name) (string, required)
1077 - `repo`: Repository name (string, required)
1078 
1079- **label_write** - Write operations on repository labels
1080 - **OAuth Challenge Scopes**: `repo`
1081 - `color`: Label color as 6-character hex code without '#' prefix (e.g., 'f29513'). Required for 'create', optional for 'update'. (string, optional)
1082 - `description`: Label description text. Optional for 'create' and 'update'. (string, optional)
1083 - `method`: Operation to perform: 'create', 'update', or 'delete' (string, required)
1084 - `name`: Label name - required for all operations (string, required)
1085 - `new_name`: New name for the label (used only with 'update' method to rename) (string, optional)
1086 - `owner`: Repository owner (username or organization name) (string, required)
1087 - `repo`: Repository name (string, required)
1088 
1089- **list_label** - List labels from a repository
1090 - **OAuth Challenge Scopes**: `repo`
1091 - `owner`: Repository owner (username or organization name) - required for all operations (string, required)
1092 - `repo`: Repository name - required for all operations (string, required)
1093 
1094</details>
1095 
1096<details>
1097 
1098<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/bell-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/bell-light.png"><img src="pkg/octicons/icons/bell-light.png" width="20" height="20" alt="bell"></picture> Notifications</summary>
1099 
1100- **dismiss_notification** - Dismiss notification
1101 - **OAuth Challenge Scopes**: `notifications`
1102 - `state`: The new state of the notification (read/done) (string, required)
1103 - `threadID`: The ID of the notification thread (string, required)
1104 
1105- **get_notification_details** - Get notification details
1106 - **OAuth Challenge Scopes**: `notifications`
1107 - `notificationID`: The ID of the notification (string, required)
1108 
1109- **list_notifications** - List notifications
1110 - **OAuth Challenge Scopes**: `notifications`
1111 - `before`: Only show notifications updated before the given time (ISO 8601 format) (string, optional)
1112 - `filter`: Filter notifications to, use default unless specified. Read notifications are ones that have already been acknowledged by the user. Participating notifications are those that the user is directly involved in, such as issues or pull requests they have commented on or created. (string, optional)
1113 - `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
1114 - `page`: Page number for pagination (min 1) (number, optional)
1115 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1116 - `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
1117 - `since`: Only show notifications updated after the given time (ISO 8601 format) (string, optional)
1118 
1119- **manage_notification_subscription** - Manage notification subscription
1120 - **OAuth Challenge Scopes**: `notifications`
1121 - `action`: Action to perform: ignore, watch, or delete the notification subscription. (string, required)
1122 - `notificationID`: The ID of the notification thread. (string, required)
1123 
1124- **manage_repository_notification_subscription** - Manage repository notification subscription
1125 - **OAuth Challenge Scopes**: `notifications`
1126 - `action`: Action to perform: ignore, watch, or delete the repository notification subscription. (string, required)
1127 - `owner`: The account owner of the repository. (string, required)
1128 - `repo`: The name of the repository. (string, required)
1129 
1130- **mark_all_notifications_read** - Mark all notifications as read
1131 - **OAuth Challenge Scopes**: `notifications`
1132 - `lastReadAt`: Describes the last point that notifications were checked (optional). Default: Now (string, optional)
1133 - `owner`: Optional repository owner. If provided with repo, only notifications for this repository are marked as read. (string, optional)
1134 - `repo`: Optional repository name. If provided with owner, only notifications for this repository are marked as read. (string, optional)
1135 
1136</details>
1137 
1138<details>
1139 
1140<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/organization-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/organization-light.png"><img src="pkg/octicons/icons/organization-light.png" width="20" height="20" alt="organization"></picture> Organizations</summary>
1141 
1142- **search_orgs** - Search organizations
1143 - **OAuth Challenge Scopes**: `read:org`
1144 - `order`: Sort order (string, optional)
1145 - `page`: Page number for pagination (min 1) (number, optional)
1146 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1147 - `query`: Organization search query. Examples: 'microsoft', 'location:california', 'created:>=2025-01-01'. Search is automatically scoped to type:org. (string, required)
1148 - `sort`: Sort field by category (string, optional)
1149 
1150</details>
1151 
1152<details>
1153 
1154<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/project-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/project-light.png"><img src="pkg/octicons/icons/project-light.png" width="20" height="20" alt="project"></picture> Projects</summary>
1155 
1156- **projects_get** - Get details of GitHub Projects resources
1157 - **OAuth Challenge Scopes**: `read:project`
1158 - `field_id`: The field's ID. Required for 'get_project_field' method. (number, optional)
1159 - `field_names`: Specific list of field names to include in the response when getting a project item (e.g. ["Status", "Priority"]). Resolved server-side to field IDs — pass this instead of 'fields' when you only know the human-readable names. Mutually exclusive with 'fields' — provide one, not both. Only used for 'get_project_item' method. (string[], optional)
1160 - `fields`: Specific list of field IDs to include in the response when getting a project item (e.g. ["102589", "985201", "169875"]). If neither 'fields' nor 'field_names' is provided, only the title field is included. Mutually exclusive with 'field_names' — provide one, not both. Only used for 'get_project_item' method. (string[], optional)
1161 - `item_id`: The item's ID. Required for 'get_project_item' method. (number, optional)
1162 - `method`: The method to execute (string, required)
1163 - `owner`: The owner (user or organization login). The name is not case sensitive. (string, optional)
1164 - `owner_type`: Owner type (user or org). If not provided, will be automatically detected. (string, optional)
1165 - `project_number`: The project's number. (number, optional)
1166 - `status_update_id`: The node ID of the project status update. Required for 'get_project_status_update' method. (string, optional)
1167 - `view_id`: The node ID of the project view. Required for 'get_project_view' method. (string, optional)
1168 
1169- **projects_list** - List GitHub Projects resources
1170 - **OAuth Challenge Scopes**: `read:project`
1171 - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
1172 - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
1173 - `field_names`: Field names to include when listing project items (e.g. ["Status", "Priority"]). Resolved server-side to field IDs — pass this instead of 'fields' when you only know the human-readable names. Names that fail to resolve return a structured error. Mutually exclusive with 'fields' — provide one, not both. Only used for 'list_project_items' method. (string[], optional)
1174 - `fields`: Field IDs to include when listing project items (e.g. ["102589", "985201"]). CRITICAL: Always provide to get field values. Without this (and without 'field_names'), only titles returned. Mutually exclusive with 'field_names' — provide one, not both. Only used for 'list_project_items' method. (string[], optional)
1175 - `method`: The action to perform (string, required)
1176 - `owner`: The owner (user or organization login). The name is not case sensitive. (string, required)
1177 - `owner_type`: Owner type (user or org). If not provided, will automatically try both. (string, optional)
1178 - `perPage`: Results per page (max 50) (number, optional)
1179 - `project_number`: The project's number. Required for 'list_project_fields', 'list_project_items', 'list_project_views', and 'list_project_status_updates' methods. (number, optional)
1180 - `query`: Filter/query string. For list_projects: filter by title text and state (e.g. "roadmap is:open"). For list_project_items: advanced filtering using GitHub's project filtering syntax. (string, optional)
1181 
1182- **projects_write** - Manage GitHub Projects
1183 - **OAuth Challenge Scopes**: `project`
1184 - `body`: The body of the status update (markdown). Used for 'create_project_status_update' method. (string, optional)
1185 - `field_name`: The name of the iteration field (e.g. 'Sprint'). Required for 'create_iteration_field' method. (string, optional)
1186 - `filter`: Saved view filter; omit on update to preserve it, or pass null to clear it. (string | null, optional)
1187 - `issue_number`: The issue number. Required for 'add_project_item' when item_type is 'issue'. Also accepted by 'update_project_item' to resolve the item by issue number (combine with item_owner and item_repo). (number, optional)
1188 - `item_id`: The project item ID. Required for 'delete_project_item'. For 'update_project_item', provide either item_id, or (item_owner + item_repo + issue_number) to resolve the item by issue. (number, optional)
1189 - `item_owner`: The owner (user or organization) of the repository containing the issue or pull request. Required for 'add_project_item' method. Also accepted by 'update_project_item' when resolving the item by issue number. (string, optional)
1190 - `item_repo`: The name of the repository containing the issue or pull request. Required for 'add_project_item' method. Also accepted by 'update_project_item' when resolving the item by issue number. (string, optional)
1191 - `item_type`: The item's type, either issue or pull_request. Required for 'add_project_item' method. (string, optional)
1192 - `items`: The items to update with the top-level 'updated_field'. Required for 'update_project_items'; prefer it over calling 'update_project_item' in a loop. Each entry must match exactly one reference variant: 'node_id', numeric 'item_id', or 'item_owner' + 'item_repo' + 'issue_number'. Limit: 50 items per call. (object[], optional)
1193 - `iteration_duration`: Duration in days for iterations of the field (e.g. 7 for weekly, 14 for bi-weekly). Required for 'create_iteration_field' method. (number, optional)
1194 - `iterations`: Custom iterations for 'create_iteration_field' method. Only set this when you need iterations with varying durations, breaks between them, or specific titles. Otherwise omit it: GitHub auto-creates three iterations of 'iteration_duration' days starting on 'start_date', which is the right choice for most cases. (object[], optional)
1195 - `layout`: View layout; required when creating a view. (string, optional)
1196 - `method`: The method to execute (string, required)
1197 - `name`: View name; required when creating a view. (string, optional)
1198 - `owner`: The project owner (user or organization login). The name is not case sensitive. (string, required)
1199 - `owner_type`: Owner type (user or org). Required for 'create_project' method. If not provided for other methods, will be automatically detected. (string, optional)
1200 - `project_number`: The project's number. Required for all methods except 'create_project'. (number, optional)
1201 - `pull_request_number`: The pull request number (use when item_type is 'pull_request' for 'add_project_item' method). Provide either issue_number or pull_request_number. (number, optional)
1202 - `start_date`: Start date in YYYY-MM-DD format. Used for 'create_project_status_update' and 'create_iteration_field' methods. (string, optional)
1203 - `status`: The status of the project. Used for 'create_project_status_update' method. (string, optional)
1204 - `target_date`: The target date of the status update in YYYY-MM-DD format. Used for 'create_project_status_update' method. (string, optional)
1205 - `title`: The project title. Required for 'create_project' method. (string, optional)
1206 - `updated_field`: The field/value to apply, using {"id": 123, "value": ...} or {"name": "Status", "value": ...}; null clears the field. Required for 'update_project_item' and 'update_project_items', where one top-level field/value applies to every item in a batch. For 'update_project_item' SINGLE_SELECT fields, the name form accepts option names; the ID form expects an option ID. (object, optional)
1207 - `view_id`: Project view node ID for update or delete; must belong to owner/project_number. (string, optional)
1208 - `visible_field_names`: Ordered project field names to show on create or replace on update; omit on update to preserve, or pass [] to reset. Mutually exclusive with visible_fields. Roadmap accepts only []. (string[], optional)
1209 - `visible_fields`: Ordered project field database IDs to show on create or replace on update; omit on update to preserve, or pass [] to reset. Mutually exclusive with visible_field_names. Roadmap accepts only []. (string[], optional)
1210 
1211</details>
1212 
1213<details>
1214 
1215<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/git-pull-request-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/git-pull-request-light.png"><img src="pkg/octicons/icons/git-pull-request-light.png" width="20" height="20" alt="git-pull-request"></picture> Pull Requests</summary>
1216 
1217- **add_comment_to_pending_review** - Add review comment to the requester's latest pending pull request review
1218 - **OAuth Challenge Scopes**: `repo`
1219 - `body`: The text of the review comment (string, required)
1220 - `line`: The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range (number, optional)
1221 - `owner`: Repository owner (string, required)
1222 - `path`: The relative path to the file that necessitates a comment (string, required)
1223 - `pullNumber`: Pull request number (number, required)
1224 - `repo`: Repository name (string, required)
1225 - `side`: The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
1226 - `startLine`: For multi-line comments, the first line of the range that the comment applies to (number, optional)
1227 - `startSide`: For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
1228 - `subjectType`: The level at which the comment is targeted (string, required)
1229 
1230- **add_reply_to_pull_request_comment** - Add reply to pull request comment
1231 - **OAuth Challenge Scopes**: `repo`
1232 - `body`: The text of the reply. Required unless reaction is provided. (string, optional)
1233 - `commentId`: The numeric ID of the pull request review comment to reply or react to. Use the number from a #discussion_r... anchor, not the GraphQL thread node ID (PRRT_...). (number, required)
1234 - `owner`: Repository owner (string, required)
1235 - `pullNumber`: Pull request number. Required when body is provided. (number, optional)
1236 - `reaction`: Emoji reaction to add. Required unless body is provided. (string, optional)
1237 - `repo`: Repository name (string, required)
1238 
1239- **create_pull_request** - Open new pull request
1240 - **OAuth Challenge Scopes**: `repo`
1241 - `base`: Branch to merge into (string, required)
1242 - `body`: PR description (string, optional)
1243 - `draft`: Create as draft PR (boolean, optional)
1244 - `head`: Branch containing changes (string, required)
1245 - `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
1246 - `owner`: Repository owner (string, required)
1247 - `repo`: Repository name (string, required)
1248 - `reviewers`: GitHub usernames or ORG/team-slug team reviewers to request reviews from (string[], optional)
1249 - `title`: PR title (string, required)
1250 
1251- **list_pull_requests** - List pull requests
1252 - **OAuth Challenge Scopes**: `repo`
1253 - `base`: Filter by base branch (string, optional)
1254 - `direction`: Sort direction (string, optional)
1255 - `fields`: Subset of fields to return for each pull request. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body' in particular drops the largest per-result data. (string[], optional)
1256 - `head`: Filter by head user/org and branch (string, optional)
1257 - `owner`: Repository owner (string, required)
1258 - `page`: Page number for pagination (min 1) (number, optional)
1259 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1260 - `repo`: Repository name (string, required)
1261 - `sort`: Sort by (string, optional)
1262 - `state`: Filter by state (string, optional)
1263 
1264- **merge_pull_request** - Merge pull request
1265 - **OAuth Challenge Scopes**: `repo`
1266 - `commit_message`: Extra detail for merge commit (string, optional)
1267 - `commit_title`: Title for merge commit (string, optional)
1268 - `expectedHeadSha`: The expected SHA of the pull request's HEAD ref (string, optional)
1269 - `merge_method`: Merge method (string, optional)
1270 - `owner`: Repository owner (string, required)
1271 - `pullNumber`: Pull request number (number, required)
1272 - `repo`: Repository name (string, required)
1273 
1274- **pull_request_read** - Get details for a single pull request
1275 - **OAuth Challenge Scopes**: `repo`
1276 - `after`: Cursor for pagination, used only by the get_review_comments method. Pass the endCursor from the previous page's PageInfo to fetch the next page. (string, optional)
1277 - `method`: Action to specify what pull request data needs to be retrieved from GitHub.
1278 Possible options:
1279 1. get - Get details of a specific pull request.
1280 2. get_diff - Get the diff of a pull request.
1281 3. get_status - Get combined commit status of a head commit in a pull request.
1282 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.
1283 5. get_commits - Get the list of commits on a pull request. Use with pagination parameters to control the number of results returned.
1284 6. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns thread metadata and comments with nullable current and original line-range coordinates (line, start_line, original_line, original_start_line). Current coordinates are omitted when unavailable, such as for outdated comments. Use cursor-based pagination (perPage, after) to control results.
1285 7. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method. Use with pagination parameters to control the number of results returned.
1286 8. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
1287 9. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.
1288 (string, required)
1289 - `owner`: Repository owner (string, required)
1290 - `page`: Page number for pagination (min 1) (number, optional)
1291 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1292 - `pullNumber`: Pull request number (number, required)
1293 - `repo`: Repository name (string, required)
1294 
1295- **pull_request_review_write** - Write operations (create, submit, delete) on pull request reviews
1296 - **OAuth Challenge Scopes**: `repo`
1297 - `body`: Review comment text (string, optional)
1298 - `commitID`: SHA of commit to review (string, optional)
1299 - `event`: Review action to perform. (string, optional)
1300 - `method`: The write operation to perform on pull request review. (string, required)
1301 - `owner`: Repository owner (string, required)
1302 - `pullNumber`: Pull request number (number, required)
1303 - `repo`: Repository name (string, required)
1304 - `threadId`: The node ID of the review thread (e.g., PRRT_kwDOxxx). Required for resolve_thread and unresolve_thread methods. Get thread IDs from pull_request_read with method get_review_comments. (string, optional)
1305 
1306- **search_pull_requests** - Search pull requests
1307 - **OAuth Challenge Scopes**: `repo`
1308 - `fields`: Subset of fields to return for each pull request result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body', 'reactions', and 'labels' in particular drops the largest per-result data. (string[], optional)
1309 - `order`: Sort order (string, optional)
1310 - `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
1311 - `page`: Page number for pagination (min 1) (number, optional)
1312 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1313 - `query`: Search query using GitHub pull request search syntax (string, required)
1314 - `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
1315 - `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
1316 
1317- **update_pull_request** - Edit pull request
1318 - **OAuth Challenge Scopes**: `repo`
1319 - `base`: New base branch name (string, optional)
1320 - `body`: New description (string, optional)
1321 - `draft`: Mark pull request as draft (true) or ready for review (false) (boolean, optional)
1322 - `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
1323 - `owner`: Repository owner (string, required)
1324 - `pullNumber`: Pull request number to update (number, required)
1325 - `repo`: Repository name (string, required)
1326 - `reviewers`: GitHub usernames or ORG/team-slug team reviewers to request reviews from (string[], optional)
1327 - `state`: New state (string, optional)
1328 - `title`: New title (string, optional)
1329 
1330- **update_pull_request_branch** - Update pull request branch
1331 - **OAuth Challenge Scopes**: `repo`
1332 - `expectedHeadSha`: The expected SHA of the pull request's HEAD ref (string, optional)
1333 - `owner`: Repository owner (string, required)
1334 - `pullNumber`: Pull request number (number, required)
1335 - `repo`: Repository name (string, required)
1336 
1337</details>
1338 
1339<details>
1340 
1341<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/repo-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/repo-light.png"><img src="pkg/octicons/icons/repo-light.png" width="20" height="20" alt="repo"></picture> Repositories</summary>
1342 
1343- **create_branch** - Create branch
1344 - **OAuth Challenge Scopes**: `repo`
1345 - `branch`: Name for new branch (string, required)
1346 - `from_branch`: Source branch (defaults to repo default) (string, optional)
1347 - `owner`: Repository owner (string, required)
1348 - `repo`: Repository name (string, required)
1349 
1350- **create_or_update_file** - Create or update file
1351 - **OAuth Challenge Scopes**: `repo`, `workflow`
1352 - `allow_symlink_write`: Set true to update a symbolic link itself; content must be its new target path. (boolean, optional)
1353 - `branch`: Branch to create/update the file in (string, required)
1354 - `content`: Content of the file, exactly as it should appear once written. Do not base64-encode it; this server does that before calling the REST API. (string, required)
1355 - `message`: Commit message (string, required)
1356 - `owner`: Repository owner (username or organization) (string, required)
1357 - `path`: Path where to create/update the file (string, required)
1358 - `repo`: Repository name (string, required)
1359 - `sha`: The blob SHA of the file being replaced. Required if the file already exists. Retrieve it with get_file_contents using the same owner, repo, and path, with ref set to this tool's branch value. (string, optional)
1360 
1361- **create_repository** - Create repository
1362 - **OAuth Challenge Scopes**: `repo`
1363 - `autoInit`: Initialize with README (boolean, optional)
1364 - `description`: Repository description (string, optional)
1365 - `name`: Repository name (string, required)
1366 - `organization`: Organization to create the repository in (omit to create in your personal account) (string, optional)
1367 - `private`: Whether the repository should be private. Defaults to true (private) when omitted. (boolean, optional)
1368 
1369- **delete_file** - Delete file
1370 - **OAuth Challenge Scopes**: `repo`, `workflow`
1371 - `branch`: Branch to delete the file from (string, required)
1372 - `message`: Commit message (string, required)
1373 - `owner`: Repository owner (username or organization) (string, required)
1374 - `path`: Path to the file to delete (string, required)
1375 - `repo`: Repository name (string, required)
1376 
1377- **delete_repository** - Delete repository
1378 - **OAuth Challenge Scopes**: `delete_repo`, `repo`
1379 - `owner`: Repository owner (username or organization) (string, required)
1380 - `repo`: Repository name (string, required)
1381 
1382- **fork_repository** - Fork repository
1383 - **OAuth Challenge Scopes**: `repo`
1384 - `organization`: Organization to fork to (string, optional)
1385 - `owner`: Repository owner (string, required)
1386 - `repo`: Repository name (string, required)
1387 
1388- **get_commit** - Get commit details
1389 - **OAuth Challenge Scopes**: `repo`
1390 - `detail`: Level of detail to include for changed files. "none" omits stats and files entirely. "stats" (default) includes per-file metadata: filename, status, and lines-of-code counts (additions, deletions, changes), with no patch content. "full_patch" additionally includes the unified diff content for each file and can be very large. (string, optional)
1391 - `owner`: Repository owner (string, required)
1392 - `page`: Page number for pagination (min 1) (number, optional)
1393 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1394 - `repo`: Repository name (string, required)
1395 - `sha`: Commit SHA, branch name, or tag name (string, required)
1396 
1397- **get_file_contents** - Get file or directory contents
1398 - **OAuth Challenge Scopes**: `repo`
1399 - `fields`: Subset of fields to return for each entry when the path is a directory. If omitted, all fields are returned. Ignored when the path is a single file. Use this to reduce response size when listing directories and you only need specific fields, e.g. just 'name' and 'type'. (string[], optional)
1400 - `owner`: Repository owner (username or organization) (string, required)
1401 - `path`: Path to file/directory (string, optional)
1402 - `ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
1403 - `repo`: Repository name (string, required)
1404 - `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
1405 
1406- **get_latest_release** - Get latest release
1407 - **OAuth Challenge Scopes**: `repo`
1408 - `owner`: Repository owner (string, required)
1409 - `repo`: Repository name (string, required)
1410 
1411- **get_release_by_tag** - Get a release by tag name
1412 - **OAuth Challenge Scopes**: `repo`
1413 - `owner`: Repository owner (string, required)
1414 - `repo`: Repository name (string, required)
1415 - `tag`: Tag name (e.g., 'v1.0.0') (string, required)
1416 
1417- **get_tag** - Get tag details
1418 - **OAuth Challenge Scopes**: `repo`
1419 - `owner`: Repository owner (string, required)
1420 - `repo`: Repository name (string, required)
1421 - `tag`: Tag name (string, required)
1422 
1423- **list_branches** - List branches
1424 - **OAuth Challenge Scopes**: `repo`
1425 - `owner`: Repository owner (string, required)
1426 - `page`: Page number for pagination (min 1) (number, optional)
1427 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1428 - `repo`: Repository name (string, required)
1429 
1430- **list_commits** - List commits
1431 - **OAuth Challenge Scopes**: `repo`
1432 - `author`: Author username or email address to filter commits by (string, optional)
1433 - `fields`: Subset of fields to return for each commit. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields, e.g. just 'sha' and 'html_url'. (string[], optional)
1434 - `owner`: Repository owner (string, required)
1435 - `page`: Page number for pagination (min 1) (number, optional)
1436 - `path`: Only commits containing this file path will be returned (string, optional)
1437 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1438 - `repo`: Repository name (string, required)
1439 - `sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
1440 - `since`: Only commits after this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD) (string, optional)
1441 - `until`: Only commits before this date will be returned (ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DD) (string, optional)
1442 
1443- **list_releases** - List releases
1444 - **OAuth Challenge Scopes**: `repo`
1445 - `fields`: Subset of fields to return for each release. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'body' in particular drops the largest per-release data. (string[], optional)
1446 - `owner`: Repository owner (string, required)
1447 - `page`: Page number for pagination (min 1) (number, optional)
1448 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1449 - `repo`: Repository name (string, required)
1450 
1451- **list_repository_collaborators** - List repository collaborators
1452 - **OAuth Challenge Scopes**: `repo`
1453 - `affiliation`: Filter by affiliation. Can be one of: 'outside' (outside collaborators), 'direct' (all with permissions regardless of org membership), 'all' (all collaborators). Default: 'all' (string, optional)
1454 - `owner`: Repository owner (string, required)
1455 - `page`: Page number for pagination (default 1, min 1) (number, optional)
1456 - `perPage`: Results per page for pagination (default 30, min 1, max 100) (number, optional)
1457 - `repo`: Repository name (string, required)
1458 
1459- **list_tags** - List tags
1460 - **OAuth Challenge Scopes**: `repo`
1461 - `owner`: Repository owner (string, required)
1462 - `page`: Page number for pagination (min 1) (number, optional)
1463 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1464 - `repo`: Repository name (string, required)
1465 
1466- **push_files** - Push files to repository
1467 - **OAuth Challenge Scopes**: `repo`, `workflow`
1468 - `branch`: Branch to push to (string, required)
1469 - `files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)
1470 - `message`: Commit message (string, required)
1471 - `owner`: Repository owner (string, required)
1472 - `repo`: Repository name (string, required)
1473 
1474- **search_code** - Search code
1475 - **OAuth Challenge Scopes**: `repo`
1476 - `fields`: Subset of fields to return for each code search result. If omitted, all fields are returned. Use this to reduce response size when you only need specific fields; omitting 'repository' and 'text_matches' in particular drops the largest per-result data. (string[], optional)
1477 - `order`: Sort order for results (string, optional)
1478 - `page`: Page number for pagination (min 1) (number, optional)
1479 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1480 - `query`: Search query (GitHub code search REST). Implicit AND between terms; supports `OR`, `NOT`, and `"quoted phrase"` for exact match. Qualifiers: `repo:owner/repo`, `org:`, `user:`, `language:`, `path:dir` (prefix match), `filename:exact.ext`, `extension:`, `in:file`, `in:path`, `size:`, `is:archived`, `is:fork`. Max 256 chars. Examples: `WithContext language:go org:github`; `"package main" repo:o/r`; `func extension:go path:cmd repo:o/r`; `NOT TODO language:go repo:o/r`. (string, required)
1481 - `sort`: Sort field ('indexed' only) (string, optional)
1482 
1483- **search_commits** - Search commits
1484 - **OAuth Challenge Scopes**: `repo`
1485 - `order`: Sort order (string, optional)
1486 - `page`: Page number for pagination (min 1) (number, optional)
1487 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1488 - `query`: Commit search query (GitHub commit search REST). Searches commit messages on the default branch only. Scope the search with `repo:owner/repo`, `org:`, or `user:` (queries without a scope qualifier match across all of GitHub and are usually not what you want). Other qualifiers: `author:`, `committer:`, `author-name:`, `committer-name:`, `author-email:`, `committer-email:`, `author-date:`, `committer-date:` (supports `>`, `<`, `>=`, `<=`, and `YYYY-MM-DD..YYYY-MM-DD` ranges), `merge:true|false`, `hash:`, `tree:`, `parent:`, `is:public`. Examples: `repo:owner/repo fix panic`; `org:github author:defunkt committer-date:>=2024-01-01`; `"refactor cache" repo:o/r`; `hash:abc1234 repo:o/r`. (string, required)
1489 - `sort`: Sort by author or committer date (defaults to best match) (string, optional)
1490 
1491- **search_repositories** - Search repositories
1492 - **OAuth Challenge Scopes**: `repo`
1493 - `minimal_output`: Return minimal repository information (default: true). When false, returns full GitHub API repository objects. (boolean, optional)
1494 - `order`: Sort order (string, optional)
1495 - `page`: Page number for pagination (min 1) (number, optional)
1496 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1497 - `query`: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
1498 - `sort`: Sort repositories by field, defaults to best match (string, optional)
1499 
1500</details>
1501 
1502<details>
1503 
1504<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/shield-lock-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/shield-lock-light.png"><img src="pkg/octicons/icons/shield-lock-light.png" width="20" height="20" alt="shield-lock"></picture> Secret Protection</summary>
1505 
1506- **get_secret_scanning_alert** - Get secret scanning alert
1507 - **OAuth Challenge Scopes**: `security_events`
1508 - `alertNumber`: The number of the alert. (number, required)
1509 - `owner`: The owner of the repository. (string, required)
1510 - `repo`: The name of the repository. (string, required)
1511 
1512- **list_secret_scanning_alerts** - List secret scanning alerts
1513 - **OAuth Challenge Scopes**: `security_events`
1514 - `owner`: The owner of the repository. (string, required)
1515 - `page`: Page number for pagination (min 1) (number, optional)
1516 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1517 - `repo`: The name of the repository. (string, required)
1518 - `resolution`: Filter by resolution (string, optional)
1519 - `secret_type`: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. (string, optional)
1520 - `state`: Filter by state (string, optional)
1521 
1522</details>
1523 
1524<details>
1525 
1526<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/shield-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/shield-light.png"><img src="pkg/octicons/icons/shield-light.png" width="20" height="20" alt="shield"></picture> Security Advisories</summary>
1527 
1528- **get_global_security_advisory** - Get a global security advisory
1529 - **OAuth Challenge Scopes**: `security_events`
1530 - `ghsaId`: GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx). (string, required)
1531 
1532- **list_global_security_advisories** - List global security advisories
1533 - **OAuth Challenge Scopes**: `security_events`
1534 - `affects`: Filter advisories by affected package or version (e.g. "package1,[email protected]"). (string, optional)
1535 - `cveId`: Filter by CVE ID. (string, optional)
1536 - `cwes`: Filter by Common Weakness Enumeration IDs (e.g. ["79", "284", "22"]). (string[], optional)
1537 - `ecosystem`: Filter by package ecosystem. (string, optional)
1538 - `ghsaId`: Filter by GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx). (string, optional)
1539 - `isWithdrawn`: Whether to only return withdrawn advisories. (boolean, optional)
1540 - `modified`: Filter by publish or update date or date range (ISO 8601 date or range). (string, optional)
1541 - `published`: Filter by publish date or date range (ISO 8601 date or range). (string, optional)
1542 - `severity`: Filter by severity. (string, optional)
1543 - `type`: Advisory type. (string, optional)
1544 - `updated`: Filter by update date or date range (ISO 8601 date or range). (string, optional)
1545 
1546- **list_org_repository_security_advisories** - List org repository security advisories
1547 - **OAuth Challenge Scopes**: `security_events`
1548 - `direction`: Sort direction. (string, optional)
1549 - `org`: The organization login. (string, required)
1550 - `sort`: Sort field. (string, optional)
1551 - `state`: Filter by advisory state. (string, optional)
1552 
1553- **list_repository_security_advisories** - List repository security advisories
1554 - **OAuth Challenge Scopes**: `security_events`
1555 - `direction`: Sort direction. (string, optional)
1556 - `owner`: The owner of the repository. (string, required)
1557 - `repo`: The name of the repository. (string, required)
1558 - `sort`: Sort field. (string, optional)
1559 - `state`: Filter by advisory state. (string, optional)
1560 
1561</details>
1562 
1563<details>
1564 
1565<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/star-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/star-light.png"><img src="pkg/octicons/icons/star-light.png" width="20" height="20" alt="star"></picture> Stargazers</summary>
1566 
1567- **list_starred_repositories** - List starred repositories
1568 - **OAuth Challenge Scopes**: `repo`
1569 - `direction`: The direction to sort the results by. (string, optional)
1570 - `page`: Page number for pagination (min 1) (number, optional)
1571 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1572 - `sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
1573 - `username`: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
1574 
1575- **star_repository** - Star repository
1576 - **OAuth Challenge Scopes**: `repo`
1577 - `owner`: Repository owner (string, required)
1578 - `repo`: Repository name (string, required)
1579 
1580- **unstar_repository** - Unstar repository
1581 - **OAuth Challenge Scopes**: `repo`
1582 - `owner`: Repository owner (string, required)
1583 - `repo`: Repository name (string, required)
1584 
1585</details>
1586 
1587<details>
1588 
1589<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/people-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/people-light.png"><img src="pkg/octicons/icons/people-light.png" width="20" height="20" alt="people"></picture> Users</summary>
1590 
1591- **search_users** - Search users
1592 - **OAuth Challenge Scopes**: `repo`
1593 - `order`: Sort order (string, optional)
1594 - `page`: Page number for pagination (min 1) (number, optional)
1595 - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1596 - `query`: User search query. Examples: 'john smith', 'location:seattle', 'followers:>100'. Search is automatically scoped to type:user. (string, required)
1597 - `sort`: Sort users by number of followers or repositories, or when the person joined GitHub. (string, optional)
1598 
1599</details>
1600<!-- END AUTOMATED TOOLS -->
1601 
1602### Additional Tools in Remote GitHub MCP Server
1603 
1604<details>
1605 
1606<summary>Copilot</summary>
1607 
1608- **create_pull_request_with_copilot** - Perform task with GitHub Copilot coding agent
1609 - `owner`: Repository owner. You can guess the owner, but confirm it with the user before proceeding. (string, required)
1610 - `repo`: Repository name. You can guess the repository name, but confirm it with the user before proceeding. (string, required)
1611 - `problem_statement`: Detailed description of the task to be performed (e.g., 'Implement a feature that does X', 'Fix bug Y', etc.) (string, required)
1612 - `title`: Title for the pull request that will be created (string, required)
1613 - `base_ref`: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)
1614 
1615</details>
1616 
1617<details>
1618 
1619<summary>Copilot Spaces</summary>
1620 
1621- **Authentication note**
1622 - Fine-grained PATs are not hidden by classic PAT scope filtering, so these tools may still appear even when the token cannot use them.
1623 - For org-owned spaces, fine-grained PATs must be installed on the owning organization and include `organization_copilot_spaces: read`.
1624 - If an org-owned space contains repository-backed resources, the token must also have access to every referenced repository or the space may be treated as not found.
1625 
1626- **get_copilot_space** - Get Copilot Space
1627 - `owner`: The owner of the space. (string, required)
1628 - `name`: The name of the space. (string, required)
1629 
1630- **list_copilot_spaces** - List Copilot Spaces
1631 
1632</details>
1633 
1634<details>
1635 
1636<summary>GitHub Support Docs Search</summary>
1637 
1638- **github_support_docs_search** - Retrieve documentation relevant to answer GitHub product and support questions. Support topics include: GitHub Actions Workflows, Authentication, GitHub Support Inquiries, Pull Request Practices, Repository Maintenance, GitHub Pages, GitHub Packages, GitHub Discussions, Copilot Spaces
1639 - `query`: Input from the user about the question they need answered. This is the latest raw unedited user message. You should ALWAYS leave the user message as it is, you should never modify it. (string, required)
1640 
1641</details>
1642 
1643## Read-Only Mode
1644 
1645To run the server in read-only mode, you can use the `--read-only` flag. This will only offer read-only tools, preventing any modifications to repositories, issues, pull requests, etc.
1646 
1647```bash
1648./github-mcp-server --read-only
1649```
1650 
1651When using Docker, you can pass the read-only mode as an environment variable:
1652 
1653```bash
1654docker run -i --rm \
1655 -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
1656 -e GITHUB_READ_ONLY=1 \
1657 ghcr.io/github/github-mcp-server
1658```
1659 
1660## Lockdown Mode
1661 
1662Lockdown mode limits the content that the server will surface from public repositories. When enabled, the server checks whether the author of each item has push access to the repository. Private repositories are unaffected, and collaborators keep full access to their own content.
1663 
1664Lockdown mode is a best-effort content filter intended to reduce the risk of prompt injection from untrusted repository content (issues, pull requests, comments, commits, etc.). It is **not** an authorization boundary: it does not change what the underlying GitHub credential can read or write, and content withheld from a filtered tool response may still be reachable through other tools or direct GitHub API access with the same credential.
1665 
1666As an intentional exception, content authored by a small set of trusted bot accounts (currently `github-actions[bot]` and `copilot`) is always treated as safe, regardless of push access. This avoids filtering routine automation output (e.g. CI-generated commits or comments) that would otherwise be withheld under lockdown mode.
1667 
1668```bash
1669./github-mcp-server --lockdown-mode
1670```
1671 
1672When running with Docker, set the corresponding environment variable:
1673 
1674```bash
1675docker run -i --rm \
1676 -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
1677 -e GITHUB_LOCKDOWN_MODE=1 \
1678 ghcr.io/github/github-mcp-server
1679```
1680 
1681In HTTP mode, this flag (or `GITHUB_LOCKDOWN_MODE`) is an upper bound: the `X-MCP-Lockdown` request header can enable lockdown mode when the operator has not, but it cannot disable lockdown mode the operator has already enabled. See the [Server Configuration Guide](docs/server-configuration.md#lockdown-mode) for details.
1682 
1683The behavior of lockdown mode depends on the tool invoked.
1684 
1685Following tools will return an error when the author lacks the push access:
1686 
1687- `issue_read:get`
1688- `pull_request_read:get`
1689- `pull_request_read:get_diff`
1690- `pull_request_read:get_files`
1691- `pull_request_read:get_commits`
1692 
1693Following tools will filter out content from users lacking the push access:
1694 
1695- `issue_read:get_comments`
1696- `issue_read:get_sub_issues`
1697- `pull_request_read:get_comments`
1698- `pull_request_read:get_review_comments`
1699- `pull_request_read:get_reviews`
1700 
1701## i18n / Overriding Descriptions
1702 
1703The descriptions of the tools can be overridden by creating a
1704`github-mcp-server-config.json` file in the same directory as the binary.
1705 
1706The file should contain a JSON object with the tool names as keys and the new
1707descriptions as values. For example:
1708 
1709```json
1710{
1711 "TOOL_ADD_ISSUE_COMMENT_DESCRIPTION": "an alternative description",
1712 "TOOL_CREATE_BRANCH_DESCRIPTION": "Create a new branch in a GitHub repository"
1713}
1714```
1715 
1716You can create an export of the current translations by running the binary with
1717the `--export-translations` flag.
1718 
1719This flag will preserve any translations/overrides you have made, while adding
1720any new translations that have been added to the binary since the last time you
1721exported.
1722 
1723```sh
1724./github-mcp-server --export-translations
1725cat github-mcp-server-config.json
1726```
1727 
1728You can also use ENV vars to override the descriptions. The environment
1729variable names are the same as the keys in the JSON file, prefixed with
1730`GITHUB_MCP_` and all uppercase.
1731 
1732For example, to override the `TOOL_ADD_ISSUE_COMMENT_DESCRIPTION` tool, you can
1733set the following environment variable:
1734 
1735```sh
1736export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description"
1737```
1738 
1739### Overriding Server Name and Title
1740 
1741The same override mechanism can be used to customize the MCP server's `name` and
1742`title` fields in the initialization response. This is useful when running
1743multiple GitHub MCP Server instances (e.g., one for github.com and one for
1744GitHub Enterprise Server) so that agents can distinguish between them.
1745 
1746| Key | Environment Variable | Default |
1747|-----|---------------------|---------|
1748| `SERVER_NAME` | `GITHUB_MCP_SERVER_NAME` | `github-mcp-server` |
1749| `SERVER_TITLE` | `GITHUB_MCP_SERVER_TITLE` | `GitHub MCP Server` |
1750 
1751For example, to configure a server instance for GitHub Enterprise Server:
1752 
1753```json
1754{
1755 "SERVER_NAME": "ghes-mcp-server",
1756 "SERVER_TITLE": "GHES MCP Server"
1757}
1758```
1759 
1760Or using environment variables:
1761 
1762```sh
1763export GITHUB_MCP_SERVER_NAME="ghes-mcp-server"
1764export GITHUB_MCP_SERVER_TITLE="GHES MCP Server"
1765```
1766 
1767## Library Usage
1768 
1769The exported Go API of this module should currently be considered unstable, and subject to breaking changes. In the future, we may offer stability; please file an issue if there is a use case where this would be valuable.
1770 
1771## Contributing
1772 
1773Contributions are welcome. Before opening a pull request, please read the [contributing guide](CONTRIBUTING.md) for setup, testing, linting, and documentation generation instructions.
1774 
1775## Support
1776 
1777For help using the GitHub MCP Server, see the [support guide](SUPPORT.md). If you have found a bug or want to request a feature, please search existing issues before opening a new one.
1778 
1779## Security
1780 
1781Please do not report security vulnerabilities through public issues. Follow the instructions in the [security policy](SECURITY.md) to report vulnerabilities responsibly.
1782 
1783## License
1784 
1785This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE) for the full terms.
1786 

Discussion

Alternatives

Also in Agents & MCP