Visual Studio 2022 + GitHub Copilot

This guide explains how to configure Mobb Vibe Shield (MVS) as a Model Context Protocol (MCP) server in Visual Studio 2022.

Prerequisites

Before setting up Mobb Vibe Shield in Visual Studio, ensure the following:

Visual Studio version

GitHub Copilot permissions

If you are using GitHub Copilot through a GitHub organization, verify that the following settings are enabled:

  • Copilot Chat

  • Editor Preview Features

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

Node.js

Ensure Node.js v18 or later is installed as Mobb's MCP server uses npx to run.

node --version

Download from nodejs.org if needed.


Step 1: Create MCP Config File

Create an MCP server configuration file to tell Visual Studio how to invoke Mobb Vibe Shield.

You have two options depending on your use case:

Option A: Per-User (Applies to All Solutions)

Create a file named:

%USERPROFILE%\.mcp.json

Create this file at the root of your solution:

<SOLUTIONDIR>\.mcp.json

Step 2: Define the MCP Server

Paste the following into your .mcp.json file:

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

Step 3: Start Agent Mode in Visual Studio

  1. Open Visual Studio

  2. In the GitHub Copilot Chat panel, click the Ask dropdown

  3. Select Agent to activate MCP agent mode

    Dropdown to switch to Agent mode
  4. You’ll be prompted to approve tools exposed by the MCP server — allow access to mobb-mcp


Step 4. Verify the Mobb-MCP is correctly installed

Click on the "Select Tools" button next to the prompt box in GitHub Copilot and verify that you can see the following:

If you run into any issues, you can always restart the mobb-mcp server by clicking on the > icon and select "Restart":

Step 5: Use Mobb in Agent Chat

In the Copilot chat panel, type the following prompt:

Check for available fixes using the Mobb MCP

On first run, Mobb will open a browser to authenticate your IDE session with the Mobb platform

After authentication, Copilot should use the fetch_available_fixes MCP tool to bring any available fixes from the Mobb platform and show them in the IDE.


File Location Priority

Visual Studio supports MCP config discovery in this order:

  1. %USERPROFILE%\.mcp.json — global user config

  2. <SOLUTIONDIR>\.vs\mcp.json — solution-scoped user config

  3. <SOLUTIONDIR>\.mcp.json — shared config, recommended for source control

  4. <SOLUTIONDIR>\.vscode\mcp.json — optional (VS Code config)

  5. <SOLUTIONDIR>\.cursor\mcp.json — optional (Cursor IDE config)

Note that some of these locations require .mcp.json while others require mcp.json.


Troubleshooting

Problem
Solution

🔧 Tool doesn't show in chat

Ensure .mcp.json is valid and saved. Restart Visual Studio after adding or editing the file.

🕑 Delay or no response from Mobb

The MCP server may be cold-starting. Wait ~1–2 minutes and retry.

⚠️ Node not found

Ensure Node.js is installed and node is available in your system PATH

🚫 Permissions dialog not appearing

Agent mode may be blocked by your GitHub org's policies

Last updated

Was this helpful?