Thank you for your interest in contributing to MCP Audit! This document provides guidelines for contributing to the project.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/mcp-audit.git cd mcp-audit - Install dependencies:
pip install -e ".[dev]" - Run tests to verify setup:
pytest
# Install in development mode
pip install -e .
# Run the CLI
mcp-audit scan# Start local server
python -m http.server 8080
# Open http://localhost:8080- Check existing issues for related work
- For new features, open an issue first to discuss the approach
- For bugs, include steps to reproduce
Python (CLI):
- Follow PEP 8
- Use type hints
- Run
blackfor formatting - Run
rufffor linting
JavaScript (Web App):
- Use ES6+ features
- Keep functions focused and small
- Add comments for complex logic
# Run all tests
pytest
# Run with coverage
pytest --cov=mcp_audit
# Run specific test file
pytest tests/test_scanner.pyUse clear, descriptive commit messages:
Add secrets detection for AWS credentialsFix API endpoint parsing for SSE connectionsUpdate README with AI-BOM documentation
-
Create a feature branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit
-
Push to your fork:
git push origin feature/your-feature-name
-
Open a Pull Request with:
- Clear description of changes
- Link to related issue (if any)
- Screenshots for UI changes
-
Address review feedback
- Add support for new MCP servers to the registry
- Improve secrets detection patterns
- Add new IDE configuration parsers
- Improve README examples
- Add tutorials for enterprise use cases
- Translate documentation
- Add test cases for edge cases
- Improve test coverage
- Add integration tests
To add a new MCP server to the known registry:
- Edit
mcp_audit/data/known_mcps.json - Add entry with:
{ "package_name": "@org/mcp-server-name", "provider": "Provider Name", "type": "official|community|unknown", "risk_level": "low|medium|high|critical", "verified": true|false, "description": "What this MCP does" } - Update the registry hash (run
mcp-audit registry stats) - Submit a PR with evidence of the MCP's legitimacy
For security vulnerabilities, please email rajaram@apisec.ai instead of opening a public issue.
- Be respectful and inclusive
- Focus on constructive feedback
- Help others learn and grow
- Open a GitHub Discussion
- Email: rajaram@apisec.ai
Thank you for contributing to MCP Audit!