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
- In VaultLens, go to Settings → AI connections.
- Open the VS Code (Copilot) guide and click Add to VS Code.
- VS Code opens and asks you to install the vaultlens server. Confirm.
- Sign in to VaultLens when VS Code asks (see Sign in).
Option 2: edit mcp.json
-
In your project, create the file
.vscode/mcp.json, or open it if it exists. -
Add VaultLens:
{ "servers": { "vaultlens": { "type": "http", "url": "https://mcp.vaultlens.studio/mcp" } } }If the file already lists other servers, add the
vaultlensentry inside the existingservers. -
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
- 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. - VS Code asks to sign in. Allow it. Your browser opens VaultLens.
- On the approval screen, tick what VS Code may do and which apps it can see. See Security and permissions.
- 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.