Developer Mode Using Visual Studio Code
This guide will walk you through setting up Lens Studio's MCP server with Visual Studio Code (VSCode), allowing you to use AI-powered tools to control Lens Studio directly from your code editor.
Agents and skills can accelerate your AI's ability to build a Lens. Take a look at CLAD for an example. These agents and skills are optimized for SPECS, but some of the core skills and agents will apply to any Lens Studio workflow (for example, scene building, scripting, and assets generation)
This guide is provided to support developers using Visual Studio Code, as we've seen its growing popularity across our developer community. For official VSCode MCP documentation, please refer to VSCode's MCP Documentation.
Prerequisites
- Visual Studio Code installed on your system
- Lens Studio installed on your system
- Chat Tool Package installed from Asset Library (see Adding Additional Tools)
Setup Steps
You can give VS Code access to the Lens Studio MCP server in two ways:
- Open the project directly: Open your Lens Studio project folder in VS Code. Lens Studio exposes the MCP server from that folder, so VS Code can connect automatically with no manual setup. See the Developer Mode overview for details.
- Copy the MCP config manually: Copy the configuration from Lens Studio and add it to VS Code yourself, as described below.
The MCP server is per Lens Studio window. You can open another Lens Studio window, save your project in a different location, and have your AI work on multiple projects simultaneously.
1. Create VSCode Configuration Folder
First, create a .vscode folder at the root of your project if it doesn't already exist.
mkdir .vscode
2. Create MCP Configuration File
Inside the .vscode folder, create a file named mcp.json:
touch .vscode/mcp.json