docs/releasing.md
This document describes the release and hotfix process for MCPProxy.
main - Production-ready code, always deployablenext - Integration branch for ongoing development and refactoring workhotfix/x.y.z - Emergency fixes for production issuesWhen a critical bug is discovered in production:
# Create hotfix branch from the latest production tag
git checkout tags/vX.Y.Z
git checkout -b hotfix/X.Y.Z+1
# Commit your changes
git add .
git commit -m "hotfix: fix critical issue description"
# Tag the hotfix release
git tag -a vX.Y.Z+1 -m "Release vX.Y.Z+1: hotfix for critical issue"
# Push tag and branch
git push origin hotfix/X.Y.Z+1
git push origin vX.Y.Z+1
# Switch to main and merge the hotfix
git checkout main
git merge hotfix/X.Y.Z+1
git push origin main
IMPORTANT: All hotfixes must be backported to the next branch to ensure ongoing development includes the fix.
# Switch to next and merge the hotfix
git checkout next
git merge hotfix/X.Y.Z+1
git push origin next
# Delete the hotfix branch (optional)
git branch -d hotfix/X.Y.Z+1
git push origin --delete hotfix/X.Y.Z+1
When ready to release accumulated features from next:
next → mainmain after approvalmainnextmain should only receive hotfixes and vetted releases from nextmain must be backported to nextmain branch tagsnext branch for testingnext