We are committed to providing a friendly, safe, and welcoming environment for all contributors. Please read and follow our Code of Conduct.
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/YOUR-USERNAME/kmcp.git cd kmcp - Add the upstream repository as a remote:
git remote add upstream https://github.com/kagent-dev/kmcp.git
- Create a new branch for your changes:
git checkout -b feature/your-feature-name
See the DEVELOPMENT.md file for more information.
If you are making significant improvements to the kmcp project, please create a design document using the design template and submit it as a pull request on GitHub.
-
Go Code:
- Follow the Go Code Review Comments
- Run
make lintbefore submitting your changes - Ensure all tests pass with
make test - Add tests for new functionality
-
Python Code:
- check formatting with
uv run ruff check - check linting with
uv run ruff format - Use type hints where appropriate
- Run tests with
uv run pytest
- check formatting with
We follow the Conventional Commits specification:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing tests or correcting existing tests
- chore: Changes to the build process or auxiliary tools
Example commit message:
feat(controller): add support for custom resource validation
This adds validation for the MCPServer custom resource to ensure
that the configuration is valid before applying it to the cluster.
Closes #123
-
Update your fork with the latest changes from upstream:
git fetch upstream git rebase upstream/main
-
Push your changes to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request from your fork to the main repository.
-
Fill out the PR template with all required information.
-
Address review comments if requested by maintainers.
-
Update your PR if needed:
git add . git commit -m "address review comments" git push origin feature/your-feature-name
-
Once approved, a maintainer will merge your PR.
- Update documentation for any changes to APIs, CLIs, or user-facing features
- Add examples for new features
- Update the README if necessary
- Add comments to your code explaining complex logic
Only project maintainers can create releases. The process is:
- Update version numbers in relevant files
- Create a release branch
- Create a tag for the release
- Build and publish artifacts
- Create a GitHub release with release notes
- Join our Discord server for discussions
- Participate in community calls (scheduled on our website)
- Help answer questions in GitHub issues
- Review pull requests from other contributors
By contributing to this project, you agree that your contributions will be licensed under the project's license.
If you have any questions about contributing, please open an issue or reach out to the maintainers.