Skip to content

Setting up MCP Server

MCP Server settings may vary between tools, please check documentation of the tool you want to use.

VSCode and MCP Server

Please have a look how to use MCP Server with VSCode in this documentation. More MCP Server for VSCode can be found in the Marketplace

Adding MCP Server

Using the Add MCP Server command

Step Details Additional Information
Click on the View Menue and select Command Palette VSCode View Command Palette
In the Command View search for Add MCP Server and click on it VSCode Command Palette add MCP Server
From the listbox select HTTP Step 1
Enter the MCP Server URL (example for Control MCP server) Step 2
Enter the Name for this MCP Server section Step 3
Decide where to store this configuration, for the demo use local Workspace Step 4
Added MCP Servers will be shown in the Extension View under MCP Server Updated MCP server list
You can open the mcp.json to add more manualy (for example the Authorization key for Control MCP) Updated mcp.json

Manualy editing the mcp.json file

To be able to manualy edit the mcp.json file you have to first let it be created by VSCode, easiest way is to use Add MCP Server command to add an entry then open it from the MCP server settings for editing.

Preparing the mcp.json file

NOTE: Templates for mcp.jsonfiles with preprovided sections: for local mcp server and for remove mcp server

Add the MCP Servers into the mcp.json file in the "servers" section.

{
  "servers": {
  },
  "inputs": []
}

Loop MCP Server

The Loop MCP server uses single sign on for authentication so the setup is very simple. Please have a look at the documentation for Loop MCP server usage

Configure the MCP Server Section

"Loop-MCP-Server": {
  "url": "https://<hostname>/loop/mcp",
  "type": "http"
}

Control MCP Server

Get the necessary Access Token

Step Details Additional Information
For external access to the repositories you need to provide an Access Token
to create a new token, click on your User Profile and select Settings User Profile
In the Settings view click on Access Tokens then enter a Token name to identify its purpose Name for new PAT
Click on Select Permissions to set the access rights, select All to cover all repositories Open Select Permissions
You can set any permission setting as you need it. Please be aware to limit the access tough to prevent security issues
Example: Set Repository to Read and Write and Set User to Read Set Permissions
These settigs are the minimal needed to provide access to work with your repository through external tools Create AccessToken
Press Generate Token Generate Token
Do not to forget to Copy and Paste the token! AccessToken

Configure the MCP Server Section

Use your token and replace the <control token> part with your token in the Control MCP Server section.

"Control-MCP-Server": {
    "url": "https://<hostname>/control-mcp",
    "type": "http",
    "headers": {
    "Authorization": "token <control token>"
    }
}

Test MCP Server

Please have a look at the Testhub Documentation how to configure the MCP server for more details.

Get the necessary Offline User Token

Step Details Additional Information
click on the Profile Link on the top right of your screen to get a menue Test top right menuebar
Click on Create Token in the menue for a new PAT Create Token
A new PAT will be created automatically and shown. COPY and PASTE into a secure storage for furter usage Test New PAT is shown
click on Close to close the dialog Close button

Configure the MCP Server Section

Use your token and replace the <test token> part with your token in the Test MCP Server section.

"Test-MCP-Server": {
    "url": "https://<hostname>/test/mcp/stream",
    "type": "http",
    "headers": {
    "Authorization": "Offline <test token>"
    }
}

Deploy MCP Server

Deploy MCP Server requires a slightly different approach. Please have a look at the documentation for Deploy MCP server usage for more details.

Get the necessary Token

Step Details Additional Information
click on Tokens Tokens in the Security settings to view and create new PAT System Settings View
A list of existing Tokens (PAT) is shown List of PAT
Click on Create Token Create Token button and fill in the details in the new dialog PAT Creation Dialog
Provide a description, user, expiration and optional restrictions from where this PAT can be ued
Click on Save ![Save][ButtonSave] and the new PAT will be shown New PAT is shown
Do not to forget to COPY and PASTE the PAT into a secure storage for furter usage, then click Close close
An updated PAT list is shown Updated PAT list

Encrypt Token

You need to use base64 to encode the token with the Authentication Type string.

  • Encrypt on MacOS or Linux
echo -n "PasswordIsAuthToken:<Your Deploy Token>" | base64
  • Encrypt on Windows
$encoded  = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("PasswordIsAuthToken: <Your Deploy Token>"))
write-output $encoded

Configure the MCP Server Section

Use the output and replace the <base64 encoded deploy token> part with it in the Deploy MCP Server section.

"Deploy-MCP-Server": {
    "url": "https://<hostname>/deploy/mcp",
    "type": "http",
    "headers": {
    "Authorization": "Basic <base64 encoded deploy token>"
    }
}

Measure/Release (Velocity) MCP Server

