fix: Update version bump script to include MCP server __init__.py

Issue found: bump-version.sh was missing the MCP server's __init__.py file, causing version mismatches (pyproject.toml: 0.9.2, __init__.py: 1.0.0).

Changes:
- Add integrations/beads-mcp/src/beads_mcp/__init__.py to update list
- Add it to git staging in auto-commit
- Add it to verification check
- Fix current version mismatch: 1.0.0 to 0.9.2

Now the script updates 7 files instead of 6
This commit is contained in:
Steve Yegge
2025-10-14 14:31:56 -07:00
parent a7693aee97
commit 2bb6f026c2
2 changed files with 11 additions and 3 deletions

View File

@@ -4,4 +4,4 @@ This package provides an MCP (Model Context Protocol) server that exposes
beads (bd) issue tracker functionality to MCP Clients.
"""
__version__ = "1.0.0"
__version__ = "0.9.2"

View File

@@ -122,13 +122,19 @@ main() {
"version = \"$CURRENT_VERSION\"" \
"version = \"$NEW_VERSION\""
# 5. Update README.md
# 5. Update integrations/beads-mcp/src/beads_mcp/__init__.py
echo " • integrations/beads-mcp/src/beads_mcp/__init__.py"
update_file "integrations/beads-mcp/src/beads_mcp/__init__.py" \
"__version__ = \"$CURRENT_VERSION\"" \
"__version__ = \"$NEW_VERSION\""
# 6. Update README.md
echo " • README.md"
update_file "README.md" \
"Alpha (v$CURRENT_VERSION)" \
"Alpha (v$NEW_VERSION)"
# 6. Update PLUGIN.md version requirements
# 7. Update PLUGIN.md version requirements
echo " • PLUGIN.md"
update_file "PLUGIN.md" \
"Plugin $CURRENT_VERSION requires bd CLI $CURRENT_VERSION+" \
@@ -150,6 +156,7 @@ main() {
"$(jq -r '.version' .claude-plugin/plugin.json)"
"$(jq -r '.plugins[0].version' .claude-plugin/marketplace.json)"
"$(grep 'version = ' integrations/beads-mcp/pyproject.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')"
"$(grep '__version__ = ' integrations/beads-mcp/src/beads_mcp/__init__.py | sed 's/.*"\(.*\)".*/\1/')"
)
ALL_MATCH=true
@@ -177,6 +184,7 @@ main() {
.claude-plugin/plugin.json \
.claude-plugin/marketplace.json \
integrations/beads-mcp/pyproject.toml \
integrations/beads-mcp/src/beads_mcp/__init__.py \
README.md \
PLUGIN.md