What is Bugsy is a CLI tool for automatic security vulnerability remediation.?
Bugsy is a command-line interface (CLI) tool that provides automatic security vulnerability remediation for your code. It is the community edition version of Mobb, the first vendor-agnostic automated security vulnerability remediation tool. Bugsy helps developers quickly identify and fix security vulnerabilities in their code by analyzing SAST results from various tools and producing code fixes.
Documentation
Bugsy
Bugsy is a command-line interface (CLI) tool that provides automatic security vulnerability remediation for your code. It is the community edition version of Mobb, the first vendor-agnostic automated security vulnerability remediation tool. Bugsy is designed to help developers quickly identify and fix security vulnerabilities in their code.
Mobb is the first vendor-agnostic automatic security vulnerability remediation tool. It ingests SAST results from Checkmarx, CodeQL (GitHub Advanced Security), OpenText Fortify, and Snyk and produces code fixes for developers to review and commit to their code.
What does Bugsy do?
Bugsy has two modes - Scan (no SAST report needed) & Analyze (the user needs to provide a pre-generated SAST report from one of the supported SAST tools).
Scan
Uses Checkmarx or Snyk CLI tools to run a SAST scan on a given open-source GitHub/GitLab/ADO repo
Analyzes the vulnerability report to identify issues that can be remediated automatically
Produces the code fixes and redirects the user to the fix report page on the Mobb platform
Analyze
Analyzes the a Checkmarx/CodeQL/Fortify/Snyk vulnerability report to identify issues that can be remediated automatically
Produces the code fixes and redirects the user to the fix report page on the Mobb platform
Disclaimer
This is a community edition version that only analyzes public GitHub repositories. Analyzing private repositories is allowed for a limited amount of time.
Bugsy does not detect any vulnerabilities in your code, it uses findings detected by the SAST tools mentioned above.
Usage# Command Line Interface
You can simply run Bugsy from the command line, using npx:
npx mobbdev
This will show you Bugsy's usage help:
Bugsy - Trusted, Automatic Vulnerability Fixer 🕵️♂️
Usage:
mobbdev <command> [options]
Commands:
mobbdev scan Scan your code for vulnerabilities, get automated fixes right away.
mobbdev analyze Provide a vulnerability report and relevant code repository, get automated fixes right away.
Options:
- h, --help Show help [boolean]
Examples:
mobbdev scan -r https://github.com/WebGoat/WebGoat Scan an existing repository
Made with ❤️ by Mobb
To run a new SAST scan on a repo and get fixes, run the Bugsy Scan command. Example:
Bugsy will automatically generate a fix for each supported vulnerability identified in the results, and refer the developer to review and commit the fixes to their code.
To see all the options Bugsy allows, use the Scan or Analyze commands with the -h option:
npx mobbdev scan -h
npx mobbdev analyze -h
Model Context Protocol (MCP) Server
Bugsy can also be used as an MCP server, allowing AI assistants like Claude to automatically scan and fix vulnerabilities in your code repositories.
Prerequisites
API Key: You need a Mobb API key to use the MCP server functionality
Once configured, you can use the MCP server through your AI assistant:
Ask Claude to scan for vulnerabilities:
run a scan with mobb-mcp
or
run fix-vulnerabilities mcp tool
The MCP server will:
Validate the repository path
Check for git changes (modified, added, or staged files)
Upload the changed files for analysis
Generate automated fixes for detected vulnerabilities
Return detailed fix recommendations
Available MCP Tools
fix_vulnerabilities: Scans the current code changes and returns fixes for potential vulnerabilities
Parameter: path (string) - The path to the local git repository
Returns: Detailed vulnerability fixes with code patches and explanations
Example MCP Workflow
Make changes to your code
Stage or modify files in git
Ask your AI assistant: "Can you check my code for security vulnerabilities?"
The assistant will use the MCP server to analyze your changes
Receive detailed fix recommendations with code patches
Troubleshooting
"API_KEY environment variable is not set": Make sure you've set your Mobb API key
"Path is not a valid git repository": Ensure you're pointing to a valid git repository
"No changed files found": Make sure you have modified, added, or staged files in your repository
Using Bugsy as part of a CI/CD pipeline
If you utilize SAST scans as part of the CI/CD pipeline, Bugsy can be easiy added and provide immediate fix for every issue detected.
Here is a simple example of a command line that will run Bugsy in your pipeline: