๐Ÿ’ป Develop STEP 11 / 15 โฑ 20 min โณ 80 min left

CODE: Cloud Agent

11.1 โ€” Set up the Context7 MCP server for the Cloud Agent

The MCP you set up in Part 3 was for VS Code. For the Cloud Agent to use MCP, you need a separate repository-level setting (shared by the Cloud Agent and Copilot Code Review).

  1. On github.com, open your repository and click the Settings tab.
  2. In the sidebar, go to Code & automation โ†’ Copilot โ†’ MCP servers.
  3. Paste the following JSON into the MCP configuration field and click Save MCP configuration.
{
  "mcpServers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "tools": ["resolve-library-id", "get-library-docs"]
    }
  }
}

โฑ ~2 min

11.2 โ€” Assign an existing Issue to the Cloud Agent

Pick one of the Issues you created in Step 6.5 and let Cloud Agent implement it.

  1. On github.com, open your repository.
  2. Click the Issues tab at the top.
  3. From the list, open one of the Issues you want Cloud Agent to work on.
  4. In the right sidebar, click Assignees.
  5. Pick one of Copilot (GitHub), Claude (Anthropic), or Codex (OpenAI) from the list and assign it.

Cloud Agent assignment screen

When you assign, you can customize:

  • Additional prompt โ€” extra instructions added on top of the Issue description.
  • Model selection โ€” pick from Copilot / Claude / Codex.
  • Base branch โ€” the branch the work starts from.

11.3 โ€” Review the PR

The PR the Cloud Agent creates is opened as a Draft.

  1. Open the PR and review the changes.
  2. Click Ready for review to lift the draft state.
  3. Copilot Code Review kicks off automatically.

Resolving conflicts with Fix with Copilot

11.4 โ€” Try it in your Codespace before merging

Before you merge, it's smarter to actually run the Cloud Agent's PR in your Codespace and check it. Check out the PR branch with the gh CLI (replace <PR-number> with the real PR number).

gh pr checkout <PR-number> && npm install && npm run dev

When the port forwarding notification pops up, click "Open in Browser" to try out the new feature the Cloud Agent shipped. If it looks good, merge the PR; if something's off, leave a comment on the PR and let the Cloud Agent fix it.