Updated on 2026-08-04 GMT+08:00

Installing GitHub-MCP

  1. Use your GitHub account to log in to GitHub, click the profile picture in the upper right corner, and choose Settings > Developer settings.
  2. Choose Personal access tokens > Tokens (classic) > Generate new token > Generate new token(classic) and enter the key information.
  3. Specify the Note, Expiration, and Select scopes parameters, and click Generate token.

    After the token is created, the page of the new token is automatically displayed. The token is temporary. Copy and save it.
    Figure 1 Entering the token configuration information

  4. Click in the upper right corner of CodeArts Agent IDE to open the settings page.
  5. In the navigation pane on the left, choose MCP.
  6. Copy the following code snippet, click Configure MCP. Modify the JSON object configuration of Github-MCP and save the current configuration.

    "GitHub-MCP": {
        "url": "https://api.githubcopilot.com/mcp/x/all",
        "headers": {
            "Authorization": "Bearer Your GitHub Token"
            "X-MCP-Toolsets": "repos,issues,pull_requests,actions"
        },
        "timeout": 60,
        "disabled": false,
        "type": "streamableHttp"
       }

    Your GitHub Token can be obtained in Creating a Token on GitHub. X-MCP-Toolsets indicates the GitHub toolset to be enabled and controls the operation permissions invoked by AI. If there is no special requirement, use the default code configuration.

    On the Installed tab, click in the row where Github-MCP is located. If the MCP service status is displayed in green, the service is enabled successfully.