Skip to content

Configure VSCode

Configure Endor with Visual Studio Code to enable AI agents to manage development environments directly from your editor. VSCode provides built-in MCP server management tools.

Setup

Configure Endor in VSCode

  1. 1

    Install Endor CLI on your system:

    Terminal window
    npm install -g @endorhq/cli

    For detailed instructions, see the Setup guide

  2. 2
  3. 3

    Create .vscode/mcp.json in your workspace folder:

    {
    "servers": {
    "endor": {
    "type": "stdio",
    "command": "endor",
    "args": [
    "mcp"
    ]
    }
    }
    }

    Add the --allow-net flag if you want to grant access to public networks. More information on Networking.

    {
    "servers": {
    "endor": {
    "type": "stdio",
    "command": "endor",
    "args": [
    "mcp",
    "--allow-net"
    ]
    }
    }
    }
  4. 4
    Use the Command Palette → “MCP: List Servers” to view configured servers
  5. 5
    Try Endor using Copilot in “Agent Mode”

Management

VSCode will show commands to manage the server directly from the editor when you open the .vscode/mcp.json file. This provides convenient access to:

  • Server status monitoring
  • Start/stop controls
  • Configuration validation

Usage

With Endor configured, your AI agents in VSCode can:

  • Start database services for your current project
  • Create isolated environments for testing
  • Manage services without leaving the editor

Use the integrated AI tools to request services like “start a PostgreSQL database for this workspace” and the agent will handle the Endor integration automatically.