Skip to main content
Glama

๐Ÿ›ก๏ธ CodeSentry MCP

AI-Powered Code Review Assistant using Model Context Protocol

License: MIT TypeScript Node.js

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

Related MCP server: Argus MCP

๐Ÿš€ 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

  1. Add to Claude Desktop (macOS):

{
  "mcpServers": {
    "codesentry": {
      "command": "node",
      "args": ["/path/to/codesentry-mcp/dist/index.js"],
      "env": {}
    }
  }
}
  1. Test the connection:

Ask Claude: "Use the ping tool to test CodeSentry"
  1. 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 analysis

  • analyze_file - Single file analysis

  • scan_security - Security vulnerability scan

  • check_dependencies - Dependency audit

AI Tools

  • explain_code - Natural language code explanations

  • suggest_improvements - AI-powered refactoring suggestions

  • generate_tests - Test case recommendations

GitHub Tools

  • analyze_pr - Pull request analysis

  • comment_suggestion - Add review comments

  • update_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.

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'Add amazing feature')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support


Available Tools

2 tools
analyze_repositoryB

Analyze a git repository for security, performance, and quality issues

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the repository to analyze
configNoAnalysis configuration options

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description provides no behavioral details such as whether the analysis is read-only, what permissions are needed, whether it has side effects, or what output is returned. With no annotations, the agent lacks critical information about the tool's runtime behavior, leaving a significant transparency gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that efficiently conveys the tool's purpose with no unnecessary words or redundancy. It is optimally concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a nested config object with multiple toggles and no output schema, yet the description is minimal. It does not explain how to use the config parameter, what the tool returns, or any behavioral constraints. This is insufficient for an agent to invoke the tool correctly in varied scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema has 100% coverage, the description adds no explanation of the 'config' parameter or its options. The description lists security, performance, and quality, but the schema also includes 'enableDocumentation', which is not mentioned, creating a mismatch. The description adds little beyond the schema's property names and types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool analyzes a git repository for security, performance, and quality issues. It uses a specific verb and resource, and is unambiguous. The only sibling tool is 'ping', which serves a different purpose, so there is no confusion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by stating what the tool does, but it does not explicitly say when to use it or provide alternatives. Since the only sibling is 'ping', the intended use is reasonably obvious, yet there is no formal guidance on when to choose this tool over others.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

pingA

Test connectivity to the CodeSentry server

ParametersJSON Schema
NameRequiredDescriptionDefault
messageNoOptional message to echo back

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the transparency burden. It implies a safe, non-destructive connectivity check but does not disclose return values, error behavior, or side effects. For a simple ping, this is adequate but minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the action, and zero waste. The description and schema together provide the necessary information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple connectivity test with one optional parameter, the description is sufficient. No output schema exists, so the return format is not explained, but a ping tool's purpose implies a simple success/failure response. Minor gap in not mentioning the echo behavior explicitly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%: the 'message' parameter is fully described in the schema as 'Optional message to echo back'. The description adds no additional parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Test connectivity to the CodeSentry server' uses a specific verb ('test') and a clear resource ('CodeSentry server'). It fully distinguishes from the sibling tool 'analyze_repository', which is about analysis, not connectivity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage is implied: use it to verify server availability. No explicit alternatives or exclusions are mentioned. With only one sibling, the purpose distinction is clear, but there is no direct comparison or when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv1.0.0
    • First observedanalyze_repository
    • First observedping

TDQS

A3.6/5.0
Disambiguation5/5

The two tools serve entirely different purposes: one checks connectivity and the other performs repository analysis. There is no overlap or ambiguity in their intended use.

Naming Consistency4/5

Both tool names are imperative verbs, but 'ping' is a bare verb while 'analyze_repository' follows a verb_noun pattern. This is a minor deviation from a fully uniform naming convention.

Tool Count3/5

With only two tools, the server feels minimal. For a repository analysis service, one might expect additional tools for managing or retrieving results, but the count is not unreasonable for a simple utility.

Completeness3/5

The core analysis functionality is present, but there are no supporting operations such as listing previous analyses, fetching detailed reports, or configuring analysis parameters. The surface is functional but incomplete for a comprehensive analysis workflow.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI-assisted code review with bias mitigation strategies through cross-model evaluation and bias-aware prompting. Detects AI-generated code from commit authors and provides structured reviews with security, performance, and maintainability analysis.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI-powered, zero-trust code review with multiple models, supporting single files, git diffs, and multiple files, with security, performance, and architecture checks across 10+ languages.
    13
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI-powered code review and improvement, including analysis, refactoring suggestions, and automatic test generation, with an optional agentic loop for iterative refinement.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI-powered security scanning of codebases through conversational analysis, allowing users to assess, threat model, code review, DAST test, and generate security reports using natural language with Claude.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ayushgundecha/codesentry-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server