Provides comprehensive repository analysis with tools for accessing repository info, file content, directory structure, code search, dependency analysis, and codebase structure analysis.
Provides analysis and tools optimized for Node.js applications, supporting dependency analysis and codebase structure evaluation.
Offers specialized analysis and transformation tools for TypeScript codebases, including code modernization and migration assistance.
CodeCompass MCP
Enterprise-grade Model Context Protocol (MCP) Server for intelligent repository analysis and AI-powered development assistance.
Connect your development tools to comprehensive GitHub repository analysis with 11 streamlined tools, enhanced error handling, real-time monitoring, and production-ready deployment.
✨ Features
🔍 Comprehensive Repository Analysis - Deep insights into code structure, dependencies, and architecture
🤖 AI-Powered Code Review - Intelligent code analysis with OpenRouter integration (400+ models)
🚀 Production-Ready Deployment - Docker containers with security best practices
📊 Real-time Monitoring - Performance metrics, health checks, and observability
🛡️ Enterprise Security - Input validation, path traversal prevention, and secure processing
⚡ High Performance - Intelligent chunking, concurrent processing, and response optimization
🔧 Developer Experience - Comprehensive documentation, examples, and debugging tools
🚀 Quick Start
Step-by-Step Docker Setup (Recommended)
1. Clone and Navigate
Expected output:
2. Configure Environment
Required in
🔑 Where to get API keys:
GitHub Token: github.com/settings/tokens → Generate new token (classic) → Select
repo
scopeOpenRouter Key: openrouter.ai/keys → Create new API key
3. Build and Run
Expected output:
4. Test Installation
Platform Support
✅ Linux (Ubuntu 18.04+, CentOS 7+)
✅ macOS (10.14+, Intel & Apple Silicon)
✅ Windows (10/11 with Docker Desktop)
Alternative Installation Methods
Local Development
Global Installation
🔧 Configuration
Required Environment Variables
Optional Configuration
🛠️ Available Tools
Core Data Tools (6 tools)
get_repository_info
- Repository metadata, statistics, and key informationget_file_tree
- Complete directory structure and file listing with filteringsearch_repository
- Advanced search with regex patterns and filteringget_file_content
- Batch file processing with security validation and metadataanalyze_dependencies
- Dependency graph analysis and vulnerability detectionanalyze_codebase
- Comprehensive structure, architecture, and metrics analysis
AI-Enhanced Tools (3 tools)
review_code
- AI-powered code review with security, performance, and maintainability insightsexplain_code
- Natural language code explanations and documentation generationsuggest_improvements
- Intelligent refactoring recommendations and modernization strategies
Transformation Tools (1 tool)
transform_code
- Code transformation, modernization, and migration assistance
Utility Tools (1 tool)
health_check
- System health monitoring and performance metrics
🐳 Docker Integration
Production Deployment
Docker Compose
MCP Client Integration
Claude Desktop Configuration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Then restart Claude Desktop and you'll see CodeCompass tools available in the UI.
Claude Code CLI Integration
Other MCP Clients
Cline (VS Code): Add to MCP configuration
Continue (VS Code/JetBrains): Configure as MCP provider
Custom clients: Use
stdio
transport withnode build/index.js
Testing Integration
📊 Monitoring & Observability
Real-time Dashboard
Performance Metrics
Response Times: <100ms for health checks, 2-10s for repository analysis
Memory Usage: 50-200MB depending on repository size
Concurrent Processing: Configurable limits with automatic scaling
Error Tracking: Comprehensive error monitoring with contextual suggestions
Health Monitoring
🔍 Usage Examples
Repository Analysis
AI Code Review
Batch File Processing
🏗️ Architecture
Service-Oriented Design
Key Components
MCP Server: JSON-RPC protocol handling with 11 streamlined tools
Service Layer: GitHub API, OpenRouter integration, and business logic
Configuration: Centralized, type-safe configuration with Zod validation
Monitoring: Real-time performance tracking and health monitoring
Security: Input validation, path traversal prevention, and secure processing
🔒 Security Features
Input Validation
Zod Schema Validation: Type-safe input validation for all tools
Path Traversal Prevention: Comprehensive file path security checks
Rate Limiting: Configurable request rate limiting and throttling
API Key Management: Secure environment variable handling
Container Security
Non-root Execution: All containers run as unprivileged users
Read-only Filesystems: Security-focused container configuration
Resource Limits: Memory and CPU constraints for stability
Health Checks: Automated health monitoring and recovery
🎯 Performance Optimization
Intelligent Response Management
Chunking: Large responses split into manageable chunks
Truncation: Smart truncation preserving data structure
Concurrent Processing: Parallel file processing with configurable limits
Caching: Intelligent caching strategies for frequently accessed data
Resource Management
Memory Efficiency: Optimized memory usage with automatic cleanup
Request Tracking: Correlation IDs for distributed tracing
Performance Insights: Automated performance analysis and recommendations
Scalability: Horizontal scaling ready with Docker containers
📚 Documentation
Complete Documentation Suite
Setup Guide - Installation and configuration instructions
API Reference - Complete tool documentation with examples
Docker Guide - Container deployment and management
Monitoring Guide - Observability and performance monitoring
Architecture Guide - Technical architecture and patterns
Examples and Templates
Usage Examples - Real-world usage patterns and templates
Integration Examples - MCP client integration examples
Configuration Templates - Production-ready configuration examples
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details on:
Development setup and workflow
Code style and testing requirements
Pull request process and guidelines
Bug reporting and feature requests
Development Setup
🔄 Roadmap
Current Version (1.0.0)
✅ 11 streamlined, atomic tools with clear responsibilities
✅ Production-ready Docker deployment
✅ Real-time monitoring and observability
✅ Enterprise security features
✅ Complete documentation suite
Future Enhancements
🔮 Conversational Context Management - Session state and conversation history
🔮 Advanced Caching - Redis-based caching with intelligent invalidation
🔮 Plugin System - Extensible architecture for custom tools
🔮 Multi-language Support - Expanded language support beyond TypeScript/JavaScript
🔮 Kubernetes Integration - Native Kubernetes deployment with Helm charts
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
OpenRouter MCP - Architecture patterns and best practices inspiration
MCP Protocol - Foundation for tool integration and communication
Anthropic - Claude AI integration and development support
GitHub - Repository analysis and API integration
Docker - Containerization and deployment infrastructure
🆘 Support
Getting Help
Documentation: Check our comprehensive documentation in the
docs/
directoryIssues: Report bugs and request features on GitHub Issues
Discussions: Join community discussions on GitHub Discussions
Common Issues
API Key Setup: See Setup Guide
Docker Issues: Check Docker Guide
Performance: Review Monitoring Guide
🚀 Built With
TypeScript - Type-safe JavaScript development
Node.js - JavaScript runtime environment
Docker - Containerization platform
Zod - TypeScript-first schema validation
MCP SDK - Model Context Protocol implementation
Made with 💜 by Myron Labs
Transform your development workflow with intelligent repository analysis and AI-powered code insights.
Tools
An enterprise-grade Model Context Protocol server that provides comprehensive GitHub repository analysis and AI-powered development assistance through 11 streamlined tools.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI models to interact with GitHub's API, allowing for repository creation and management with descriptions, topics, and website URLs through natural language commands.Last updated -
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to perform GitHub operations including repository management, file operations, issue tracking, and pull request creation.Last updated -1
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to securely access and interact with GitHub Enterprise data, providing access to enterprise users, organizations, emails, and license information.Last updated -MIT License
- -securityFlicense-qualityModel Context Protocol server that enables interaction with GitHub repositories, issues, pull requests, and search functionality through natural language.Last updated -1