Contributing¶
Help improve MCP Server Templates!
Getting Started¶
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/mcp-server-templates.git
- Create a feature branch:
git checkout -b feature-name
- Make your changes
- Submit a pull request
Development Setup¶
# Install in development mode
pip install -e .
pip install -r requirements-dev.txt
# Run tests
python -m pytest
# Run linting
black mcp_template/ tests/
flake8 mcp_template/ tests/
Contributing Guidelines¶
Code Style¶
- Use Black for code formatting
- Follow PEP 8 guidelines
- Add type hints where possible
- Write clear docstrings
Testing¶
- Write tests for new features
- Maintain 80%+ code coverage
- Test both happy path and edge cases
- Update integration tests
Documentation¶
- Update relevant documentation
- Add docstrings to new functions
- Update CLI help text
- Include usage examples
Template Contributions¶
New Templates¶
- Create template using:
mcp-template create your-template
- Implement MCP server in
src/server.py
- Add comprehensive tests
- Write clear documentation
- Ensure Docker build works
Template Requirements¶
- Must implement MCP protocol
- Include Dockerfile
- Have 80%+ test coverage
- Include clear documentation
- Follow naming conventions
Review Process¶
- Automated tests must pass
- Code review by maintainers
- Documentation review
- Integration testing
- Merge to main branch
Community¶
- Join discussions in GitHub Issues
- Ask questions in GitHub Discussions
- Follow our Code of Conduct
- Help others in the community