VS Code

This article explains how to configure the Demandbase VS Code server in Visual Studio Code so GitHub Copilot can access Demandbase tools from Agent mode.

Prerequisites

Make sure you have:

  • Visual Studio Code with GitHub Copilot installed.
  • Access to GitHub Copilot Chat and Agent mode.
  • A Demandbase account enabled with VS Code.

Step 1: Create the VS Code Configuration File

  1. Open your project root directory in Visual Studio Code.
  2. In the project root, create a .vscode folder if one doesn't already exist.
  3. Inside the .vscode folder, create a file named mcp.json.
  4. Add the following configuration:
    • {
        "servers": {
          "demandbase-remote": {
            "type": "http",
            "url": "https://gateway.demandbase.com/mcp/servers/db-mcp",
          }
        }
      }

Step 2: Verify the VS Code Server Connection

  1. Verify the server connection:
    1. Open Visual Studio Code.
    2. Open the Output panel.
    3. Select the GitHub Copilot output channel.
    4. Confirm that the Demandbase server starts without errors.
  2. Verify the available tools:
    1. Open Copilot Chat.
    2. Using the mode selector, switch to Agent mode.
    3. In the chat sidebar, click the 🛠️ Tools icon.
    4. Verify that the Demandbase tools appear in the list.

For more information, see Visual Studio's article Add and manage MCP servers in VS Code.



Did this page help you?