Contributing to MCP Mesh¶
Guidelines for contributing to the MCP Mesh project
Getting Started¶
- Fork the repository on GitHub
- Clone your fork locally:
- Set up development environment:
Development Workflow¶
1. Create a Branch¶
2. Make Changes¶
- Follow existing code style and patterns
- Add tests for new functionality
- Update documentation as needed
3. Test Your Changes¶
4. Commit and Push¶
git add .
git commit -m "feat: add new feature description"
git push origin feature/your-feature-name
Commit message format:
feat:- New featurefix:- Bug fixdocs:- Documentation onlyrefactor:- Code refactoringtest:- Adding testschore:- Maintenance tasks
5. Create Pull Request¶
- Go to MCP Mesh GitHub
- Click "New Pull Request"
- Select your branch
- Fill in the PR template
- Request review
Project Structure¶
mcp-mesh/
├── cmd/ # Go CLI tools (meshctl, registry)
├── src/runtime/python/ # Python SDK
├── examples/ # Example agents
├── docs/ # Documentation (MkDocs)
├── helm/ # Helm charts
└── Makefile # Build automation
Code Guidelines¶
Python (SDK)¶
- Python 3.11+ compatible
- Type hints required
- Docstrings for public functions
- Follow existing patterns in
src/runtime/python/_mcp_mesh/
Go (CLI/Registry)¶
- Go 1.23+
- Run
go fmtbefore committing - Follow Go conventions
Documentation¶
- Use MkDocs Material syntax
- Test locally:
mkdocs serve - Keep examples runnable
Getting Help¶
- Questions: GitHub Discussions
- Bugs: GitHub Issues
- Chat: Discord Community
License¶
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing to MCP Mesh!