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
Visual Studio 2022 version 17.14 or later (MCP support is in preview)
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
Option B: Per-Solution (Recommended for source control)
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": {
}
}
}
}
For single-tenant users, ensure you add the variables API_URL
and WEB_APP_URL
in the env
section. Furthermore, TOOLS_ENABLED
allows you to specify which modes are allowed:
For example:
{
"servers": {
"mobb-mcp": {
"type": "stdio",
"command": "npx",
"args": ["mobbdev@latest", "mcp"],
"env": {
"API_URL": "https://api-st-<YOUR_TENANT_NAME>.mobb.ai/v1/graphql",
"WEB_APP_URL": "https://<YOUR_TENANT_NAME>.mobb.ai",
"TOOLS_ENABLED": ["check_for_available_fixes"]
}
}
}
}
Step 3: Start Agent Mode in Visual Studio
Open Visual Studio
In the GitHub Copilot Chat panel, click the Ask dropdown
Select Agent to activate MCP agent mode
Dropdown to switch to Agent mode 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:
%USERPROFILE%\.mcp.json
— global user config<SOLUTIONDIR>\.vs\mcp.json
— solution-scoped user config<SOLUTIONDIR>\.mcp.json
— shared config, recommended for source control<SOLUTIONDIR>\.vscode\mcp.json
— optional (VS Code config)<SOLUTIONDIR>\.cursor\mcp.json
— optional (Cursor IDE config)
Note that some of these locations require .mcp.json
while others require mcp.json
.
Troubleshooting
🔧 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?