
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@codesherlock/codesherlock-prelive-mcp-server
Advanced tools
A TypeScript-based Model Context Protocol (MCP) server
Configure the Model Context Protocol server once and keep every commit and working tree scan consistent across your team.
Scan staged and unstaged files before you commit so surprises never reach your repo.
Review your latest commit to spot issues before pushing to remote or opening a PR.
Run checks aligned to OWASP Top 10 and the CWE catalog for focused security feedback.
Connects to AI assistants like Claude Code, Cursor, Windsurf, Cline, VS Code and other MCP-compatible tools via a lightweight server.
Quick checklist to confirm before you start:
The CodeSherlock MCP Server is available on the npm registry and can be used directly with npx.
You need to add the CodeSherlock MCP Server configuration to your AI assistant's settings. Follow the instructions for your preferred IDE/assistant below.
Quick Navigation:
mcp.json config file{
"mcpServers": {
"codesherlock": {
"name": "CodeSherlock MCP Server",
"description": "CodeSherlock is an AI- based code analysis tool that validates unstaged changes and commits directly inside IDEs and AI Agents. It helps developers catch security, quality, and design issues early by combining deep analysis with compliance-aware checks OWASP, CWE, SOC-2 at the moment code is written. CodeSherlock also performs other security vulnerability reviews along with Maintainability, Reliability and Scalability checks. Use CodeSherlock to review and validate code especially generated via AI.",
"command": "npx",
"args": [
"-y",
"@codesherlock/codesherlock-mcp-server"
],
"env": {
"MCP_API_KEY": "your-api-key-here"
}
}
}
}
@. Additionally, you can check the Manage MCP Servers page to see if it's listed and connected.{
"mcpServers": {
"codesherlock": {
"name": "CodeSherlock MCP Server",
"description": "CodeSherlock is an AI- based code analysis tool that validates unstaged changes and commits directly inside IDEs and AI Agents. It helps developers catch security, quality, and design issues early by combining deep analysis with compliance-aware checks OWASP, CWE, SOC-2 at the moment code is written. CodeSherlock also performs other security vulnerability reviews along with Maintainability, Reliability and Scalability checks. Use CodeSherlock to review and validate code especially generated via AI.",
"command": "npx",
"args": [
"-y",
"@codesherlock/codesherlock-mcp-server"
],
"env": {
"MCP_API_KEY": "your-api-key-here"
}
}
}
}
Ctrl+,)mcp_config.json config file{
"mcpServers": {
"codesherlock": {
"name": "CodeSherlock MCP Server",
"description": "CodeSherlock is an AI- based code analysis tool that validates unstaged changes and commits directly inside IDEs and AI Agents. It helps developers catch security, quality, and design issues early by combining deep analysis with compliance-aware checks OWASP, CWE, SOC-2 at the moment code is written. CodeSherlock also performs other security vulnerability reviews along with Maintainability, Reliability and Scalability checks. Use CodeSherlock to review and validate code especially generated via AI.",
"command": "npx",
"args": [
"-y",
"@codesherlock/codesherlock-mcp-server"
],
"env": {
"MCP_API_KEY": "your-api-key-here"
}
}
}
}
claude mcp add --transport stdio codesherlock --env MCP_API_KEY=cs_mcp_abcdef -- cmd /c npx -y @codesherlock/codesherlock-mcp-server
claude mcp list
claude mcp list fails to connect, try reopening your terminal as an optional troubleshooting step.Other useful commands:
claude mcp remove codesherlock # Remove a server
Manually add to config file (optional):
{
"mcpServers": {
"codesherlock": {
"name": "CodeSherlock MCP Server",
"description": "CodeSherlock is an AI- based code analysis tool that validates unstaged changes and commits directly inside IDEs and AI Agents. It helps developers catch security, quality, and design issues early by combining deep analysis with compliance-aware checks OWASP, CWE, SOC-2 at the moment code is written. CodeSherlock also performs other security vulnerability reviews along with Maintainability, Reliability and Scalability checks. Use CodeSherlock to review and validate code especially generated via AI.",
"command": "npx",
"args": [
"-y",
"@codesherlock/codesherlock-mcp-server"
],
"env": {
"MCP_API_KEY": "your-api-key-here"
}
}
}
}
Requires GitHub Copilot extension installed
Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS) to open Command Palette@. You should see the CodeSherlock MCP Server tools listed and available for use.{
"servers": {
"codesherlock": {
"name": "CodeSherlock MCP Server",
"description": "CodeSherlock is an AI- based code analysis tool that validates unstaged changes and commits directly inside IDEs and AI Agents. It helps developers catch security, quality, and design issues early by combining deep analysis with compliance-aware checks OWASP, CWE, SOC-2 at the moment code is written. CodeSherlock also performs other security vulnerability reviews along with Maintainability, Reliability and Scalability checks. Use CodeSherlock to review and validate code especially generated via AI.",
"command": "npx",
"args": [
"-y",
"@codesherlock/codesherlock-mcp-server"
],
"env": {
"MCP_API_KEY": "your-api-key-here"
}
}
}
}
Cline is a VS Code extension. Install it from the VS Code marketplace or other supported IDEs.
cline_mcp_settings.json config file{
"mcpServers": {
"codesherlock": {
"name": "CodeSherlock MCP Server",
"description": "CodeSherlock is an AI- based code analysis tool that validates unstaged changes and commits directly inside IDEs and AI Agents. It helps developers catch security, quality, and design issues early by combining deep analysis with compliance-aware checks OWASP, CWE, SOC-2 at the moment code is written. CodeSherlock also performs other security vulnerability reviews along with Maintainability, Reliability and Scalability checks. Use CodeSherlock to review and validate code especially generated via AI.",
"command": "npx",
"args": [
"-y",
"@codesherlock/codesherlock-mcp-server"
],
"env": {
"MCP_API_KEY": "your-api-key-here"
}
}
}
}
Once configured, you can start using CodeSherlock by prompting your AI assistant. The assistant will automatically invoke the MCP server tools to perform code analysis.
CodeSherlock supports four analysis factors:
| Factor | Description |
|---|---|
| power_analysis | A full-spectrum scan that covers the most essential and critical issues |
| owasp | Security analysis based on OWASP Top 10 vulnerabilities |
| cwe_mitre | Analyzes code against Common Weakness Enumeration (CWE) MITRE framework |
| cwe_kev | Analyzes code against CWE Known Exploited Vulnerabilities (KEV) catalog |
Drop these into your AI assistant to kick off a scan:
"Review my uncommitted changes using CodeSherlock"
"Use CodeSherlock to check my uncommitted code for CWE MITRE vulnerabilities"
"Analyze my latest commit for OWASP vulnerabilities using CodeSherlock"
"Check the last commit in my current repo for CWE KEV issues with CodeSherlock"
The AI assistant will present the analysis results in a readable format, typically including:
If the server does not show up in your IDE or fails to start, follow these steps:
npx -y @codesherlock/codesherlock-mcp-server in your system terminal.
mcp.json, cline_mcp_settings.json) is valid JSON and matches the format provided in the instructions above..git foldergit initgit logIf you encounter errors while installing or running the CodeSherlock MCP Server in any MCP host (Cursor, VS Code, etc.), try the following steps:
Clear NPX cache
Remove the cached package to force a fresh download:
macOS/Linux
rm -rf ~/.npm/_npx
Windows (PowerShell)
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache\_npx"
Restart the MCP host
Close and reopen your MCP host application (Cursor, VS Code, etc.) to ensure all connections are reset and the server is reloaded properly.
Verify Node.js version
Ensure you have Node.js v18 or higher installed:
node --version
Contact support
If the issue persists after trying the above steps, please contact us at contact@fintechglobal.center.
If you need to troubleshoot how the MCP client executes the server, understanding the internal npx behavior can be helpful:
npx -y @codesherlock/codesherlock-mcp-server. The -y flag ensures non-interactive execution by automatically skipping installation prompts.npx does not install the package globally. Instead, it downloads and caches it temporarily:
%LOCALAPPDATA%\npm-cache\_npx\~/.npm/_npx/npx reads the downloaded package's bin field and maps it to execute build/index.js under the hood.MCP_API_KEY configured in your client settings is securely injected into the isolated Node.js process at runtime.If you face any issues, please send us a mail at support@codesherlock.ai. We will help you resolve the issue as soon as possible.
FAQs
A TypeScript-based Model Context Protocol (MCP) server
We found that @codesherlock/codesherlock-prelive-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.