VS Code + Claude Code
Introduction
This guide explains how to integrate Claude Code (Anthropic’s AI coding assistant) with Mobb Vibe Shield (MVS) to automatically detect and fix security vulnerabilities in your code.
After setup, you’ll be able to use Mobb’s MCP (Model Context Protocol) tools directly inside Claude — both through the Claude CLI and the Claude Code VS Code extension.
Step 1. Install Claude Code CLI
Claude Code provides a command-line interface that manages configuration, context, and MCP servers.
Installation Instructions: Follow the official Claude Code CLI setup guide: 👉 Claude Code CLI Setup
Once installed, verify installation with:
claude --versionIf this returns a version number, you’re ready to proceed.
Step 2. (Optional) Install Claude Code for VS Code Extension
Installing the Claude VS Code extension provides an integrated IDE experience similar to GitHub Copilot. However, this step is optional, since you can perform all steps and interactions directly in the Claude CLI inside your VS Code terminal.
Install from the Marketplace: 👉 Claude Code for VS Code
Once installed, the extension automatically detects any MCP servers configured through the CLI.
Step 3. Add Mobb MCP to Claude
The Mobb MCP server connects Claude to Mobb Vibe Shield’s auto-fix engine. This configuration is project-scoped, meaning your .mcp.json file will live in the project root and can be versioned for team use.
Open a terminal in your project directory:
PS C:\Users\Antony> cd C:\git-repositories\git-node-app-test2\Add Mobb MCP (multi-tenant setup):
claude mcp add --transport stdio mobb-mcp --scope project -- npx -y mobbdev@latest mcpThis command:
Configures the Mobb MCP tool in
.mcp.jsonEnables project-level collaboration
Verify
.mcp.jsonwas created in your project directory. It should look like this:{ "mcpServers": { "mobb-mcp": { "command": "npx", "args": ["-y", "mobbdev@latest", "mcp"] } } }For Enterprise Single-Tenant deployments, include tenant environment variables:
claude mcp add --transport stdio mobb-mcp --scope project \ --env API_URL=https://api-st-<YOUR_TENANT_NAME>.mobb.ai/v1/graphql \ --env WEB_APP_URL=https://<YOUR_TENANT_NAME>.mobb.ai \ -- npx -y mobbdev@latest mcpOnce complete, Claude will automatically detect the configuration when launched.
Step 4. Confirm MCP Detection and Approval
Run Claude in the terminal:
claudeYou’ll see a message that a new MCP server was found in
.mcp.json:
Select
1— Use this and all future MCP servers in this project.
Step 5. Verify Mobb MCP Connection
Check the connection:
/mcpExpected output:
1. mobb-mcp ✓ connected
If not connected, run:
/doctorThis helps identify missing dependencies or permission issues.
Step 6. Using Mobb MCP in Claude Code for VS Code
Once verified in the CLI, the VS Code extension automatically inherits the configuration.
Open the Claude Code sidebar in VS Code.
Run
/mcpagain to verifymobb-mcpis connected.
You can also ask Claude:
what tools can you seeYou should see these available tools:
mcp__mobb-mcp__scan_and_fix_vulnerabilities
mcp__mobb-mcp__fetch_available_fixes
mcp__mobb-mcp__check_for_new_available_fixesMVS is now fully integrated with Claude Code.
Step 7. (Optional) Install the MVS Rulebook
Install a MVS rulebook to guide Claude’s behavior during secure code generation.
Download the rulebook file:
Save it to:
.claude/CLAUDE.mdPurpose:
Enforces Mobb’s
scan_and_fix_vulnerabilitiescapabilityEnsures vulnerabilities are rechecked after code changes
Automatically adds reusable prevention rules under
.claude/instructions/
Step 8. Troubleshooting
MCP not listed in /mcp
.mcp.json missing or invalid
Re-run claude mcp add
Connection error
Missing Node.js
Ensure Node ≥ 18 is installed
Enterprise tenant issue
Wrong API_URL/WEB_APP_URL
Double-check tenant URLs
Permission errors
VS Code running elevated
Reopen without admin mode
Summary
Claude Code and Mobb Vibe Shield (MVS) are now connected through MCP. You can now use Mobb’s AI-generated fixes directly within Claude Code for automated, continuous secure coding.
Last updated
Was this helpful?