Connecting to the DevOps Velocity MCP server using GitHub Copilot in Visual Studio Code

You can connect to the HCL DevOps Velocity (Velocity) MCP server by using GitHub Copilot in Visual Studio (VS) Code to interact with Velocity and retrieve the necessary data and insights..

Before you begin

You must have installed Velocity and enabled the MCP server. See MCP server setup in DevOps Velocity.

Procedure

  1. Optional: Open the terminal and enter the following command to allow the self-signed certificates if you are using a self-signed certificate during the Velocity installation.
    export NODE_TLS_REJECT_UNAUTHORIZED=0
  2. Enter the following command to open VS Code.
    code .
    
  3. Press Ctrl+Shift+P on your keyboard or search for MCP server and select MCP: Add Server.
  4. Select HTTP from the list.
  5. Enter the MCP endpoint for Velocity.
    For example:
    https://<velocity_url>/mcp
    The mcp.json file is opened and the server is started.
  6. Update the configuration details in the mcp.json file to pass the User Access key in the header as follows:
    {
    	"servers": {
    		"velocity-mcp-server": {
    			"url": "<velocity_mcp_server_url>",
    			"type": "http",
    			"headers": {
    				"Authorization": "UserAccessKey <velocity_user_access_key>"
    			}
    		}
    	},
    	"inputs": []
    }
    Property Description
    <velocity_mcp_server_url> Specifies the full Velocity MCP server URL. For example:

    <velocity_hostname>/mcp

    <velocity_user_access_key>

    Provides the credentials necessary to access the Velocity MCP server.

    Create an User Access Key in Velocity and use it.

  7. Click Restart.
    You must be able to see the connection successful logs and the discovered tools.
  8. Verify the connection.
    The Velocity MCP Server must display Running as the status.

Results

You have successfully connected to the Velocity MCP server by using GitHub Copilot in VS Code.

What to do next

You can run prompts related to Velocity to confirm a successful connection.