Setting up MCP server integration with VS Code

This topic describes how to set up MCP server integration with VS Code.

Before you begin

(Prerequisites)
Before setting up the MCP server integration with VS Code, ensure that the following requirements are met:
  • VS Code (latest version)
  • GitHub Copilot extension
  • A running DevOps Plan MCP server. (ensure that DevOps Plan's REST server is running)
    • Obtain the URL for the MCP Server. For example: https://hostname/mcp
    Note: You should have the MCP server URL and credentials to integrate with DevOps Plan, which supports Personal Access Tokens (PAT). For more information, see How to create and use PAT.

About this task

Start by launching VS Code, then connect it to the MCP server, and finally verify that the MCP server is communicating successfully with the DevOps Plan application.

Launching VS Code

You can launch Visual Studio Code (VS Code) using several methods, including your operating system's application menu, desktop icon, or the command line interface (CLI).

Connecting VS Code to MCP server

You can connect VS Code to the MCP server using the Command Palette or update the MCP configuration file (mcp.json) with the server details and PAT, see Connecting VS Code to DevOps Plan MCP server.

For more information on how to add and manage the MCP server from VS Code, see Add and manage MCP servers in VS Code.

MCP server communication

  1. Open the workspace containing the mcp.json directory.
  2. Ensure successful communication between the MCP server and the DevOps Plan application, as VS Code identifies the server's tools and makes them accessible in chat.