Skip to main content

Using Copilot cloud agent via the GitHub MCP Server

Start agente en la nube de Copilot sessions from any IDE or agentic tool that supports Model Context Protocol (MCP).

¿Quién puede utilizar esta característica?

agente en la nube de Copilot está disponible con los planes Copilot Pro de GitHub, GitHub Copilot Pro+, GitHub Copilot para empresas y GitHub Copilot para grandes empresas. El agente está disponible en todos los repositorios almacenados en GitHub, excepto los repositorios propiedad de cuentas de usuario administradas y donde se ha deshabilitado explícitamente.
Sign up for Copilot

En este artículo

Nota:

  • 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 Uso del servidor MCP de GitHub en el 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.

    Sugerencia

    • 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