IntelliJ IDEA + GitHub Copilot
Prerequisites
Before configuring MVS in IntelliJ, ensure the following tools are installed and functional:
IntelliJ IDEA
IntelliJ IDEA 2024.1 or later is recommended.
GitHub Copilot permissions
If you are using GitHub Copilot through a GitHub organization, verify that the following settings are enabled:
Copilot Chat in the IDE
MCP servers in Copilot
These settings are configured in your GitHub org admin panel:
Settings → Copilot → Policies
GitHub Copilot Plugin
Install GitHub Copilot from the plugin marketplace:
Navigate to
Settings → Plugins → Marketplace.Search for GitHub Copilot and click Install.
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 --versionIf not installed or outdated, install via nodejs.org.
Step 1. Load Mobb Tools in Copilot Chat
Open Copilot Chat from the right-hand sidebar.
Expand the chat panel and switch to the Agent (Preview) tab.
Click the tools icon (bottom-left of the chat panel).\

Click Add More Tools...

A
mcp.jsonfile should be opened. You will need to put the following configuration in this file:\{ "servers": { "mobb-mcp": { "command": "npx", "args": ["--yes", "mobbdev@latest", "mcp"], "env": { } } } }Save the file. \
Click the tools icon again — you should now see tools listed under MCP Server: mobb-mcp such as:
scan_and_fix_vulnerabilitiesfetch_available_fixes

Step 1. Add mcp.json in Your Workspace
mcp.json in Your WorkspaceIn your project, create a file:
.vscode/mcp.json(yes, the IntelliJ Copilot plugin respects the same path format).Add the following configuration:
{
"servers": {
"mobb-mcp": {
"command": "npx",
"args": ["--yes", "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": ["--yes", "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 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-mcpConnection state: RunningDiscovered 2 tools(or similar)

Step 4. Run Mobb MCP
In the chat prompt, type:
Check for available fixes using the Mobb MCPMVS 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
nodeandnpxare available in your system PATH.If no tools are detected, confirm your
mcp.jsonsyntax 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?