Skip to main content

Connect VS Code

The steps below demonstrate how to connect to the DoiT MCP server using Visual Studio Code. VS Code loads MCP servers from an mcp.json file, then makes the tools available in GitHub Copilot Chat when MCP is enabled for your setup.

Required permissions

Prerequisites

Connection type

VS Code connects to DoiT MCP using a local stdio connection. VS Code launches the published package (@doitintl/doit-mcp-server) on your machine using standard input/output (stdio) using npx. Ensure Node.js is on your PATH.

Configure the DoiT MCP server

  1. In VS Code, open the Command Palette (⇧⌘P on macOS, Ctrl+Shift+P on Windows or Linux).

  2. Run MCP: Open Workspace Folder MCP Configuration to create or edit .vscode/mcp.json in the current workspace, or run MCP: Open User Configuration if you want the server available in all workspaces.

  3. In the mcp.json file, add an entry for DoiT MCP server using standard input/output (stdio) and the published package @doitintl/doit-mcp-server.

    {
    "servers": {
    "doitMcp": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@doitintl/doit-mcp-server@latest"]
    }
    }
    }
  4. Save mcp.json. If VS Code prompts you to trust or start the server, confirm so the process can launch.

  5. When VS Code starts the server, your browser opens the DoiT sign-in page. Sign in with your DoiT account.

  6. On the DoiT consent screen, select Allow access.

    DoiT consent screen

  7. Confirm the DoiT MCP server is listed and started by running MCP: List Servers from the Command Palette. In Copilot Chat, select Agent mode and use the tools picker to confirm that DoiT MCP tools are available.

You can now use GitHub Copilot Chat in VS Code to ask questions or make requests related to DoiT Cloud Intelligence data.