Skip to content

fix(toolset): scaffold the view bridge at this runtime's own version - #154

Merged
ciaransweet merged 1 commit into
mainfrom
fix/scaffold-view-pin
Sep 21, 2026
Merged

ciaransweet merged 1 commit into
mainfrom
fix/scaffold-view-pin

Conversation

@ciaransweet

Copy link
Copy Markdown
Contributor

mcp-toolset new --with-ui wrote "@developmentseed/mcp-view": "^0.1.0" into every scaffolded UI, and had done since 0.1.x. A caret range on 0.1.0 resolves within 0.1.x, so a toolset scaffolded today started eight minor releases behind the runtime that serves it — without the content sizing from #149, and on the pre-2.0 ext-apps.

Change

The bridge is published from this repo in the same version as the wheel, so the scaffold reads its own installed version rather than carrying a literal:

"@developmentseed/mcp-view": "__MCP_VIEW__",   # rendered as ^0.10.1 today

Only the release triple is used, so a local build whose version carries a .devN or +local suffix still names a range npm has published.

Why not release-please

The other three version-carrying files are rewritten by release-please, but its generic updater needs an x-release-please-version comment on the line, and this line lives inside a JSON template — the comment would land in every scaffolded package.json. Reading the installed version needs no release wiring and cannot drift.

Tests

  • mcp_view_range returns ^0.10.1 for 0.10.1 and ^0.11.0 for 0.11.0.dev3+g1a2b3c.
  • The scaffold test now asserts the written package.json carries that range, so a literal cannot come back.
  • 564 passed, 6 skipped; lint clean.

Found while bumping mcp-toolsets#44, whose own view was still on ^0.2.0.

🤖 Generated with Claude Code

The scaffold wrote "@developmentseed/mcp-view": "^0.1.0" into every new UI,
and had done since 0.1.x — eight minor releases ago. The npm bridge is
released from this repo in step with the wheel, so the installed version
names the bridge to scaffold against, and the literal that went stale is
gone. Only the release triple is used, so a local build whose version carries
a suffix still names a published range.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ciaransweet
ciaransweet merged commit d42171b into main Sep 21, 2026
4 checks passed
@ciaransweet
ciaransweet deleted the fix/scaffold-view-pin branch September 21, 2026 09:44
ciaransweet pushed a commit that referenced this pull request Sep 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.10.2](mcp-toolsets-runtime-v0.10.1...mcp-toolsets-runtime-v0.10.2)
(2026-09-21)


### Bug Fixes

* **toolset:** scaffold the view bridge at this runtime's own version
([#154](#154))
([d42171b](d42171b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: ds-release-bot[bot] <116609932+ds-release-bot[bot]@users.noreply.github.com>
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