Skip to main content

Using Copilot cloud agent via the GitHub MCP Server

Start Copilot облачный агент sessions from any IDE or agentic tool that supports Model Context Protocol (MCP).

Кто может использовать эту функцию?

Copilot облачный агент доступна с GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot для бизнеса и GitHub Copilot Enterprise планами. Агент доступен во всех репозиториях, хранящихся на GitHub, за исключением тех, которые принадлежат управляемые учетные записи пользователей и где он явно отключен.
Sign up for Copilot

В этой статье

Примечание.

  • This capability is only available on the remote GitHub MCP Server and host applications where remote MCP Servers are supported.

Starting a session

  1. Install the GitHub MCP Server in your preferred IDE or agentic coding tool. See Использование GitHub MCP сервера в вашем IDE.

  2. Ensure the create_pull_request_with_copilot tool is enabled.

  3. Open chat.

  4. Type a prompt asking Copilot to create a pull request, with the details of what you want to change.

    For example, Open a PR in my repository to expand unit test coverage.

    Совет

    • You can ask Copilot to open a pull request using a specific branch as the base branch by including it in your prompt.
  5. Submit your prompt.

    Copilot will start a new session, open a draft pull request and work on the task in the background. As it works, it will push changes to the pull request, and once it has finished, it will add you as a reviewer. In most cases, the MCP host will show you the URL of the created pull request.

Further reading