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

You can connect to the HCL DevOps Velocity (Velocity) Model Context Protocol (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 completed the following tasks:

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. Open the Command Palette by pressing the keys Ctrl+Shift+P or Cmd+Shift+P.
  4. Search and select MCP: Add Server.
  5. Choose HTTP as the server type, when prompted for the transport type.
    The Velocity MCP Server uses HTTP-based transport.
  6. Enter the MCP Server URL in the URL field.
    VS Code automatically generates the required mcp.json configuration.
  7. Enter a name for the server. For example: Velocity MCP Server.
  8. Select Workspace, when VS Code prompts you to choose where to save this configuration.
      • Global – used for all VS Code workspaces

      • Workspace – used only in the current folder/project

        Note: When Workspace is selected, a .vscode folder is automatically created, and an mcp.json file is generated within it.
        A sample mcp.json file is as shown below:
        {
        	"servers": {
        		"velocity-mcp-server": {
        			"url": "<velocity_mcp_server_url>",
        			"type": "http"
        		}
        	},
        	"inputs": []
        }
      • Property Description
        <velocity_mcp_server_url> Specifies the full Velocity MCP server URL. For example:

        https://<velocity_hostname>/mcp

    The mcp.json file is opened.
  9. Click Start for the added MCP server.
    A prompt appears to authenticate via OAuth.
  10. Click Allow.
    The following prompt is displayed:
    Do you want code to open the external website?
  11. Click Open.
    The OIDC login page is displayed.
  12. Sign in using the Velocity OIDC user credentials.
    A consent screen is displayed requesting access to MCP tools, Velocity APIs (used internally for tool execution), and basic profile and role information.
  13. Click Yes.
    You are automatically redirected to VS Code or you can also close the browser and switch to VS Code.
  14. Verify the connection.
    The Velocity MCP Server must display Running as the status.
    Note: The MCP server times out after 30 minutes of inactivity. If no tool calls occur during this period, your session expires and you are required to re-authenticate.

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.