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. Before you connect, confirm you meet the Required permissions.
Prerequisites
-
A recent version of Visual Studio Code with GitHub Copilot and MCP support for chat. If you use Copilot through an organization or enterprise, your administrator may also need to enable MCP servers in Copilot. For background, see Add and manage MCP servers in VS Code, the MCP configuration reference, and GitHub's MCP instructions for Copilot Chat.
-
For stdio, Node.js is on your
PATHsonpxcan run@doitintl/doit-mcp-server, and a personal API token to set asDOIT_API_KEY. -
For Streamable HTTP, a supported web browser to complete the DoiT sign-in flow when you connect.
Supported connection methods
VS Code supports stdio and Streamable HTTP (type: "http"). See Connection methods for authentication details. The examples below show both.
Configure with stdio
-
In VS Code, open the Command Palette (⇧⌘P on macOS, Ctrl+Shift+P on Windows or Linux).
-
Run MCP: Open Workspace Folder MCP Configuration to create or edit
.vscode/mcp.jsonin the current workspace, or run MCP: Open User Configuration if you want the server available in all workspaces. -
In the
mcp.jsonfile, add an entry for DoiT MCP server using standard input/output (stdio) and the published package@doitintl/doit-mcp-server. Replaceyour_doit_api_keywith your personal API token.{"servers": {"doitMcp": {"type": "stdio","command": "npx","args": ["-y", "@doitintl/doit-mcp-server@latest"],"env": {"DOIT_API_KEY": "your_doit_api_key"}}}} -
Save
mcp.json. If VS Code prompts you to trust or start the server, confirm so the process can launch. -
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.
Configure with Streamable HTTP
-
Open the same
mcp.jsonfile described under Configure with stdio. -
Use an HTTP server entry:
{"servers": {"doitMcp": {"type": "http","url": "https://mcp.doit.com/mcp"}}} -
Save
mcp.json, complete the DoiT sign-in and consent flow when prompted, then confirm the server with MCP: List Servers.