IntelliJ IDEA + GitHub Copilot

Prerequisites

Before configuring MVS in IntelliJ, ensure the following tools are installed and functional:

IntelliJ IDEA

GitHub Copilot Plugin

Install GitHub Copilot from the plugin marketplace:

  1. Navigate to Settings → Plugins → Marketplace.

  2. Search for GitHub Copilot and click Install.

  3. Accept the Third-Party Plugins Notice when prompted.

Restart the IDE if prompted.

Node.js

Ensure Node.js v18.20 or later is available:

node --version

If not installed or outdated, install via nodejs.org.


Step 1: Load Mobb Tools in Copilot Chat

  1. Open Copilot Chat from the right-hand sidebar.

  2. Expand the chat panel and switch to the Agent (Preview) tab.

  3. Click the tools icon (bottom-left of the chat panel).\

  4. Click Add More Tools...

  5. A mcp.json file should be opened. You will need to put the following configuration in this file:\

    {
        "servers": {
            "mobb-mcp": {
            "command": "npx",
            "args": ["mobbdev@latest", "mcp"],
            "env": {
                }
            }
        }
    }

    Save the file. \

  6. Click the tools icon again — you should now see tools listed under MCP Server: mobb-mcp such as:

    • scan_and_fix_vulnerabilities

    • fetch_available_fixes

Step 1: Add mcp.json in Your Workspace

  1. In your project, create a file: .vscode/mcp.json (yes, the IntelliJ Copilot plugin respects the same path format).

  2. Add the following configuration:

{
  "servers": {
    "mobb-mcp": {
      "command": "npx",
      "args": ["mobbdev@latest", "mcp"],
      "env": {
      }
    }
  }
}

Step 2: Start the MCP Server

Once the mcp.json file is created and saved, GitHub Copilot will attempt to launch the configured servers automatically. You should see logs appear in the GitHub Copilot MCP Log window.

Look for:

  • Starting server mobb-mcp

  • Connection state: Running

  • Discovered 2 tools (or similar)


Step 4: Run Mobb MCP

In the chat prompt, type:

Check for available fixes using the Mobb MCP

MVS will analyze your code using the specified MCP configuration and apply security fixes interactively.


Troubleshooting

  • Check the GitHub Copilot MCP Log panel for errors.

  • Ensure node and npx are available in your system PATH.

  • If no tools are detected, confirm your mcp.json syntax and paths.

  • Restart IntelliJ if the MCP server fails to launch after edits.

  • If you encounter plugin issues, verify you're using the official GitHub Copilot plugin from the Marketplace.

Last updated

Was this helpful?