This document outlines the steps to release a new version of click-mcp.
- Edit
pyproject.tomland update the version number:
[project]
name = "click-mcp"
version = "X.Y.Z" # Update this line- Commit the change:
git add pyproject.toml
git commit -m "Bump version to X.Y.Z"- Ensure all tests pass and code quality checks succeed:
hatch run lint:all
hatch run test:cov- Fix any issues that arise from these checks.
- Push your changes to GitHub:
git push origin main-
Go to the GitHub repository: https://github.com/crowecawcaw/click-mcp
-
Click on "Releases" in the right sidebar
-
Click "Create a new release"
-
Enter the following information:
- Tag version:
vX.Y.Z(e.g.,v0.1.1) - Release title:
Version X.Y.Z - Description: Add release notes describing the changes in this version
- Tag version:
-
Click "Publish release"
The GitHub Actions workflow will automatically:
- Build the package
- Upload it to PyPI
- Make it available for installation via
pip install click-mcp
After the GitHub Actions workflow completes:
-
Check that the package is available on PyPI: https://pypi.org/project/click-mcp/
-
Test installation in a clean environment:
pip install click-mcp==X.Y.ZFollow semantic versioning (SemVer):
- MAJOR version (X): Incompatible API changes
- MINOR version (Y): Add functionality in a backward-compatible manner
- PATCH version (Z): Backward-compatible bug fixes
For pre-releases, use suffixes like -alpha.1, -beta.1, etc.