code-sentinel

v0.2.6
io.github.salrad22/code-sentinel Checked 1 day ago Published 11 months ago

Code quality analysis MCP server - detects security issues, deceptive patterns, and placeholders

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_code

Analyze code for security issues, errors, deceptive patterns, and placeholders. Returns a structured analysis with issues and strengths.

ParameterTypeDescription
code *stringThe source code to analyze
filename *stringThe filename (used to detect language). Example: 'app.ts'

generate_report

Analyze code and generate a detailed HTML report with visual indicators for issues and strengths.

ParameterTypeDescription
code *stringThe source code to analyze
filename *stringThe filename (used to detect language). Example: 'app.ts'

check_security

Check code for security vulnerabilities only (hardcoded secrets, SQL injection, XSS, etc.)

ParameterTypeDescription
code *stringThe source code to check
filename *stringThe filename

check_deceptive_patterns

Check for code patterns that hide errors or create false confidence (empty catches, silent failures, etc.)

ParameterTypeDescription
code *stringThe source code to check
filename *stringThe filename

check_placeholders

Check for placeholder code, dummy data, TODO/FIXME comments, and incomplete implementations

ParameterTypeDescription
code *stringThe source code to check
filename *stringThe filename

analyze_patterns

Analyze code for architectural, design, and implementation patterns. Detects pattern usage, inconsistencies, and provides actionable suggestions for improvement. Returns LLM-optimized JSON with action items.

ParameterTypeDescription
code *stringThe source code to analyze
filename *stringThe filename (used to detect language)
levelstringPattern level to analyze: 'architectural' (system structure), 'design' (GoF patterns), 'code' (implementation idioms), or 'all' (default)
querystringOptional natural language query to focus analysis (e.g., 'how is error handling done?')

analyze_design_patterns

Focused analysis of Gang of Four (GoF) design patterns in code. Detects Singleton, Factory, Observer, Strategy, and other classic patterns with confidence levels and implementation details.

ParameterTypeDescription
code *stringThe source code to analyze
filename *stringThe filename (used to detect language)