Install JFrog Agent Plugin for VS Code

Install the JFrog Agent Plugin for VS Code and connect it to your JFrog Platform.

The JFrog Agent Plugin connects VS Code Copilot to the JFrog Platform for artifact management, security scanning, supply chain workflows, and governed access to MCP servers. You can review the source in the JFrog VS Code plugin repository.

Prerequisites

  • VS Code with the GitHub Copilot Chat extension installed and signed in.
  • If a GitHub organization manages your Copilot access, an administrator must set Settings > Copilot > Policies > Editor preview features to Enabled.
  • Agent plugins and hooks enabled in VS Code settings. Set both "chat.plugins.enabled": true and "chat.useHooks": true. Enabling hooks alone leaves the plugin unloaded.
  • A JFrog Platform you can sign in to.
  • Node.js 20 or later available as node on your PATH, JFrog CLI 2.100.0 or later, jq, and curl. The readiness check, /jfrog-init, verifies the JFrog CLI and offers to install it if it's missing.

Quick Install

To install the JFrog Agent Plugin for VS Code:

  1. Open the following link in your browser, then allow it to open VS Code:

    vscode://chat-plugin/install?source=jfrog/vscode-plugin
  2. When VS Code prompts you, click Install, then click Trust.

  3. In Copilot Chat, run the readiness check:

    /jfrog-init

    The check verifies Node.js and the JFrog CLI, signs the JFrog CLI in to your JFrog Platform, resolves the MCP server host, and asks you to choose a JFrog Project if one is needed. It fixes what it can after you approve and prints the exact command for anything it can't fix.

  4. Reload the VS Code window, open a new Copilot chat, and enable the JFrog MCP tools in the tool picker. A new chat alone doesn't pick up MCP changes.

  5. Start a JFrog task that uses MCP tools and complete the browser OAuth sign-in when prompted.

Verify the Installation

  1. Confirm that the plugin appears in the Copilot installed plugins list.
  2. Run /jfrog-init and confirm that it finishes without blocking errors.
  3. Run jf rt ping and confirm that it succeeds against your JFrog Platform.

Alternative Installation Methods

plusInstall from the JFrog Platform
  1. In the JFrog Platform, go to AI/ML > Registry, select your project, and open MCP Servers.
  2. Select an MCP server and click Install MCP.
  3. Select VS Code as your IDE and click Install via magic link.
plusInstall from the Command Palette
  1. Press Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows and Linux to open the Command Palette.

  2. Run Chat: Install Plugin from Source.

  3. Enter the plugin source:

    https://github.com/jfrog/vscode-plugin/
  4. Click Trust.

plusInstall from a Marketplace Entry in settings.json
  1. Open the Command Palette and run Preferences: Open User Settings (JSON).

  2. Add the marketplace source:

    {
      "chat.plugins.marketplaces": ["https://github.com/jfrog/vscode-plugin/"]
    }
  3. Press Cmd+Shift+X to open the Extensions view, then search for @agentPlugins jfrog/vscode-plugin.

  4. Select the plugin, click Install, and click Trust if prompted.

plusConfigure the JFrog CLI Manually

If you prefer to configure the JFrog CLI yourself before running /jfrog-init, run jf login, or run jf config add and enter your JFrog Platform URL and access token when prompted.

Troubleshooting

For installation and configuration issues, see Troubleshoot the JFrog Agent Plugin.

Related Topics


Did this page help you?