VS Code + GitHub Copilot

This guide describes how to configure Mobb Vibe Shield (MVS) as an MCP (Model Context Protocol) server in Visual Studio Code.

Prerequisites

Before setting up MVS, ensure the following:

VS Code version

GitHub Copilot permissions

If you are using GitHub Copilot through an organization account, confirm that your Copilot policies permit:

  • Copilot Chat (must be enabled)

  • Editor Preview Features (must be enabled)

These settings are configured in your GitHub org admin panel under: Settings → Copilot → Policies

Node.js

Ensure Node.js v18.20 or later is installed. The MCP server uses npx and requires a modern Node.js runtime.

node --version

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

Step 1: Enable MCP in VS Code

  1. Open VS Code settings (Ctrl+Comma or Cmd+, on Mac).

  2. Search for chat.mcp.enabled and check the box.

Alternatively, add this to your settings.json:

"chat.mcp.enabled": true

Step 2: Configure Mobb MCP Server

You can configure the MCP server either per workspace or globally.

Option A: Workspace-Level (.vscode/mcp.json)

  1. In your project root, create .vscode/mcp.json:

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

This file can be committed to your repo and shared across your team.


Option B: User-Level Configuration (settings.json)

  1. Open Command Palette → Preferences: Open Settings (JSON)

  2. Add or update the mcp section as follows:

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

This allows you to reuse the same setup across all projects without repeating .vscode setup.

Step 3: Start the Server

In VS Code:

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).

  2. Run MCP: List Servers

  3. In the list of configured MCP servers, locate mobb-mcp, then click Start Server.

If successful, you’ll see mobb-mcp listed under available tools in Agent Chat (such as scan_and_fix_vulnerabilities and fetch_available_fixes).

Step 4: Use Mobb in Agent Mode

  1. Open Copilot Chat (Ctrl+Alt+I)

  2. Switch to Agent Mode

  3. In the Agent Chat prompt box, type:

    Check for available fixes using the Mobb MCP
  4. Accept the execution

  5. On first-time setup, MVS will open a browser window to connect to the Mobb platform. You will be prompted to log in and authorize the IDE integration.

Troubleshooting

  • Run MCP: Show Output to see server logs (Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P))

  • Validate node is available in the terminal by running node --version

  • Check mcp.json for syntax or command errors

  • Ensure GitHub Copilot Chat is working independently of Mobb first

  • After you make changes to the MCP settings, you may need to restart VS Code

  • Visit the MCP servers in VS Code for additional info

Last updated

Was this helpful?