Connect GitHub Copilot in Visual Studio
Connect GitHub Copilot in Visual Studio 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 that supports MCP servers.
GitHub Copilot is enabled in Visual Studio.
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 to the MCP server:
Open GitHub Copilot Chat in Visual Studio.
Select Tools, and then add a custom MCP server.
Select where you want to save the MCP server configuration:
Global: Makes the MCP server available in all Visual Studio solutions.
Solution: Makes the MCP server available only in the current solution.
Enter the MCP server details:
Setting
Value
Server ID
private-ca-mcp-server
Type
HTTP
URL
https://mcp.digicert.com/private-ca
Add the following headers:
Header
Value
x-api-keyYour Service User Token ID
User-AgentEnter any value. Visual Studio requires the User-Agent header to be present, but does not validate its value
Save the configuration.
Open Tools again and enable private-ca-mcp-server.
Confirm that the server status is Online. If the server does not connect, open the server configuration and select Reconnect.
Verify the connection
Open GitHub Copilot Chat.
Select Agent mode.
Enter a prompt such as:
List the certificate authorities in my account.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.