Measure and Release use the services of DevOps Velocity. Please have a look at the DevOps Velocity documentation MCP section for more details.

Get the necessary User Access Key

Step Details Additional Information
click on the Settings Settings Link on the top right of your screen to get a menue Measure top right menuebar
click on My Profile My Profile to view the Profile settings My Settings Menue
A list of User Access Keys (or PAT) is shown Measure List of UAK or PAT
Click on the Create User Access Key Create UAK Button and a new Dialog appears UAK Dialog
Provide a name for the UAK/PAT and click Create Button to get the token Measure New UAK
COPY and PASTE the key into a secure storage for further usage, then close the dialog
The newly created UAK/PAT is shown new UAK is shown

Configure the MCP Server Section

Use your User Access Key and replace the <velocity token> part with your token in the Velocity MCP Server section.

"Velocity-MCP-Server": {
  "url": "https://<hostname>/velocity/mcp",
  "type": "http",
  "headers": {
    "Authorization": "UserAccessKey <velocity token>"
  }

Plan MCP Server

In the actual Version of Loop the remote MCP Server for Plan is not available, it is planned to be delivered in the next release. We need to use the local MCP Server which requires the Personal Access token and a Teamspace ID (which is named Database ID in Plan)

Get the necessary Personal Access Token

Step Details Additional Information
Click on your Profile Icon in the Sidebar and select Personal Access Token Sidebar Profile
A list of existing Personal Access Tokens (PAT) is shown List of PATS
Click on Create New API Token Create PAT Button
a dialog is shown, please provide a name and a validity time PAT creation dialog
PAT is created, press the Copy button Copy Button to copy into Clipboard PAT is created
PAT is copied, paste it into a secure storage for furter use PAT Copied
Close the dialog and updated list is shown Updated PAT list

Get the necessagery Teamspace (DB) ID

Step Details Additional Information
Please use the "Home" button on the left sidebar to switch to the Home page for Plan Plan Home Page Button
On the right side click on My Applications My Applications Button
Click on Tenant Management Tenant Management Button to open a the Tenant View Tenant Management View
In this view select your Tenant (in this example Demo)
select the Details view tab and switch it on Tenant Detail View
more information is shown about the tenant Tenant Details
The Database ID is shown, and copy it for further usage Plan Database ID

Configure the MCP Server Section

Use your Personal Access token and replace the <plan token> part with your token in the Plan MCP Server section, replace the <teamspace id>with the value of the DB ID.

"plan-mcp-server": {
  "command": "npx",
  "args": [
    "-y",
    "@securedevops/mcp-devops-plan"
  ],
  "env": {
    "PLAN_ACCESS_TOKEN": "<plan token>",
    "PLAN_SERVER_URL": "https://<hostname>/plan",
    "PLAN_TEAMSPACE_ID": "<teamspace id>"
  },
  "type": "stdio"
}

VSCode mcp.json template

Here the mcp.json template file using available remote MCP server and the local one for DevOps Plan (will be changed as soon as the remote one is available)

{
  "servers": {
    "Loop-MCP-Server": {
      "url": "https://<hostname>/loop/mcp",
      "type": "http"
    },
    "Control-MCP-Server": {
      "url": "https://<hostname>/control-mcp",
      "type": "http",
      "headers": {
        "Authorization": "token <control token>"
      }
    },
    "Test-MCP-Server": {
      "url": "https://<hostname>/test/mcp/stream",
      "type": "http",
      "headers": {
        "Authorization": "Offline <test token>"
      }
    },
    "Deploy-MCP-Server": {
      "url": "https://<hostname>/deploy/mcp",
      "type": "http",
      "headers": {
        "Authorization": "Basic <base64 encoded deploy token>"
      }
    },
    "Velocity-MCP-Server": {
      "url": "https://<hostname>/velocity/mcp",
      "type": "http",
      "headers": {
        "Authorization": "UserAccessKey <velocity token>"
      }
    },
    "plan-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@securedevops/mcp-devops-plan"
      ],
      "env": {
        "PLAN_ACCESS_TOKEN": "<plan token>",
        "PLAN_SERVER_URL": "https://<hostname>/plan",
        "PLAN_TEAMSPACE_ID": "<teamspace id>"
      },
      "type": "stdio"
    },
    "wait_server": {
      "command": "npx",
      "args": [
        "mcp-wait-server@latest"
      ],
      "env": {
        "MCP_WAIT_MAX_DURATION_SECONDS": "210",
        "MCP_WAIT_TOOL_DESCRIPTION": "Waits for a specified number of seconds. Use this to create a delay after starting a long-running operation (like a script or download via another tool), allowing it time to complete before you proceed or check its status."
      }
    }
  },
  "inputs": []
}