Skip to content
VaultLens Studio

VS Code (Copilot)

You add VaultLens to VS Code as a remote MCP server. GitHub Copilot Chat can then use VaultLens tools. There are two ways: a one-click link in VaultLens, or a few lines in a mcp.json file.

Option 1: one click

  1. In VaultLens, go to Settings → AI connections.
  2. Open the VS Code (Copilot) guide and click Add to VS Code.
  3. VS Code opens and asks you to install the vaultlens server. Confirm.
  4. Sign in to VaultLens when VS Code asks (see Sign in).

Option 2: edit mcp.json

  1. In your project, create the file .vscode/mcp.json, or open it if it exists.

  2. Add VaultLens:

    {
      "servers": {
        "vaultlens": {
          "type": "http",
          "url": "https://mcp.vaultlens.studio/mcp"
        }
      }
    }

    If the file already lists other servers, add the vaultlens entry inside the existing servers.

  3. Save the file.

This is the same text shown in the VS Code (Copilot) guide under Settings → AI connections, with a copy button. A .vscode/mcp.json file applies to that project only.

Sign in

  1. Start the vaultlens server. VS Code shows a Start action above the entry in mcp.json, and also lists servers under the MCP: List Servers command.
  2. VS Code asks to sign in. Allow it. Your browser opens VaultLens.
  3. On the approval screen, tick what VS Code may do and which apps it can see. See Security and permissions.
  4. Click Approve, then go back to VS Code.

These prompts belong to VS Code, so their labels can differ by version.

After you connect

  • Open Copilot Chat in Agent mode and ask, for example, “Using VaultLens, is my app’s analytics copy up to date?”. VS Code may ask before it runs each tool.
  • Copilot can only use the tools your permissions allow. See Tools.
  • To disconnect, go to Settings → AI connections in VaultLens and click Disconnect next to the connection.

If something goes wrong, see Troubleshooting.