codesentry-mcp
AI-powered code review assistant that analyzes repositories for security vulnerabilities, performance bottlenecks, and code quality issues through natural language interactions.
README
๐ก๏ธ CodeSentry MCP
AI-Powered Code Review Assistant using Model Context Protocol
CodeSentry is an intelligent code review assistant that integrates with AI systems through the Model Context Protocol (MCP). It provides comprehensive analysis of your codebase, identifying security vulnerabilities, performance bottlenecks, code quality issues, and documentation gaps.
โจ Features
- ๐ Security Analysis - Detect OWASP Top 10 vulnerabilities and security anti-patterns
- โก Performance Analysis - Identify bottlenecks and optimization opportunities
- ๐ฏ Code Quality - Find code smells, complexity issues, and maintainability problems
- ๐ Documentation Review - Check for missing or outdated documentation
- ๐ค AI Integration - Natural language explanations and suggestions
- ๐ GitHub Integration - Automated PR reviews and status checks
- ๐งช Live Testing - Built-in MCP client for immediate feedback
๐ Quick Start
Prerequisites
- Node.js 18+
- Git
- An AI assistant that supports MCP (Claude, etc.)
Installation
# Clone the repository
git clone https://github.com/ayushgundecha/codesentry-mcp.git
cd codesentry-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Test the server
npm run dev
Usage with MCP
- Add to Claude Desktop (macOS):
{
"mcpServers": {
"codesentry": {
"command": "node",
"args": ["/path/to/codesentry-mcp/dist/index.js"],
"env": {}
}
}
}
- Test the connection:
Ask Claude: "Use the ping tool to test CodeSentry"
- Analyze a repository:
Ask Claude: "Use CodeSentry to analyze the repository at /path/to/your/project"
๐ ๏ธ Development
Project Structure
codesentry-mcp/
โโโ src/
โ โโโ analyzers/ # Analysis engines (security, performance, quality)
โ โโโ integrations/ # External service integrations (Git, GitHub, AI)
โ โโโ mcp/ # MCP protocol implementation
โ โโโ utils/ # Utility functions and helpers
โ โโโ types/ # TypeScript type definitions
โโโ tests/ # Test suites
โโโ docs/ # Documentation
โโโ examples/ # Usage examples
Available Scripts
npm run dev # Start development server
npm run build # Build for production
npm run test # Run test suite
npm run lint # Lint code
npm run format # Format code with Prettier
๐ Available Tools
Analysis Tools
analyze_repository- Comprehensive repository analysisanalyze_file- Single file analysisscan_security- Security vulnerability scancheck_dependencies- Dependency audit
AI Tools
explain_code- Natural language code explanationssuggest_improvements- AI-powered refactoring suggestionsgenerate_tests- Test case recommendations
GitHub Tools
analyze_pr- Pull request analysiscomment_suggestion- Add review commentsupdate_status- Update PR status checks
๐ Example Output
{
"security": [
{
"type": "SQL_INJECTION",
"severity": "HIGH",
"file": "src/user.ts",
"line": 42,
"description": "Potential SQL injection vulnerability",
"suggestion": "Use parameterized queries",
"fix": "await prisma.user.findMany({ where: { id: userId } })"
}
],
"performance": [
{
"type": "ALGORITHM_COMPLEXITY",
"severity": "MEDIUM",
"file": "src/sort.ts",
"line": 15,
"complexity": "O(nยฒ)",
"suggestion": "Use Array.sort() for better performance",
"estimatedImpact": "90% improvement"
}
]
}
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Model Context Protocol by Anthropic
- TypeScript ESLint for code analysis patterns
- Simple Git for Git integration
๐ Support
- ๐ Report Issues
- ๐ฌ Discussions
- ๐ง Email: your-email@example.com
<div align="center"> <strong>Built with โค๏ธ for the developer community</strong> </div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.