Skip to main content

Using the GitHub MCP Server from Copilot Chat

Perform GitHub tasks—like creating branches, merging pull requests, and searching for users—directly from GitHub 中的Copilot 对话助手, with no setup required.

在本文中

The GitHub MCP server is pre-configured in GitHub 中的Copilot 对话助手 with a limited set of skills, so you can use it immediately. Instruct Copilot 对话助手 to perform tasks like creating branches or merging pull requests on your behalf.

For a full list of available skills, see GitHub Copilot Chat 速查表. For more about MCP, see 关于模型上下文协议 (MCP).

Use the GitHub MCP server

  1. 导航到 https://github.com/copilot

  2. Type a request and press Enter. For example:

    Create a new branch called [BRANCH-NAME] in the repository [OWNER/REPO-NAME].

    Merge the pull request [PR-NUMBER] in the repository [OWNER/REPO-NAME].

  3. Click Allow to confirm the action.

  4. Copilot 对话助手 performs the action and shows the result.

Limitations

The GitHub MCP server in GitHub 中的Copilot 对话助手 supports a limited set of skills. If a requested action is not supported, Copilot 对话助手 provides guidance but cannot perform it directly.

To access the full set of tools, set up the GitHub MCP server in your IDE. See Using the GitHub MCP Server in your IDE.

You can also use the GitHub MCP server with Copilot云代理. It is enabled with read-only access by default and can be customized for wider access. See 使用模型上下文协议(MCP)扩展GitHub Copilot云代理.

Further reading