Connecting VS Code to the DevOps Loop MCP server

You can connect Visual Studio Code (VS Code) with GitHub Copilot to connect to the DevOps Loop MCP Server. After configuration, Copilot can run MCP-based queries to retrieve and update loop resources directly from VS Code. The MCP server connection is saved and remains available across sessions.

Before you begin

You must have completed the following tasks:
  • Ensured that you have installed VS Code and the GitHub Copilot extension.
  • Obtained the MCP Server URL. For example: https://hostname/loop/mcp

About this task

You can connect to the DevOps Loop MCP server in VS Code by using one of the following methods:
  • Using the Command Palette (Recommended), go to step 1.
  • Manually editing the MCP configuration file, go to step 2.

Procedure

  1. Perform the following steps by using the command palette:
    1. Open VS Code.

    2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).

    3. Search and select Copilot: Add Server

    4. Choose HTTP as the server type, when prompted for the transport type.

      • The DevOps Loop MCP Server uses HTTP-based transport.

    5. Enter the MCP Server URL, in the URL field.

      VS Code automatically generates the required mcp.json configuration.

    6. Enter a name for the server. For example: Loop MCP Server.

    7. 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: Selecting Workspace automatically creates a .vscode folder and generates a mcp.json file inside it.
    8. Click Extensions icon and navigate to MCP-servers installed.
    9. Click the Settings icon next to Loop MCP Server.
    10. Select Start server option.

      VS Code displays a notification stating that the MCP server requires authentication.

    11. Click Allow to proceed.

      A second notification is displayed asking whether you want to open an external website.

    12. Click Open.

      Your default browser opens and displays the DevOps Loop login page.

    13. Sign in with your DevOps Loop credentials.

      A consent screen is displayed requesting access to MCP tools, loop APIs, and basic profile information.

    14. Click Yes to approve and complete the connection.

      After successful authentication, VS Code displays the list of available MCP tools. See MCP tools available in DevOps Loop.

    Note: The MCP server times out after 30 minutes of inactivity. If no tool calls occur during this period, your session will expire and you will be prompted to re-authenticate.
  2. Perform the following steps to manually modify the MCP configuration file:
    1. Open VS Code.

    2. Open any empty directory or project in VS Code.
    3. Create a new folder named .vscode inside that directory, if not present.
    4. Create a file named mcp.json inside the .vscode folder.
    5. Paste the MCP configuration JSON. For example:
      {
        "servers": {
          "loop-mcp": {
            "uri": "https://hostname/loop/mcp",
            "type": "http"
          }
        },
        "inputs": []
      }
      

      Replace the hostname with your actual DevOps Loop server hostname.

    6. Save the file.
    7. Click Extensions icon and navigate to MCP-servers installed.
    8. Click the Settings icon next to Loop MCP Server.
    9. Select Start server option.

      VS Code displays a notification stating that the MCP server requires authentication.

    10. Click Allow.

      A second notification appears asking whether you want to open an external website.

    11. Click Open.

      Your default browser opens and displays the DevOps Loop login page.

    12. Sign in with your DevOps Loop credentials.

      A consent screen is displayed requesting access to MCP tools, loop APIs, and basic profile information.

    13. Click Yes to approve and complete the connection.

      After successful authentication, VS Code displays the list of available MCP tools. See MCP tools available in DevOps Loop.

    Note: The MCP server times out after 30 minutes of inactivity. If no tool calls occur during this period, your session will expire and you will be prompted to re-authenticate.

Results

You have successfully connected VS Code to the DevOps Loop MCP Server. The MCP server now appears under Copilot → Servers, and you can start using Copilot to run MCP-based queries.