Skip to content

fix(release): keep the .mcpb template's client pin in sync - #135

Open
dougborg wants to merge 1 commit into
mainfrom
fix/mcpb-template-pin-sync
Open

fix(release): keep the .mcpb template's client pin in sync#135
dougborg wants to merge 1 commit into
mainfrom
fix/mcpb-template-pin-sync

Conversation

@dougborg

Copy link
Copy Markdown
Owner

Problem

Publishing mcp-v0.2.0 failed in run 30273452529:

RuntimeError: Bundle pyproject.template.toml is out of sync with the package's.

release-pr-prepare.yml keeps statuspro_mcp_server/pyproject.toml's client floor truthful — it correctly bumped it to >=0.3.0 on the release PR. But the .mcpb bundle carries a second copy of the dependency list in statuspro_mcp_server/mcpb/pyproject.template.toml, and scripts/build_mcpb.py hard-fails when the two disagree. Only one of the two moved.

The drift guard did its job — this is a gap in the release glue, not a bad check.

Fix

  • The pin-sync step now rewrites both files, and the commit stages both.
  • Corrects the drift already on main (template >=0.1.0 vs package >=0.3.0), which is what currently blocks mcp-v0.2.0 from publishing.

Sibling repos

stocktrim-openapi-client has the same mcpb/pyproject.template.toml layout and will hit this identically once its release PR runs. frontapp and katana have no bundle template and are unaffected.

Context

Found while recovering the stuck draft releases from #134. client-v0.3.0 published successfully (PyPI 0.3.0, release un-drafted with wheel, sdist and both attestations attached); mcp-v0.2.0 is the remaining one.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QRhJ5dF3N3z7X63aRaDBcQ

The MCP release for mcp-v0.2.0 failed to build its bundle:

  RuntimeError: Bundle pyproject.template.toml is out of sync with the
  package's.

release-pr-prepare.yml bumps the client floor in
statuspro_mcp_server/pyproject.toml, but the .mcpb bundle carries its own
copy of the dependency list in mcpb/pyproject.template.toml, and
scripts/build_mcpb.py hard-fails when the two disagree. The release PR
moved one and not the other.

Update both in the same step, and stage both in the commit. Also corrects
the drift already on main (template still said >=0.1.0 while the package
says >=0.3.0) so mcp-v0.2.0 can be published.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRhJ5dF3N3z7X63aRaDBcQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant