Configure VS Code

This script automates the setup of the local environment and ensures that your VS-Code is instantly governed by organizational policies.

  1. Run the Setup Script:

    1. Navigate to AI/ML > Registry > [Your Project] > MCP Servers.

    2. In the Platform, navigate to AI/ML > Registry > [Your Project] > MCP Servers.

    3. Select a specific MCP server from the available servers in your project.

    4. Click Configure MCP (or Install MCP) and run the generated command in your terminal:

      export HOST_DOMAIN=<yourhost.jfrog.io> AUTH=user:token PROJECT_KEY=<project> CLIENT_ID=vscode; bash <(curl -fL https://releases.jfrog.io/artifactory/jfrog-cli-plugins/mcp-gateway/latest/scripts/mcp-gateway.sh)

      For parameter details, see Install the MCP Gateway.

      This command installs or updates the JFrog CLI, the mcp-gateway plugin, authenticates your machine, sets the active project context, and configures VS Code to use the Gateway.

  2. Configure IDE with Magic Link:

    1. The installation script prints a Magic Link at the end; click the Magic Link in your terminal.
    2. Click Install when prompted to complete MCP server setup.
  3. Manually Configure VS Code:

    If auto-configuration did not run, you can manually register the MCP Gateway in VS Code MCP. This enables your IDE to communicate with the JFrog services via the MCP.

    1. Open the configuration file. You can choose to apply this setting globally, or per project:

      • For your user profile: Open the command palette and search for MCP: Open User Configuration.
      • For your workspace (to share with the team): Create or open the .vscode/mcp.json file in your project root.
    2. Add the Gateway Server: Ensure the servers object contains the JFrogMCPGateway definition. VS Code requires type for stdio.

      Add the following:

      {
        "servers": {
          "JFrogMCPGateway": {
            "type": "stdio",
            "command": "jf",
            "args": ["mcp-gateway", "run"],
          }
        }
      }

Manage MCP Servers via Agents

The JFrog MCP Gateway various capabilities through MCP tools to your coding agent. You can interact with the JFrog MCP Registry directly through your Agent's chat interface.

For details, see Configure MCPs via Agents.