VS Code Setup
Connect Nexlayer to Visual Studio Code with native MCP support (v1.102+).
Requirements
VS Code version 1.102 or later is required for native MCP support. Check your version with code --version.
Recommended: npx Install
The fastest way to get started. Run this command in your terminal:
npx @nexlayer/mcp-installThis will automatically detect VS Code and configure the Nexlayer MCP server.
Manual Installation
If you prefer to configure manually, you have two options:
Option 1: Using Command Palette
- 1.Open Command Palette (
Cmd+Shift+PorCtrl+Shift+P) - 2.Search for “MCP: Add Server”
- 3.Enter the server URL:
https://mcp.nexlayer.ai/api/mcp
Option 2: Edit Config File
Config file location:
macOS: ~/Library/Application Support/Code/User/mcp.json
Windows: %APPDATA%/Code/User/mcp.json
Linux: ~/.config/Code/User/mcp.json
{
"servers": {
"nexlayer-mcp": {
"transport": "sse",
"url": "https://mcp.nexlayer.ai/api/mcp"
}
}
}Note:
VS Code uses "servers" instead of "mcpServers" in its configuration.
Using with GitHub Copilot
If you're using GitHub Copilot in VS Code, MCP servers are available in Agent mode:
- 1
Open Copilot Chat
Click the Copilot icon in the title bar
- 2
Switch to Agent mode
Select “Agent” from the mode dropdown
- 3
Use Nexlayer tools
Ask Copilot to deploy your application to Nexlayer
Troubleshooting
MCP not available?
Make sure you're running VS Code 1.102 or later. Update VS Code if needed.
Server not connecting?
Reload VS Code window after adding the configuration. Use Cmd+Shift+P → “Developer: Reload Window”.