Skip to main content

Connect GitHub Copilot in Visual Studio Code

Connect GitHub Copilot in Visual Studio Code to the DigiCert® Private CA MCP server to ask questions about your DigiCert-hosted Private CA environment.

Before you begin

Make sure that:

  • You have a version of Visual Studio Code that supports MCP servers.

  • GitHub Copilot is enabled in Visual Studio Code.

  • You have the Service User Token ID and MCP connection details described in Prepare to connect an AI client.

Connect to the MCP server

To connect GitHub Copilot in Visual Studio Code to the Private CA MCP server:

  1. In Visual Studio Code, select View, then select Command Palette.

  2. Run the MCP: Add Server command.

  3. Select HTTP as the server type.

  4. Enter the following MCP server URL:

    https://mcp.digicert.com/private-ca

  5. Enter the following server name:

    private-ca-mcp-server

  6. In the generated mcp.json file, add the headers object to the private-ca-mcp-server entry:

    {
      "servers": {
        "private-ca-mcp-server": {
          "type": "http",
          "url": "https://mcp.digicert.com/private-ca",
          "headers": {
            "x-api-key": "<Service User Token ID>"
          }
        }
      }
    }
  7. Save the mcp.json file.

  8. Select Start for private-ca-mcp-server to start the connection.

Verify the connection

  1. Open GitHub Copilot Chat.

  2. Select Agent mode.

  3. Enter a prompt such as:

    List the certificate authorities in my account.

  4. If prompted, approve the use of the Private CA MCP tool.

GitHub Copilot retrieves and presents the Private CA information available to your Service User.