First off, thank you for considering contributing to CodeReview MCP! 🎉
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code.
Before creating bug reports, please check the existing issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible:
- Use a clear and descriptive title
- Describe the exact steps which reproduce the problem
- Provide specific examples to demonstrate the steps
- Describe the behavior you observed after following the steps
- Explain which behavior you expected to see instead and why
- Include screenshots and animated GIFs if applicable
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, please include:
- Use a clear and descriptive title
- Provide a step-by-step description of the suggested enhancement
- Provide specific examples to demonstrate the steps
- Describe the current behavior and explain which behavior you expected to see instead
- Explain why this enhancement would be useful
- Fork the repo and create your branch from
main - If you've added code that should be tested, add tests
- If you've changed APIs, update the documentation
- Ensure the test suite passes
- Make sure your code lints
- Issue that pull request!
-
Clone your fork:
git clone https://github.com/YOUR-USERNAME/codereview-mcp-claude-code.git cd codereview-mcp-claude-code -
Install dependencies:
# Install Claude CLI if not already installed npm install -g claude-cli # Optionally, install Gemini CLI if you want to test Gemini support # (Refer to Gemini CLI documentation for installation instructions) # Optionally, install Codex CLI if you want to test Codex support # (Refer to Codex CLI documentation for installation instructions)
-
Make the script executable:
chmod +x codereview.sh
Before submitting a pull request, please test your changes:
# Test script syntax
bash -n codereview.sh
# Test with a sample PR using any installed CLI
./codereview.sh review.md https://github.com/octocat/Hello-World/pull/1
# The script will auto-detect and use available CLIs (Claude, Gemini, or Codex)- If multiple CLIs are installed, ensure the script prompts for selection and works with all.
- If only one CLI is installed, ensure it works without prompting.
- Test all supported CLIs (Claude, Gemini, Codex) if available.
- Shell Scripts: Follow Google's Shell Style Guide
- Documentation: Use clear, concise language with examples
- Comments: Add comments for complex logic
- Error Handling: Include proper error handling and user feedback
We follow the Conventional Commits specification:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Examples:
feat: add support for GitLab MCP integrationfix: handle empty PR descriptions gracefullydocs: update installation instructionsrefactor: simplify error handling logic
codereview-mcp-claude-code/
├── codereview.sh # Main automation script (Claude, Gemini & Codex)
├── review.md # Default review guidelines
├── .gitignore # Git ignore patterns
├── README.md # Project documentation
├── LICENSE # License
├── CONTRIBUTING.md # This file
└── examples/ # Example configurations (optional)
- GitHub Actions CI/CD pipeline
- Comprehensive test suite
- Support for other MCP servers (GitLab, Bitbucket)
- Template system for different review types
- Configuration file support (YAML/JSON)
- Batch processing multiple PRs
- Review analytics and reporting
- Integration with popular IDEs
- Video tutorials
- Advanced usage examples
- Troubleshooting guide
- Best practices documentation
- Documentation: Check the README and Wiki
- Discussions: Use GitHub Discussions for questions
- Issues: Create an issue for bugs or feature requests
Contributors will be recognized in our README and releases. We appreciate all forms of contribution, from code to documentation to community support!
By contributing, you agree that your contributions will be licensed under the MIT License.